@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.
- package/.turbo/turbo-build.log +18 -18
- package/CHANGELOG.md +22 -0
- package/README.md +17 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.mts +82 -1
- package/dist/index.d.ts +82 -1
- package/dist/index.js +1036 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1034 -0
- package/dist/index.mjs.map +1 -1
- package/docs/getting-started.md +32 -11
- package/docs/providers-overview.md +9 -3
- package/package.json +2 -2
- package/src/factory/index.ts +4 -0
- package/src/index.ts +3 -0
- package/src/lib/auth-storage.ts +101 -0
- package/src/providers/index.ts +3 -0
- package/src/providers/mock/index.ts +427 -0
- package/src/providers/mock/mock.ts +917 -0
- package/src/providers/shopify/auth.ts +402 -0
- package/src/providers/shopify/mutations.ts +145 -0
- package/src/providers/shopify/transforms.ts +6 -1
- package/src/types/capabilities.types.ts +33 -0
- package/.turbo/turbo-test.log +0 -1
- package/.turbo/turbo-type-check.log +0 -0
- package/publish.log +0 -93
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
[34mCLI[39m Building entry: {"index":"src/index.ts"}
|
|
2
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
3
|
+
[34mCLI[39m tsup v8.5.1
|
|
4
|
+
[34mCLI[39m Using tsup config: /home/runner/work/thor-commerce/thor-commerce/packages/adapters/tsup.config.ts
|
|
5
|
+
[34mCLI[39m Target: esnext
|
|
6
|
+
[34mCLI[39m Cleaning output folder
|
|
7
|
+
[34mCJS[39m Build start
|
|
8
|
+
[34mESM[39m Build start
|
|
9
|
+
[32mCJS[39m [1mdist/index.js [22m[32m307.49 KB[39m
|
|
10
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m617.40 KB[39m
|
|
11
|
+
[32mCJS[39m ⚡️ Build success in 395ms
|
|
12
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m302.90 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m617.04 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 391ms
|
|
15
|
+
[34mDTS[39m Build start
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 10651ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m91.97 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m91.97 KB[39m
|
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
|
-
//
|
|
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)** |
|
|
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
|
|