|
1 | 1 | # open-next
|
2 | 2 |
|
| 3 | +## 3.5.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [#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 |
| 8 | + |
| 9 | + BREAKING CHANGE: `lastModified` is moved to ALS as a number from a global map indexed by `requestId` |
| 10 | + |
| 11 | +- [#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 |
| 12 | + |
| 13 | + BREAKING CHANGE: `waitUntil` is passed around via ALS to fix #713. |
| 14 | + |
| 15 | + `globalThis.openNextWaitUntil` is no more available, you can access `waitUntil` |
| 16 | + on the ALS context: `globalThis.__openNextAls.getStore()` |
| 17 | + |
| 18 | + The `OpenNextHandler` signature has changed: the second parameter was a `StreamCreator`. |
| 19 | + It was changed to be of type `OpenNextHandlerOptions` which has both a `streamCreator` key |
| 20 | + and a `waitUntil` key. |
| 21 | + |
| 22 | + If you use a custom wrapper, you need to update the call to the handler as follow: |
| 23 | + |
| 24 | + ```ts |
| 25 | + // before |
| 26 | + globalThis.openNextWaitUntil = myWaitUntil; |
| 27 | + handler(internalEvent, myStreamCreator); |
| 28 | + |
| 29 | + // after |
| 30 | + handler(internalEvent, { |
| 31 | + streamCreator: myStreamCreator, |
| 32 | + waitUntil: myWaitUntil, |
| 33 | + }); |
| 34 | + ``` |
| 35 | + |
| 36 | +- [#717](https://github.com/opennextjs/opennextjs-aws/pull/717) [`b0b1f7776b41612d2638a33e3c9ced8c42afab0a`](https://github.com/opennextjs/opennextjs-aws/commit/b0b1f7776b41612d2638a33e3c9ced8c42afab0a) Thanks [@conico974](https://github.com/conico974)! - introduce a new optional mode for the tag cache |
| 37 | + |
| 38 | +### Patch Changes |
| 39 | + |
| 40 | +- [#750](https://github.com/opennextjs/opennextjs-aws/pull/750) [`c4b0a78eedf6d0e8011bdaade9603a64e5f29338`](https://github.com/opennextjs/opennextjs-aws/commit/c4b0a78eedf6d0e8011bdaade9603a64e5f29338) Thanks [@sommeeeer](https://github.com/sommeeeer)! - add: s3 lite override for loading images in the image optimization server |
| 41 | + |
| 42 | + `s3-lite` override for image loading. Uses `aws4fetch` to get the objects from your s3 bucket. This will make the image optimization server work without the aws s3 sdk. This override introduces a new environment variable called `BUCKET_REGION`. It will fallback to `AWS_REGION` ?? `AWS_DEFAULT_REGION` if undefined. This will require no additional change in IAC for most users. |
| 43 | + |
| 44 | + ```ts |
| 45 | + import type { OpenNextConfig } from "@opennextjs/aws/types/open-next"; |
| 46 | + const config = { |
| 47 | + default: {}, |
| 48 | + imageOptimization: { |
| 49 | + loader: "s3-lite", |
| 50 | + }, |
| 51 | + } satisfies OpenNextConfig; |
| 52 | + |
| 53 | + export default config; |
| 54 | + ``` |
| 55 | + |
| 56 | +- [#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 |
| 57 | + |
| 58 | +- [#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 |
| 59 | + |
| 60 | + Add correct typing to tagCache in initializationFunction and also adds it to the `overrides` in `compileTagCacheProvider` function. |
| 61 | + |
3 | 62 | ## 3.4.2
|
4 | 63 |
|
5 | 64 | ### Patch Changes
|
|
0 commit comments