@aws-amplify/datastore-storage-adapter 2.2.6-unstable.3246992.0 → 2.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
1
1
  # Change Log
2
2
 
3
+ ## 2.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#14931](https://github.com/aws-amplify/amplify-js/pull/14931) [`736d81d`](https://github.com/aws-amplify/amplify-js/commit/736d81d694b1df633e519881f73d1a942d6ccbe6) Thanks [@bobbor](https://github.com/bobbor)! - feat: explicit AmplifyContext support across all categories.
8
+
9
+ Adds context-first overloads (`fn(ctx, input)`) to category APIs alongside the existing
10
+ singleton-based forms, a public `createAmplifyContext(resourcesConfig, libraryOptions?)`
11
+ factory for isolated per-request/per-tenant contexts, per-request context isolation in
12
+ `@aws-amplify/adapter-nextjs` SSR, typed misuse errors (`InvalidAmplifyContextError`,
13
+ `NoAmplifyContextError`), and a shared testing entry (`@aws-amplify/core/internals/testing`).
14
+
15
+ Backward compatible: existing application code — including pre-context SSR
16
+ `operation: (contextSpec) => fetchAuthSession(contextSpec)` — compiles and behaves
17
+ unchanged via deprecated type aliases. Includes two api-graphql bug fixes: SSR request
18
+ clients now honor client-level options (previously silently dropped), and events error
19
+ messages accurately describe failures.
20
+
21
+ Compatibility surface and version guidance:
22
+ - Resources config is now deep-frozen after `Amplify.configure()` and
23
+ `createAmplifyContext()` (previously frozen only at the top level). Code that mutated
24
+ a nested config field post-configure — always unsupported — now throws in strict mode
25
+ instead of silently succeeding.
26
+ - Deprecated `AmplifyServer` type aliases (`Context`, `ContextSpec`, `ContextToken`,
27
+ `RunOperationWithContext`) and functional `createAmplifyServerContext` /
28
+ `getAmplifyServerContext` / `destroyAmplifyServerContext` shims are restored on the
29
+ internals/adapter-core entries so previously published `@aws-amplify/adapter-nextjs`
30
+ versions keep working. They will be removed in the next major.
31
+ - Peer minimums are raised (`@aws-amplify/core` to `^6.19.0` across category packages;
32
+ `aws-amplify` to `^6.21.0` for `@aws-amplify/adapter-nextjs`) to guard against
33
+ version-skewed installs going forward. Note this guard only applies when the
34
+ dependency tree is re-resolved: existing lockfiles, `npm ci`, and installs with
35
+ `--legacy-peer-deps` (or yarn classic's warn-only peers) are not re-checked, and
36
+ already-published category versions still declare the older range. Mixing an older
37
+ scoped category package (e.g. `@aws-amplify/auth` ≤ 6.x pinned to `core ^6.16.2`)
38
+ with a newer core is unsupported — keep directly installed `@aws-amplify/*` category
39
+ packages on the same release line as `aws-amplify`.
40
+
3
41
  All notable changes to this project will be documented in this file.
4
42
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
43