Repository navigation
chore(stdlib): depend on @webiny/di 2.0 - #46
Merged
Merged
Conversation
Webiny moves to @webiny/di 2.0, which changes how singletons are built across child containers. stdlib's abstractions are typed against its own @webiny/di copy, and TypeScript treats a 1.x Abstraction and a 2.x one as different types, so Webiny packages that register stdlib features stop type-checking until stdlib moves too. Released as a 0.0.x patch: consumers pin stdlib with ^0.0.x ranges, which match a single version, so nobody picks this up without bumping on purpose. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Moves
@webiny/difrom^1.1.0to^2.0.0.Why
Webiny is moving to
@webiny/di2.0 (webiny/di#19). That release changes how singletons are built across child containers and addsinContainerScope().stdlib's abstractions are typed against its own copy of
@webiny/di, and TypeScript treats a 1.xAbstractionand a 2.x one as different types. So Webiny packages that register stdlib features stop type-checking until stdlib moves to 2.0 as well. For example,api-sync-to-opensearchpasses stdlib'sEnvas a dependency.Release
The changeset is a patch (0.0.21). Consumers pin stdlib with
^0.0.xranges, and^0.0.17matches only 0.0.17, so nobody picks this up without bumping on purpose. The changeset notes that stdlib now targets@webiny/di2.x.Checks
@webiny/di2.0: adio, format, lint, typecheck, build, andtest:coverage(519 tests). None of stdlib's singletons rely on the old behaviour.@webiny/di ^2.0.0and this build of stdlib:api-sync-to-opensearch(4 tests) andapi-sync-pg-to-opensearch(6) pass;api-sync-ddb-to-opensearchpasses except one test that needs a real OpenSearch, which wasn't available locally.After merge
Once 0.0.21 is published, webiny-js bumps
@webiny/stdlibto^0.0.21in the same PR as@webiny/di ^2.0.0.Workspace: wby-next11 · STORAGE PER REQ
🤖 Generated with Claude Code