@scayle/storefront-core 8.34.0 → 8.35.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/CHANGELOG-V7.md CHANGED
@@ -43,7 +43,7 @@ This changelog contains all changes of `@scayle/storefront-core` above v6.0.0 an
43
43
 
44
44
  ### Minor Changes
45
45
 
46
- - Set `sapiClient` in `RpcContext` as required to improve the updatability of RPC methods.
46
+ - Set `sapiClient` in `RpcContext` as required to improve the upgradability of RPC methods.
47
47
 
48
48
  ## 7.67.1
49
49
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 8.35.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Removed optional key `fbook` from `ShopUser` interface
8
+ - Renamed incorrectly formatted function `getBackurlFromBreadcrumbs` to `getBackURLFromBreadcrumbs`
9
+
10
+ ### Patch Changes
11
+
12
+ - Renamed interface incorrectly named `IdenfitierFilterItemWithValues` to `IdentifierFilterItemWithValues`
13
+
14
+ **Dependencies**
15
+
16
+ - Updated dependency to @scayle/storefront-api@18.10.0
17
+
18
+ ## 8.34.1
19
+
20
+ ### Patch Changes
21
+
22
+ **Dependencies**
23
+
24
+ - Updated dependency to @scayle/storefront-api@18.9.0
25
+ - Updated dependency to @scayle/unstorage-scayle-kv-driver@1.0.2
26
+
3
27
  ## 8.34.0
4
28
 
5
29
  ### Minor Changes
@@ -328,7 +352,7 @@ No changes in this release.
328
352
  - `FilterItemWithValues`
329
353
  - `BooleanFilterItemWithValues`
330
354
  - `RangeFilterItemWithValues`
331
- - `IdenfitierFilterItemWithValues`
355
+ - `IdentifierFilterItemWithValues`
332
356
  - `AttributesFilterValue`
333
357
 
334
358
  ## 8.20.1
@@ -42,4 +42,4 @@ export declare const getBreadcrumbs: (categories: ProductCategory[] | Category,
42
42
  *
43
43
  * @returns The back URL or '/' if breadcrumbs is undefined or empty.
44
44
  */
45
- export declare const getBackurlFromBreadcrumbs: (breadcrumbs?: BreadcrumbItem[]) => string;
45
+ export declare const getBackURLFromBreadcrumbs: (breadcrumbs?: BreadcrumbItem[]) => string;
@@ -39,6 +39,6 @@ export const getBreadcrumbsFromPath = (path = "", shopLocale = "") => {
39
39
  export const getBreadcrumbs = (categories, activeNode) => {
40
40
  return Array.isArray(categories) ? getBreadcrumbsFromProductCategories(categories) : getBreadcrumbsFromCategory(categories, activeNode);
41
41
  };
42
- export const getBackurlFromBreadcrumbs = (breadcrumbs) => {
42
+ export const getBackURLFromBreadcrumbs = (breadcrumbs) => {
43
43
  return breadcrumbs?.[breadcrumbs?.length - 1].to ?? "/";
44
44
  };
@@ -37,7 +37,7 @@ export const getCheckoutToken = defineRpcHandler(async (jwtPayload = {}, context
37
37
  carrier,
38
38
  basketId: context.basketKey,
39
39
  campaignKey
40
- }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.34.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
40
+ }).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.35.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
41
41
  return {
42
42
  accessToken: refreshedAccessToken,
43
43
  checkoutJwt
@@ -1,6 +1,6 @@
1
1
  import type { AttributeWithBooleanValueFilter, AttributeWithValuesFilter, FiltersEndpointResponseData, ProductSearchQuery, ProductSortConfig, ProductsSearchEndpointParameters } from '@scayle/storefront-api';
2
2
  import type { Query } from './router';
3
- export type { FilterItemWithValues, BooleanFilterItemWithValues, AttributesFilterItemWithValues, RangeFilterItemWithValues, IdenfitierFilterItemWithValues, AttributesFilterValue, AttributeWithBooleanValueFilter, AttributeWithValuesFilter, AttributeKey, } from '@scayle/storefront-api';
3
+ export type { FilterItemWithValues, BooleanFilterItemWithValues, AttributesFilterItemWithValues, RangeFilterItemWithValues, IdentifierFilterItemWithValues, AttributesFilterValue, AttributeWithBooleanValueFilter, AttributeWithValuesFilter, AttributeKey, } from '@scayle/storefront-api';
4
4
  /**
5
5
  * Parameters for filtering products.
6
6
  */
@@ -30,7 +30,7 @@ export interface FilterParams {
30
30
  */
31
31
  export type FetchFiltersParams = {
32
32
  includedFilters?: Array<string>;
33
- /** where clause for prefiltering the filters */
33
+ /** where clause for pre-filtering the filters */
34
34
  where?: {
35
35
  /** The search term. */
36
36
  term?: ProductSearchQuery['term'];
@@ -30,7 +30,7 @@ export type ListOfPackages = {
30
30
  };
31
31
  }[];
32
32
  /**
33
- * When an item cannot be shipped within the regular delivery timeframe,
33
+ * When an item cannot be shipped within the regular delivery time frame,
34
34
  * and the warehouse is already aware of this, prior to the customer placing the
35
35
  * order (ie it is not an unintentionally delayed delivery).
36
36
  * This is generally the case when the item is out of stock and:
@@ -104,7 +104,7 @@ export interface OrderForwardAddress {
104
104
  export type OrderStatus = 'order_open' | 'payment_pending' | 'payment_reserved' | 'invoice_completed' | 'cancellation_pending' | 'cancellation_completed' | 'invoice_partially_completed';
105
105
  export type OrderStatusCode = 'order_created' | 'order_open' | 'order_pended' | 'order_confirmed' | 'order_delegated' | 'order_shipped' | 'order_invoiced' | 'order_aborted' | 'order_cancelled' | 'order_imported' | 'order_invoice_error';
106
106
  export type BillingStatusCode = 'billing_open' | 'billing_pending' | 'billing_payment_pending' | 'billing_completed' | 'billing_payment_cancelled' | 'billing_partially_refunded' | 'billing_refunded';
107
- export type ShippingStatusCode = 'shipping_open' | 'shipping_not_deliveable' | 'shipping_ordered' | 'shipping_delivered' | 'shipping_cancelled' | 'shipping_undeliverable' | 'shipping_returned' | 'shipping_partially_returned' | 'shipping_partially_undeliverable';
107
+ export type ShippingStatusCode = 'shipping_open' | 'shipping_not_deliverable' | 'shipping_ordered' | 'shipping_delivered' | 'shipping_cancelled' | 'shipping_undeliverable' | 'shipping_returned' | 'shipping_partially_returned' | 'shipping_partially_undeliverable';
108
108
  export interface OrderItem<Product = Record<string, unknown>, Variant = Record<string, unknown>> {
109
109
  id?: string;
110
110
  /**
@@ -307,7 +307,7 @@ export interface Order<Product = Record<string, unknown>, Variant = Record<strin
307
307
  */
308
308
  withoutTax: CentAmount;
309
309
  /**
310
- * The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be provdided on the request).
310
+ * The price is calculated including taxes and all applicable reductions such as discounts for sale and campaigns (should a campaign key be provided on the request).
311
311
  */
312
312
  withTax: CentAmount;
313
313
  };
@@ -166,8 +166,6 @@ export interface ShopUser {
166
166
  updatedAt: string;
167
167
  /** The user's email address. */
168
168
  email?: string;
169
- /** Whether user has a connected facebook account*/
170
- fbook?: boolean;
171
169
  /** The user's ID. */
172
170
  id: number;
173
171
  /** Whether the user is a guest. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "8.34.0",
3
+ "version": "8.35.0",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -56,17 +56,17 @@
56
56
  "ufo": "^1.5.3",
57
57
  "uncrypto": "^0.1.3",
58
58
  "utility-types": "^3.11.0",
59
- "@scayle/storefront-api": "18.9.0",
59
+ "@scayle/storefront-api": "18.10.0",
60
60
  "@scayle/unstorage-scayle-kv-driver": "1.0.2"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/crypto-js": "4.2.2",
64
- "@types/node": "22.16.3",
64
+ "@types/node": "22.16.4",
65
65
  "@types/webpack-env": "1.18.8",
66
66
  "@vitest/coverage-v8": "3.2.4",
67
67
  "dprint": "0.50.1",
68
68
  "eslint-formatter-gitlab": "6.0.1",
69
- "eslint": "9.30.1",
69
+ "eslint": "9.31.0",
70
70
  "fishery": "2.3.1",
71
71
  "publint": "0.3.12",
72
72
  "rimraf": "6.0.1",
@@ -74,7 +74,7 @@
74
74
  "unbuild": "3.5.0",
75
75
  "unstorage": "1.16.0",
76
76
  "vitest": "3.2.4",
77
- "@scayle/eslint-config-storefront": "4.5.13"
77
+ "@scayle/eslint-config-storefront": "4.6.1"
78
78
  },
79
79
  "volta": {
80
80
  "node": "22.17.0"