chore: depend on a core range, ^26.11.0-rc.1
Each plugin's deno.json imported an exact npm:@green-tea/core@26.9.0-beta.2. JSR consumers resolve that import, so an application on a newer core got a second, older copy under the plugin. Plugins import core as types only, so it never ran, but tsc could resolve a plugin's Plugin type against it. Import ^26.11.0-rc.1 instead: the floor is the core the tests run against, now rc.1 (devDependency and lockfile bumped), and ^ stops at the next year, the only core release that may break under core's versioning policy. The workspace test now requires that range shape, and the README no longer says no range can express compatibility. Refs: Expressive-Tea/green-tea#73 Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
12 files changed
+53
-22
No files matched your search
@@ -76,8 +76,11 @@ for (const dir of packages) {
|
||||
assert.equal(pkg.peerDependencies?.['@green-tea/core'], undefined, 'core in peerDependencies');
|
||||
});
|
||||
|
||||
test(`${dir}: JSR maps the core version npm installs`, () => {
|
||||
assert.equal(deno.imports?.['@green-tea/core'], `npm:@green-tea/core@${pkg.devDependencies?.['@green-tea/core']}`);
|
||||
// A range, not a pin (core #73): JSR consumers resolve this import, and an exact version gave an app
|
||||
// on a newer core the plugin's older core types. The floor is the version the tests run against;
|
||||
// `^` stops at the next year, the only release that may break (core's versioning policy).
|
||||
test(`${dir}: JSR maps a core range whose floor is the version npm installs`, () => {
|
||||
assert.equal(deno.imports?.['@green-tea/core'], `npm:@green-tea/core@^${pkg.devDependencies?.['@green-tea/core']}`);
|
||||
});
|
||||
|
||||
test(`${dir}: engines declares runtimes, and only known ones`, () => {
|
||||
|
||||
Reference in new issue
Block a user