From 27b8a910daa9dc9ab1caf2d7134e6e54fbde57ff Mon Sep 17 00:00:00 2001 From: adrians5j Date: Fri, 9 Oct 2026 11:43:38 +0200 Subject: [PATCH] chore(stdlib): depend on @webiny/di 2.0 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 --- .changeset/webiny-di-2.md | 5 +++++ package.json | 2 +- yarn.lock | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .changeset/webiny-di-2.md diff --git a/.changeset/webiny-di-2.md b/.changeset/webiny-di-2.md new file mode 100644 index 0000000..b351f72 --- /dev/null +++ b/.changeset/webiny-di-2.md @@ -0,0 +1,5 @@ +--- +"@webiny/stdlib": patch +--- + +Depend on `@webiny/di` 2.0. stdlib's abstractions and implementations now target `@webiny/di` 2.x containers, so projects that register stdlib features must use `@webiny/di` 2.x as well; 1.x containers no longer type-check against them. See the `@webiny/di` 2.0.0 changelog for the container changes (singletons built from the registering container, new `inContainerScope()`). diff --git a/package.json b/package.json index 42697dd..7faa5c5 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "dependencies": { "@11ty/gray-matter": "^3.0.0", "@modelcontextprotocol/sdk": "^1.32.1", - "@webiny/di": "^1.1.0", + "@webiny/di": "^2.0.0", "bson-objectid": "^2.0.4", "dot-prop": "^10.2.0", "nanoid": "^6.0.2", diff --git a/yarn.lock b/yarn.lock index cd58d93..09bd33f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1304,12 +1304,12 @@ __metadata: languageName: node linkType: hard -"@webiny/di@npm:^1.1.0": - version: 1.1.0 - resolution: "@webiny/di@npm:1.1.0" +"@webiny/di@npm:^2.0.0": + version: 2.0.0 + resolution: "@webiny/di@npm:2.0.0" dependencies: reflect-metadata: "npm:^0.2.2" - checksum: 10c0/a1a52f4e0c12b65a57d126071219833e807f4390006d1a2f52d2ed602896f4ed93eee96e951602444acdae194beb8ffeb5266e52e6f28c70625f8c2947767b18 + checksum: 10c0/bfd99c82d1b0e18db04656f795e9025b0101938a714243e9bb1d9604f8ab078dc0cfd60ba5a8a6f456eccb594631877c6a2f15c9ed537eb62238e3ed25329085 languageName: node linkType: hard @@ -1322,7 +1322,7 @@ __metadata: "@modelcontextprotocol/sdk": "npm:^1.32.1" "@types/node": "npm:^26.6.4" "@vitest/coverage-v8": "npm:^5.0.3" - "@webiny/di": "npm:^1.1.0" + "@webiny/di": "npm:^2.0.0" adio: "npm:^3.0.1" bson-objectid: "npm:^2.0.4" dot-prop: "npm:^10.2.0"