diff --git a/.changeset/healthy-elephants-scream.md b/.changeset/healthy-elephants-scream.md deleted file mode 100644 index b18623954..000000000 --- a/.changeset/healthy-elephants-scream.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/aws": minor ---- - -refactor: lastModified moved to ALS - -BREAKING CHANGE: `lastModified` is moved to ALS as a number from a global map indexed by `requestId` diff --git a/.changeset/nasty-boats-boil.md b/.changeset/nasty-boats-boil.md deleted file mode 100644 index 7d9451d53..000000000 --- a/.changeset/nasty-boats-boil.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@opennextjs/aws": patch ---- - -add and expose new `CachedFetchValue` type diff --git a/.changeset/pink-papayas-smoke.md b/.changeset/pink-papayas-smoke.md deleted file mode 100644 index a5ba78556..000000000 --- a/.changeset/pink-papayas-smoke.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@opennextjs/aws": minor ---- - -refactor: `waitUntil` passed around via ALS and `OpenNextHandler` signature has changed - -BREAKING CHANGE: `waitUntil` is passed around via ALS to fix #713. - -`globalThis.openNextWaitUntil` is no more available, you can access `waitUntil` -on the ALS context: `globalThis.__openNextAls.getStore()` - -The `OpenNextHandler` signature has changed: the second parameter was a `StreamCreator`. -It was changed to be of type `OpenNextHandlerOptions` which has both a `streamCreator` key -and a `waitUntil` key. - -If you use a custom wrapper, you need to update the call to the handler as follow: - -```ts -// before -globalThis.openNextWaitUntil = myWaitUntil; -handler(internalEvent, myStreamCreator); - -// after -handler(internalEvent, { streamCreator: myStreamCreator, waitUntil: myWaitUntil }); -``` diff --git a/.changeset/stale-walls-sin.md b/.changeset/stale-walls-sin.md deleted file mode 100644 index dc2f752fd..000000000 --- a/.changeset/stale-walls-sin.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@opennextjs/aws": patch ---- - -fix: tagCache in initializationFunction - -Add correct typing to tagCache in initializationFunction and also adds it to the `overrides` in `compileTagCacheProvider` function. diff --git a/examples/app-pages-router/CHANGELOG.md b/examples/app-pages-router/CHANGELOG.md index f9779f341..cf759bbee 100644 --- a/examples/app-pages-router/CHANGELOG.md +++ b/examples/app-pages-router/CHANGELOG.md @@ -1,5 +1,12 @@ # app-pages-router +## 0.1.8 + +### Patch Changes + +- Updated dependencies [[`6ff03ec8d50ada5eb04de11b14ae670382707f30`](https://github.com/opennextjs/opennextjs-aws/commit/6ff03ec8d50ada5eb04de11b14ae670382707f30), [`867defe3ceacdd1079594202eae1f82391bdcd89`](https://github.com/opennextjs/opennextjs-aws/commit/867defe3ceacdd1079594202eae1f82391bdcd89), [`b59027a5899d25dd5263d1a272b33ec23fb683d3`](https://github.com/opennextjs/opennextjs-aws/commit/b59027a5899d25dd5263d1a272b33ec23fb683d3), [`ab7466f443178f3e6e0df512fd990e526ea516e7`](https://github.com/opennextjs/opennextjs-aws/commit/ab7466f443178f3e6e0df512fd990e526ea516e7)]: + - @opennextjs/aws@3.5.0 + ## 0.1.7 ### Patch Changes diff --git a/examples/app-pages-router/package.json b/examples/app-pages-router/package.json index 5dafea25f..c295a9863 100644 --- a/examples/app-pages-router/package.json +++ b/examples/app-pages-router/package.json @@ -1,6 +1,6 @@ { "name": "app-pages-router", - "version": "0.1.7", + "version": "0.1.8", "private": true, "scripts": { "openbuild": "node ../../packages/open-next/dist/index.js build --build-command \"npx turbo build\"", diff --git a/examples/app-router/CHANGELOG.md b/examples/app-router/CHANGELOG.md index 9567b54a2..20210ae34 100644 --- a/examples/app-router/CHANGELOG.md +++ b/examples/app-router/CHANGELOG.md @@ -1,5 +1,12 @@ # app-router +## 0.1.8 + +### Patch Changes + +- Updated dependencies [[`6ff03ec8d50ada5eb04de11b14ae670382707f30`](https://github.com/opennextjs/opennextjs-aws/commit/6ff03ec8d50ada5eb04de11b14ae670382707f30), [`867defe3ceacdd1079594202eae1f82391bdcd89`](https://github.com/opennextjs/opennextjs-aws/commit/867defe3ceacdd1079594202eae1f82391bdcd89), [`b59027a5899d25dd5263d1a272b33ec23fb683d3`](https://github.com/opennextjs/opennextjs-aws/commit/b59027a5899d25dd5263d1a272b33ec23fb683d3), [`ab7466f443178f3e6e0df512fd990e526ea516e7`](https://github.com/opennextjs/opennextjs-aws/commit/ab7466f443178f3e6e0df512fd990e526ea516e7)]: + - @opennextjs/aws@3.5.0 + ## 0.1.7 ### Patch Changes diff --git a/examples/app-router/package.json b/examples/app-router/package.json index 576768918..d9ff4d7a7 100644 --- a/examples/app-router/package.json +++ b/examples/app-router/package.json @@ -1,6 +1,6 @@ { "name": "app-router", - "version": "0.1.7", + "version": "0.1.8", "private": true, "scripts": { "openbuild": "node ../../packages/open-next/dist/index.js build --streaming --build-command \"npx turbo build\"", diff --git a/packages/open-next/CHANGELOG.md b/packages/open-next/CHANGELOG.md index 7dfd1d865..3d66a4af6 100644 --- a/packages/open-next/CHANGELOG.md +++ b/packages/open-next/CHANGELOG.md @@ -1,5 +1,46 @@ # open-next +## 3.5.0 + +### Minor Changes + +- [#740](https://github.com/opennextjs/opennextjs-aws/pull/740) [`6ff03ec8d50ada5eb04de11b14ae670382707f30`](https://github.com/opennextjs/opennextjs-aws/commit/6ff03ec8d50ada5eb04de11b14ae670382707f30) Thanks [@vicb](https://github.com/vicb)! - refactor: lastModified moved to ALS + + BREAKING CHANGE: `lastModified` is moved to ALS as a number from a global map indexed by `requestId` + +- [#733](https://github.com/opennextjs/opennextjs-aws/pull/733) [`b59027a5899d25dd5263d1a272b33ec23fb683d3`](https://github.com/opennextjs/opennextjs-aws/commit/b59027a5899d25dd5263d1a272b33ec23fb683d3) Thanks [@vicb](https://github.com/vicb)! - refactor: `waitUntil` passed around via ALS and `OpenNextHandler` signature has changed + + BREAKING CHANGE: `waitUntil` is passed around via ALS to fix #713. + + `globalThis.openNextWaitUntil` is no more available, you can access `waitUntil` + on the ALS context: `globalThis.__openNextAls.getStore()` + + The `OpenNextHandler` signature has changed: the second parameter was a `StreamCreator`. + It was changed to be of type `OpenNextHandlerOptions` which has both a `streamCreator` key + and a `waitUntil` key. + + If you use a custom wrapper, you need to update the call to the handler as follow: + + ```ts + // before + globalThis.openNextWaitUntil = myWaitUntil; + handler(internalEvent, myStreamCreator); + + // after + handler(internalEvent, { + streamCreator: myStreamCreator, + waitUntil: myWaitUntil, + }); + ``` + +### Patch Changes + +- [#727](https://github.com/opennextjs/opennextjs-aws/pull/727) [`867defe3ceacdd1079594202eae1f82391bdcd89`](https://github.com/opennextjs/opennextjs-aws/commit/867defe3ceacdd1079594202eae1f82391bdcd89) Thanks [@dario-piotrowicz](https://github.com/dario-piotrowicz)! - add and expose new `CachedFetchValue` type + +- [#745](https://github.com/opennextjs/opennextjs-aws/pull/745) [`ab7466f443178f3e6e0df512fd990e526ea516e7`](https://github.com/opennextjs/opennextjs-aws/commit/ab7466f443178f3e6e0df512fd990e526ea516e7) Thanks [@sommeeeer](https://github.com/sommeeeer)! - fix: tagCache in initializationFunction + + Add correct typing to tagCache in initializationFunction and also adds it to the `overrides` in `compileTagCacheProvider` function. + ## 3.4.2 ### Patch Changes diff --git a/packages/open-next/package.json b/packages/open-next/package.json index 1f692419b..3d18a21ff 100644 --- a/packages/open-next/package.json +++ b/packages/open-next/package.json @@ -3,7 +3,7 @@ "access": "public" }, "name": "@opennextjs/aws", - "version": "3.4.2", + "version": "3.5.0", "bin": { "open-next": "./dist/index.js" },