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>
860 B
860 B
Changelog
[Unreleased]
Changed
- Core is a range,
^26.11.0-rc.1, not an exact26.9.0-beta.2. JSR consumers resolve the@green-tea/coreimport indeno.json, and the exact pin gave an application on a newer core a second, older copy whose typestsccould pick up. The range starts at the core the tests run against (now 26.11.0-rc.1) and stops at the next year, the only core release that may break.
26.9.0-beta.0 - 2026-09-23
Added
rateLimit({ rules, store?, keyOf?, provides? }): publishes aRateLimiterunderprovides(defaultrateLimit). Exceeding a rule throwsTooManyRequests, a branded 429 carryingRetry-After. The defaultMemoryStoresweeps expired windows on an interval and is released by the plugin'sonShutdown.