@shopkit/data-layer 1.3.0 → 1.4.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.
@@ -155,6 +155,19 @@ interface IOptionsRequest {
155
155
  * AbortSignal for request cancellation
156
156
  */
157
157
  signal?: AbortSignal;
158
+ /**
159
+ * Next.js fetch cache options — forwarded verbatim to fetch(). `tags` enable
160
+ * on-demand revalidation via revalidateTag(); ignored outside Next runtimes and
161
+ * on non-GET requests (Next only caches GET). See @shopkit/core/cache-tags.
162
+ */
163
+ next?: {
164
+ tags?: string[];
165
+ revalidate?: number | false;
166
+ };
167
+ /**
168
+ * Next.js fetch cache mode (e.g. "force-cache" | "no-store"). Forwarded to fetch().
169
+ */
170
+ cache?: RequestCache;
158
171
  }
159
172
  /**
160
173
  * Request for GraphQL operations
@@ -155,6 +155,19 @@ interface IOptionsRequest {
155
155
  * AbortSignal for request cancellation
156
156
  */
157
157
  signal?: AbortSignal;
158
+ /**
159
+ * Next.js fetch cache options — forwarded verbatim to fetch(). `tags` enable
160
+ * on-demand revalidation via revalidateTag(); ignored outside Next runtimes and
161
+ * on non-GET requests (Next only caches GET). See @shopkit/core/cache-tags.
162
+ */
163
+ next?: {
164
+ tags?: string[];
165
+ revalidate?: number | false;
166
+ };
167
+ /**
168
+ * Next.js fetch cache mode (e.g. "force-cache" | "no-store"). Forwarded to fetch().
169
+ */
170
+ cache?: RequestCache;
158
171
  }
159
172
  /**
160
173
  * Request for GraphQL operations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopkit/data-layer",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Enterprise data abstraction layer providing unified API for e-commerce platforms including Shopify and custom backends",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -102,7 +102,9 @@
102
102
  }
103
103
  },
104
104
  "dependencies": {
105
- "@shopify/hydrogen-react": "^2025.5.0"
105
+ "@shopify/hydrogen-react": "^2025.5.0",
106
+ "@shopify/storefront-api-client": "^1.0.8",
107
+ "@shopkit/core": "workspace:*"
106
108
  },
107
109
  "devDependencies": {
108
110
  "@types/node": "^20.8.10",