Plugin version constraints#
Plugin version constraints allow you to limit which plugin versions can be used to generate SDKs for a repository. When plugins have bugs, breaking changes, or security vulnerabilities, constraints allow you to prevent consumers from depending on problematic SDKs.
How plugin constraints work#
When you add constraints to a repository:
- SDK generation only uses plugin versions that satisfy all constraints.
- Package managers that support
latestresolve to the newest version that meets your constraints.
Setting up plugin constraints#
- Navigate to your repository in the BSR and click the Settings icon at top-right.
- Find Manage available plugin versions.
- Click Add plugin constraint.
- Search for and select the desired plugin.
-
Choose an operator and version based on your needs:
Operator When to use Example scenario >=Enforce minimum version >= 2.1.0when older versions lack required features!=Block specific version != 1.4.2to exclude a version with security issues<Prevent newer versions < 3.0.0when v3+ introduces incompatible changes>Exclude older versions > 1.0.0to block outdated 1.x versions==Lock to exact version == 2.5.1for strict version control -
Add additional combinations of operators and versions to suit your use case. Multiple conditions are combined using logical AND.
- Click Save constraint when you're done.