Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Previously if there was no provider for a particular order constraint, then that order was ignored. It turns out there's no provider for
smart-tags
, but it has a lot ofbefore
andafter
constraints on it; all of which were ignored, which could result in plugins withbefore: ["smart-tags"]
being loaded after plugins withafter: ["smart-tags"]
. Even though there's no provider for this, clearly this shouldn't be the case.This PR solves the issue by creating a fake provider during the plugin sorting and then filtering it back out again at the end, enforcing that all
before: ["smart-tags"]
plugins are loaded before allafter: ["smart-tags"]
plugins.Performance impact
Negligible startup cost.
Security impact
None known, unless someone is playing silly buggers with plugin ordering... but plugins are trusted code so we don't see that as a security vulnerability.
Checklist
yarn lint:fix
passes.yarn test
passes.I have detailed the new feature in the relevant documentation.RELEASE_NOTES.md
file (if one exists).If this is a breaking change I've explained why.