Replies: 2 comments 2 replies
|
@scope+version might work for a monorepo where all packages are published with the same version. But even then you can't be sure that there's another repo for the scope with independent versions. So I'm not how useful such filter would be. Or do you have something else in mind? |
|
That's a fair concern, but I don't think That sidesteps the monorepo assumption: for lockstep scopes (like Angular, Babel, Storybook) it works like a single filter; for independently-versioned scopes, each package is just checked on its own, and packages outside the range simply don't match. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Context
The
package-filterplugin currently supports three levels of rule granularity for allow/block rules:scopepackagepackage + versionsHere an example configuration from the plugin documentation:
We use
minAgeDayscombined with an allow-list to deliberately fast-track security fixes. This works well at thepackage + versionslevel, but for scopes that publish many related packages under the same version (e.g.@angular), fast-tracking a specific release currently means either adding a rule per package + version (tedious), or a scope-wide rule without a version constraint (too broad, bypassesminAgeDaysentirely).Question
Is there a technical or design reason
scopedoesn't support aversionsconstraint whilepackagedoes? Is this a deliberate limitation, or just not implemented yet?All reactions