@thorprovider/adapters 4.0.1 → 4.2.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.
@@ -1,18 +1,18 @@
1
- CLI Building entry: {"index":"src/index.ts"}
2
- CLI Using tsconfig: tsconfig.json
3
- CLI tsup v8.5.1
4
- CLI Using tsup config: /home/nelson/dev/thorprovider/repos/thorcommerce/packages/adapters/tsup.config.ts
5
- CLI Target: esnext
6
- CLI Cleaning output folder
7
- CJS Build start
8
- ESM Build start
9
- ESM dist/index.mjs 270.54 KB
10
- ESM dist/index.mjs.map 550.94 KB
11
- ESM ⚡️ Build success in 138ms
12
- CJS dist/index.js 275.05 KB
13
- CJS dist/index.js.map 551.29 KB
14
- CJS ⚡️ Build success in 138ms
15
- DTS Build start
16
- DTS ⚡️ Build success in 2939ms
17
- DTS dist/index.d.ts 88.39 KB
18
- DTS dist/index.d.mts 88.39 KB
1
+ CLI Building entry: {"index":"src/index.ts"}
2
+ CLI Using tsconfig: tsconfig.json
3
+ CLI tsup v8.5.1
4
+ CLI Using tsup config: /home/runner/work/thor-commerce/thor-commerce/packages/adapters/tsup.config.ts
5
+ CLI Target: esnext
6
+ CLI Cleaning output folder
7
+ CJS Build start
8
+ ESM Build start
9
+ CJS dist/index.js 307.49 KB
10
+ CJS dist/index.js.map 617.40 KB
11
+ CJS ⚡️ Build success in 395ms
12
+ ESM dist/index.mjs 302.90 KB
13
+ ESM dist/index.mjs.map 617.04 KB
14
+ ESM ⚡️ Build success in 391ms
15
+ DTS Build start
16
+ DTS ⚡️ Build success in 10651ms
17
+ DTS dist/index.d.ts 91.97 KB
18
+ DTS dist/index.d.mts 91.97 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 926be1f: Add mock-provider support across published packages and align the starter for mock-first storefront creation.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [926be1f]
12
+ - @thorprovider/types@3.2.0
13
+
14
+ ## 4.1.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 483dff2: Update packages.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [483dff2]
23
+ - @thorprovider/types@3.1.0
24
+
3
25
  ## 4.0.1
4
26
 
5
27
  ### Patch Changes
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ ---
2
+ title: "@thorprovider/adapters"
3
+ purpose: "Explain the adapter package, its value proposition, and how to use the unified commerce provider layer"
4
+ lastReviewed: "2026-05-01"
5
+ ---
6
+
1
7
  # @thorprovider/adapters v2.0
2
8
 
3
9
  **Unified commerce adapters for Thor Commerce ecosystem**
@@ -125,6 +131,7 @@ Need e-commerce backend integration?
125
131
  ### Supported Providers
126
132
 
127
133
  Currently implemented:
134
+ - ✅ **Mock** — Fixture-backed provider for local development, previews, and backend-optional storefront bootstrapping
128
135
  - ✅ **Medusa JS** (v2) — Full implementation with multi-tenant support
129
136
 
130
137
  Planned (Phase 2–3):
@@ -137,7 +144,15 @@ Planned (Phase 2–3):
137
144
  ### Provider Selection
138
145
 
139
146
  ```typescript
140
- // Medusa backend (currently the only supported provider)
147
+ // Mock provider (safe default for preview / development)
148
+ const mockCommerce = createProvider({
149
+ provider: 'mock',
150
+ config: {
151
+ currencyCode: 'USD',
152
+ }
153
+ });
154
+
155
+ // Medusa backend
141
156
  const commerce = createProvider({
142
157
  provider: 'medusa',
143
158
  config: {
@@ -426,7 +441,7 @@ if (commerce.capabilities.updateEmail) {
426
441
  | **Shopify** | 🚧 Planned | [Shopify API](https://shopify.dev/api/storefront) |
427
442
  | **WooCommerce** | 🗓️ Roadmap | [WooCommerce API](https://woocommerce.github.io/woocommerce-rest-api-docs/) |
428
443
  | **BigCommerce** | 🗓️ Roadmap | [BigCommerce API](https://developer.bigcommerce.com/) |
429
- | **Local (Mock)** | 🗓️ Roadmap | For testing |
444
+ | **Local (Mock)** | ✅ Production Ready | For testing, previews, and backend-optional storefronts |
430
445
 
431
446
  **See**: [Providers Overview](./docs/providers-overview.md)
432
447