Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove applyWhen in favor of explicit props overlap check with alwaysApply exception #228

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

ssalbdivad
Copy link

Description

Simplify applyWhen to just check for presence of props from the new props key as discussed with @colbyfayock, add an alwaysApply key that can be used for exceptions like SanitizePlugin that should always run regardless of the presence of associated keys.

This is a rebased version of #226.

Issue Ticket Number

Fixes #<ISSUE_NUMBER>

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Fix or improve the documentation
  • This change requires a documentation update

Checklist

  • I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
  • I have created an issue ticket for this PR
  • I have checked to ensure there aren't other open Pull Requests for the same update/change?
  • I have performed a self-review of my own code
  • I have run tests locally to ensure they all pass
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes needed to the documentation

@colbyfayock colbyfayock merged commit 90d07c2 into cloudinary-community:beta Oct 31, 2024
3 checks passed
github-actions bot pushed a commit that referenced this pull request Oct 31, 2024
# [@cloudinary-util/url-loader-v6.0.0-beta.6](https://github.com/cloudinary-community/cloudinary-util/compare/@cloudinary-util/url-loader-v6.0.0-beta.5...@cloudinary-util/url-loader-v6.0.0-beta.6) (2024-10-31)

### Bug Fixes

* remove applyWhen in favor of explicit props overlap check with alwaysApply exception ([#228](#228)) ([90d07c2](90d07c2))
Copy link

🎉 This PR is included in version @cloudinary-util/url-loader-v6.0.0-beta.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Oct 31, 2024
# [@cloudinary-util/types-v2.0.0-beta.3](https://github.com/cloudinary-community/cloudinary-util/compare/@cloudinary-util/types-v2.0.0-beta.2...@cloudinary-util/types-v2.0.0-beta.3) (2024-10-31)

### Bug Fixes

* remove applyWhen in favor of explicit props overlap check with alwaysApply exception ([#228](#228)) ([90d07c2](90d07c2))
Copy link

🎉 This PR is included in version @cloudinary-util/types-v2.0.0-beta.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this pull request Oct 31, 2024
# [@cloudinary-util/util-v5.0.0-beta.2](https://github.com/cloudinary-community/cloudinary-util/compare/@cloudinary-util/util-v5.0.0-beta.1...@cloudinary-util/util-v5.0.0-beta.2) (2024-10-31)

### Bug Fixes

* remove applyWhen in favor of explicit props overlap check with alwaysApply exception ([#228](#228)) ([90d07c2](90d07c2))
Copy link

🎉 This PR is included in version @cloudinary-util/util-v5.0.0-beta.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants