Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Chore: release all new TS packages including SDK 1.2.0 (#14344)

Damian Legawiec89f2a2085a5f
diff --git a/.changeset/newsletter-unsubscribe.md b/.changeset/newsletter-unsubscribe.md
deleted file mode 100644
index 2aec38a62f..0000000000
--- a/.changeset/newsletter-unsubscribe.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@spree/sdk": minor
----
-
-Add newsletter unsubscribe endpoints. `newsletterSubscribers.requestUnsubscribe({ email })` asks the store to fire a `newsletter_subscriber.unsubscribe_requested` webhook event carrying an unsubscribe token (always 202, so email existence is never revealed). `newsletterSubscribers.delete(id, { token })` removes a subscription using that token from an email link, or — with a customer JWT instead of the token — removes the signed-in customer's own subscription. `Customer` now exposes the store-scoped `newsletter_subscriber` on `GET /customers/me`, which is where a signed-in customer reads the subscription id.
diff --git a/.changeset/nullable-money-fields.md b/.changeset/nullable-money-fields.md
deleted file mode 100644
index f2b19a532c..0000000000
--- a/.changeset/nullable-money-fields.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@spree/sdk": minor
----
-
-Money fields are now typed `string | null` across Cart, Order, LineItem, Payment, Fulfillment, GiftCard, and Discount (Zod schemas accept `null` accordingly). On a gated channel (`prices_hidden`), the Store API returns `null` for every monetary amount — including those on records nested inside a cart or order — so anonymous visitors cannot recover hidden prices. Handle `null` before formatting or doing arithmetic on these fields.
diff --git a/.changeset/order-routing-rules-admin.md b/.changeset/order-routing-rules-admin.md
deleted file mode 100644
index 369412f36c..0000000000
--- a/.changeset/order-routing-rules-admin.md
+++ /dev/null
@@ -1,8 +0,0 @@
----
-"@spree/admin-sdk": minor
-"@spree/dashboard": minor
-"@spree/dashboard-core": minor
-"@spree/dashboard-ui": minor
----
-
-Add per-channel order routing rule management. `@spree/admin-sdk` gains `channels.orderRoutingRules.{list,get,create,update,delete}` (nested under `/channels/:channel_id/order_routing_rules`) plus `orderRoutingRules.types()` for rule-kind discovery; the admin `Store` type now exposes `preferred_order_routing_strategy`. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. `Subject.OrderRoutingRule` is available for permission checks.
diff --git a/.changeset/preorder-fields.md b/.changeset/preorder-fields.md
deleted file mode 100644
index 7397869bad..0000000000
--- a/.changeset/preorder-fields.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@spree/sdk": minor
----
-
-Surface pre-order status on the Store API types. `Variant`, `Product`, and `LineItem` now expose `preorder` (whether the item is currently sold as a pre-order) and `preorder_ships_at` (the customer-facing "ships by" promise, `null` unless it's a live pre-order), so storefronts can render a "Pre-order — ships by …" badge. Both fields are included in the generated Zod schemas.
diff --git a/.changeset/spicy-channels-arrive.md b/.changeset/spicy-channels-arrive.md
deleted file mode 100644
index fdd1f8c76b..0000000000
--- a/.changeset/spicy-channels-arrive.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@spree/sdk": minor
----
-
-Add `client.channel.get()` — returns the channel the client's requests resolve to (API-key binding → `channel` option → store default), including the resolved `storefront_access` posture (`public` | `prices_hidden` | `login_required`) and `guest_checkout`. Gated storefronts can call it before authentication to decide whether to render a sign-in wall. Also exports the `Channel` and `CustomerGroup` types; `customers/me` now includes store-scoped `customer_groups`; and `Cart` carries `channel_id`, so a storefront serving several channels can verify a persisted cart belongs to the surface loading it.
diff --git a/.changeset/storefront-access-gating.md b/.changeset/storefront-access-gating.md
deleted file mode 100644
index f4b0b1ced9..0000000000
--- a/.changeset/storefront-access-gating.md
+++ /dev/null
@@ -1,5 +0,0 @@
----
-"@spree/sdk": minor
----
-
-Support gated storefronts in the Store API. A channel (or its store) can now hide prices from anonymous visitors or require a login to browse: when prices are hidden, monetary fields on products, carts, and orders return `null` for guests, and `login_required` channels reject unauthenticated requests with `401`. Guest checkout can likewise be disallowed per channel, in which case completing a cart without a signed-in customer returns `401`.
diff --git a/.changeset/wholesale-volume-rule-editor.md b/.changeset/wholesale-volume-rule-editor.md
deleted file mode 100644
index 1cf229c9ab..0000000000
--- a/.changeset/wholesale-volume-rule-editor.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-"@spree/dashboard": minor
-"@spree/dashboard-core": minor
----
-
-Improve editing of quantity-bounded price rules. A blank upper-bound preference (`max_quantity`, `max_uses`, `maximum_amount`, …) now shows "Unlimited" instead of an empty required-looking field across every preferences form. The Volume price rule gains a dedicated editor that renders minimum quantity before maximum, so a case-pack minimum reads in a natural order.
diff --git a/packages/admin-sdk/CHANGELOG.md b/packages/admin-sdk/CHANGELOG.md
index 3dc65cf35a..bd821d53b3 100644
--- a/packages/admin-sdk/CHANGELOG.md
+++ b/packages/admin-sdk/CHANGELOG.md
@@ -1,5 +1,11 @@
# @spree/admin-sdk
+## 0.8.0
+
+### Minor Changes
+
+- [#14342](https://github.com/spree/spree/pull/14342) [`202d846`](https://github.com/spree/spree/commit/202d846374270c75e19b23cea5498ea559577f67) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add per-channel order routing rule management. `@spree/admin-sdk` gains `channels.orderRoutingRules.{list,get,create,update,delete}` (nested under `/channels/:channel_id/order_routing_rules`) plus `orderRoutingRules.types()` for rule-kind discovery; the admin `Store` type now exposes `preferred_order_routing_strategy`. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. `Subject.OrderRoutingRule` is available for permission checks.
+
## 0.7.0
### Minor Changes
diff --git a/packages/admin-sdk/package.json b/packages/admin-sdk/package.json
index c2be21b629..0fe66c179a 100644
--- a/packages/admin-sdk/package.json
+++ b/packages/admin-sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@spree/admin-sdk",
- "version": "0.7.0",
+ "version": "0.8.0",
"description": "Official TypeScript SDK for Spree Commerce Admin API",
"type": "module",
"main": "./dist/index.cjs",
diff --git a/packages/dashboard-core/CHANGELOG.md b/packages/dashboard-core/CHANGELOG.md
index daaead532f..6786f29257 100644
--- a/packages/dashboard-core/CHANGELOG.md
+++ b/packages/dashboard-core/CHANGELOG.md
@@ -1,5 +1,13 @@
# @spree/dashboard-core
+## 0.13.0
+
+### Minor Changes
+
+- [#14342](https://github.com/spree/spree/pull/14342) [`202d846`](https://github.com/spree/spree/commit/202d846374270c75e19b23cea5498ea559577f67) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add per-channel order routing rule management. `@spree/admin-sdk` gains `channels.orderRoutingRules.{list,get,create,update,delete}` (nested under `/channels/:channel_id/order_routing_rules`) plus `orderRoutingRules.types()` for rule-kind discovery; the admin `Store` type now exposes `preferred_order_routing_strategy`. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. `Subject.OrderRoutingRule` is available for permission checks.
+
+- [#14341](https://github.com/spree/spree/pull/14341) [`dc33237`](https://github.com/spree/spree/commit/dc332372b918ffeb92252c33372a1d71a221a7d4) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Improve editing of quantity-bounded price rules. A blank upper-bound preference (`max_quantity`, `max_uses`, `maximum_amount`, …) now shows "Unlimited" instead of an empty required-looking field across every preferences form. The Volume price rule gains a dedicated editor that renders minimum quantity before maximum, so a case-pack minimum reads in a natural order.
+
## 0.12.0
## 0.10.2
diff --git a/packages/dashboard-core/package.json b/packages/dashboard-core/package.json
index 4cf5345e58..f0d78ef8c6 100644
--- a/packages/dashboard-core/package.json
+++ b/packages/dashboard-core/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard-core",
"license": "MIT",
- "version": "0.12.0",
+ "version": "0.13.0",
"description": "Spree Dashboard framework — registries (table, nav, slot, settings-nav), providers (auth, permission, store), admin SDK client, generic infra hooks, and the defineDashboardPlugin extension API. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
diff --git a/packages/dashboard-ui/CHANGELOG.md b/packages/dashboard-ui/CHANGELOG.md
index e6128c06c0..8853546809 100644
--- a/packages/dashboard-ui/CHANGELOG.md
+++ b/packages/dashboard-ui/CHANGELOG.md
@@ -1,3 +1,9 @@
# @spree/dashboard-ui
+## 0.13.0
+
+### Minor Changes
+
+- [#14342](https://github.com/spree/spree/pull/14342) [`202d846`](https://github.com/spree/spree/commit/202d846374270c75e19b23cea5498ea559577f67) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add per-channel order routing rule management. `@spree/admin-sdk` gains `channels.orderRoutingRules.{list,get,create,update,delete}` (nested under `/channels/:channel_id/order_routing_rules`) plus `orderRoutingRules.types()` for rule-kind discovery; the admin `Store` type now exposes `preferred_order_routing_strategy`. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. `Subject.OrderRoutingRule` is available for permission checks.
+
## 0.12.0
diff --git a/packages/dashboard-ui/package.json b/packages/dashboard-ui/package.json
index 892cef84d4..429a4d9111 100644
--- a/packages/dashboard-ui/package.json
+++ b/packages/dashboard-ui/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard-ui",
"license": "MIT",
- "version": "0.12.0",
+ "version": "0.13.0",
"description": "Spree Dashboard design system — shadcn primitives, headless composed components, and design tokens. Source-only package; consumers compile via their own Vite/Tailwind setup. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
diff --git a/packages/dashboard/CHANGELOG.md b/packages/dashboard/CHANGELOG.md
index ec5b8df261..143fbdc609 100644
--- a/packages/dashboard/CHANGELOG.md
+++ b/packages/dashboard/CHANGELOG.md
@@ -1,5 +1,20 @@
# @spree/dashboard
+## 0.13.0
+
+### Minor Changes
+
+- [#14342](https://github.com/spree/spree/pull/14342) [`202d846`](https://github.com/spree/spree/commit/202d846374270c75e19b23cea5498ea559577f67) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add per-channel order routing rule management. `@spree/admin-sdk` gains `channels.orderRoutingRules.{list,get,create,update,delete}` (nested under `/channels/:channel_id/order_routing_rules`) plus `orderRoutingRules.types()` for rule-kind discovery; the admin `Store` type now exposes `preferred_order_routing_strategy`. The dashboard's channel edit sheet embeds a routing-rules editor — drag-to-reorder priority, per-rule active toggles, an "Add rule" picker fed by the types endpoint (offering only kinds not yet on the channel; rule kinds are unique per channel), and schema-driven preference forms for rule kinds that declare preferences. The editor renders only when the channel's effective routing strategy is Rules. `Subject.OrderRoutingRule` is available for permission checks.
+
+- [#14341](https://github.com/spree/spree/pull/14341) [`dc33237`](https://github.com/spree/spree/commit/dc332372b918ffeb92252c33372a1d71a221a7d4) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Improve editing of quantity-bounded price rules. A blank upper-bound preference (`max_quantity`, `max_uses`, `maximum_amount`, …) now shows "Unlimited" instead of an empty required-looking field across every preferences form. The Volume price rule gains a dedicated editor that renders minimum quantity before maximum, so a case-pack minimum reads in a natural order.
+
+### Patch Changes
+
+- Updated dependencies [[`202d846`](https://github.com/spree/spree/commit/202d846374270c75e19b23cea5498ea559577f67), [`dc33237`](https://github.com/spree/spree/commit/dc332372b918ffeb92252c33372a1d71a221a7d4)]:
+
## 0.12.0
### Minor Changes
diff --git a/packages/dashboard/package.json b/packages/dashboard/package.json
index cb519e994a..f602b46f90 100644
--- a/packages/dashboard/package.json
+++ b/packages/dashboard/package.json
@@ -1,7 +1,7 @@
{
"name": "@spree/dashboard",
"license": "MIT",
- "version": "0.12.0",
+ "version": "0.13.0",
"description": "Spree Dashboard app shell — the next-gen React admin for Spree Commerce. Routes, resource hooks, schemas, locales, and the <Dashboard /> component. Source-only package; hosts compile it via @spree/dashboard/vite. Developer Preview.",
"author": "Vendo Connect Inc.",
"homepage": "https://spreecommerce.org",
diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md
index e2eb90f935..2f2dcba2ec 100644
--- a/packages/sdk/CHANGELOG.md
+++ b/packages/sdk/CHANGELOG.md
@@ -1,5 +1,19 @@
# @spree/sdk
+## 1.2.0
+
+### Minor Changes
+
+- [#14339](https://github.com/spree/spree/pull/14339) [`b71e613`](https://github.com/spree/spree/commit/b71e61326289d7ef4038a4bd55f353569a242d52) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add newsletter unsubscribe endpoints. `newsletterSubscribers.requestUnsubscribe({ email })` asks the store to fire a `newsletter_subscriber.unsubscribe_requested` webhook event carrying an unsubscribe token (always 202, so email existence is never revealed). `newsletterSubscribers.delete(id, { token })` removes a subscription using that token from an email link, or — with a customer JWT instead of the token — removes the signed-in customer's own subscription. `Customer` now exposes the store-scoped `newsletter_subscriber` on `GET /customers/me`, which is where a signed-in customer reads the subscription id.
+
+- [#14339](https://github.com/spree/spree/pull/14339) [`b71e613`](https://github.com/spree/spree/commit/b71e61326289d7ef4038a4bd55f353569a242d52) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Money fields are now typed `string | null` across Cart, Order, LineItem, Payment, Fulfillment, GiftCard, and Discount (Zod schemas accept `null` accordingly). On a gated channel (`prices_hidden`), the Store API returns `null` for every monetary amount — including those on records nested inside a cart or order — so anonymous visitors cannot recover hidden prices. Handle `null` before formatting or doing arithmetic on these fields.
+
+- [#14339](https://github.com/spree/spree/pull/14339) [`b71e613`](https://github.com/spree/spree/commit/b71e61326289d7ef4038a4bd55f353569a242d52) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Surface pre-order status on the Store API types. `Variant`, `Product`, and `LineItem` now expose `preorder` (whether the item is currently sold as a pre-order) and `preorder_ships_at` (the customer-facing "ships by" promise, `null` unless it's a live pre-order), so storefronts can render a "Pre-order — ships by …" badge. Both fields are included in the generated Zod schemas.
+
+- [#14339](https://github.com/spree/spree/pull/14339) [`b71e613`](https://github.com/spree/spree/commit/b71e61326289d7ef4038a4bd55f353569a242d52) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Add `client.channel.get()` — returns the channel the client's requests resolve to (API-key binding → `channel` option → store default), including the resolved `storefront_access` posture (`public` | `prices_hidden` | `login_required`) and `guest_checkout`. Gated storefronts can call it before authentication to decide whether to render a sign-in wall. Also exports the `Channel` and `CustomerGroup` types; `customers/me` now includes store-scoped `customer_groups`; and `Cart` carries `channel_id`, so a storefront serving several channels can verify a persisted cart belongs to the surface loading it.
+
+- [#14339](https://github.com/spree/spree/pull/14339) [`b71e613`](https://github.com/spree/spree/commit/b71e61326289d7ef4038a4bd55f353569a242d52) Thanks [@damianlegawiec](https://github.com/damianlegawiec)! - Support gated storefronts in the Store API. A channel (or its store) can now hide prices from anonymous visitors or require a login to browse: when prices are hidden, monetary fields on products, carts, and orders return `null` for guests, and `login_required` channels reject unauthenticated requests with `401`. Guest checkout can likewise be disallowed per channel, in which case completing a cart without a signed-in customer returns `401`.
+
## 1.1.0
### Minor Changes
diff --git a/packages/sdk/package.json b/packages/sdk/package.json
index d68c3c42f4..d1b2e815ac 100644
--- a/packages/sdk/package.json
+++ b/packages/sdk/package.json
@@ -1,6 +1,6 @@
{
"name": "@spree/sdk",
- "version": "1.1.0",
+ "version": "1.2.0",
"description": "Official TypeScript SDK for Spree Commerce Store API",
"type": "module",
"main": "./dist/index.cjs",