-
Notifications
You must be signed in to change notification settings - Fork 76
fix: update logic for plugin selection fallback #5575
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
Conversation
This pull request adds or modifies JavaScript ( |
buildDir: '/some/path', | ||
pinnedVersion: '4', | ||
|
||
test('if no pinned version is set, it matches the first version regardless of whether its requirements match the conditions (legacy behavior)', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff makes it a bit hard to see (sorry), but this is one of the new tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other reviewers - https://github.com/netlify/build/pull/5575/files?w=1 (hide whitespace changes in diff) makes this diff much easier to parse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For other reviewers - https://github.com/netlify/build/pull/5575/files?w=1 (hide whitespace changes in diff)
TIL, ty!
packageJson: { dependencies: { next: '14.0.0' } }, | ||
buildDir: '/some/path', | ||
pinnedVersion: '4', | ||
test('if no pinned version is set, it matches the first version whose requirements match the conditions', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff makes it a bit hard to see (sorry), but this is one of the new tests.
Summary
Updates the logic used to determine the plugin version that should be picked when there is no pinned version for the site. Includes a feature flag that toggles between just logging whenever there's a mismatch between the legacy and new logic and actually applying the new version.