@doswiftly/storefront-sdk 7.0.0 → 9.0.0

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,55 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 5c4e080: **BREAKING (version-only)**: Bump `@doswiftly/storefront-sdk` to 8.0.0 to stay in lockstep with `@doswiftly/storefront-operations@8.0.0` (linked package contract — same major between them).
8
+
9
+ ### Why this release
10
+
11
+ The SDK code itself is unchanged. This is a version-sync release that matches the BREAKING operations rename shipped in `@doswiftly/storefront-operations@8.0.0` (26 operations renamed to verb-first to match the GraphQL schema field names — see operations 8.0.0 CHANGELOG for the full migration table).
12
+
13
+ ### Migration
14
+
15
+ If you upgrade `@doswiftly/storefront-sdk` from `7.x` → `8.x`, you MUST also upgrade `@doswiftly/storefront-operations` to `8.x` (they are linked). After upgrading:
16
+ 1. Regenerate codegen against the new operations package.
17
+ 2. Update operation imports per the migration table in `@doswiftly/storefront-operations@8.0.0` CHANGELOG (e.g. `CheckoutDiscountCodeApply` → `CheckoutApplyDiscountCode`, `$checkoutId` → `$id`).
18
+ 3. No SDK API surface change beyond the operation name re-exports — runtime client behavior is identical.
19
+
20
+ ## 7.1.0
21
+
22
+ ### Minor Changes
23
+
24
+ - 0399ef8: Auto-generated, drift-proof docs and AI-agent context shipped inside the package.
25
+
26
+ The package now ships three new files alongside the `.graphql` sources, all
27
+ generated automatically and kept in sync with the schema:
28
+ - **`AGENTS.md`** — entry point for AI coding agents (Cursor, Claude Code,
29
+ GitHub Copilot, Codex, Aider, Gemini CLI, …). Critical conventions and
30
+ anti-hallucination notes — load this once per session.
31
+ - **`llms-full.txt`** — full operation reference: descriptions, typed variables,
32
+ ready-to-execute GraphQL bodies, fragment cross-references.
33
+ - **`operations.json`** — same operations as structured JSON for MCP servers
34
+ and programmatic tools.
35
+
36
+ The `Available Operations` section in `README.md` is now also auto-generated,
37
+ so it can never drift from the actual schema again.
38
+
39
+ **Anti-hallucination conventions** documented in `AGENTS.md`:
40
+ - Cart mutations are `cartAddLines` / `cartUpdateLines` / `cartRemoveLines`
41
+ (NOT the `cart<Object><Verb>` aliases — they do not exist in this API).
42
+ - `userErrors[].code` is a `String`, not an enum. Domain-typed enums exist
43
+ separately for warnings (`CartWarningCode`, `DiscountErrorCode`, etc.).
44
+ - Authentication uses **either** the `customerAccessToken` cookie **or** the
45
+ `Authorization: Bearer` header — never both.
46
+ - `Money.amount` is a string (decimal precision), not a number.
47
+
48
+ No code changes for existing consumers — `schema.graphql`, `queries.graphql`,
49
+ `mutations.graphql`, and `fragments.graphql` are unchanged in surface (only
50
+ non-functional `#` description comments were added in the operation files).
51
+ Codegen continues to produce identical typed documents.
52
+
3
53
  ## 7.0.0
4
54
 
5
55
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doswiftly/storefront-sdk",
3
- "version": "7.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Storefront runtime SDK for DoSwiftly Commerce — layered transport, middleware pipeline, React providers, Zustand stores, cache strategies. 0 runtime dependencies in core.",
5
5
  "type": "module",
6
6
  "files": [