@scayle/storefront-core 8.20.0 → 8.21.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.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @scayle/storefront-core
|
|
2
2
|
|
|
3
|
+
## 8.21.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Expose the following filter types from `storefront-api`:
|
|
8
|
+
|
|
9
|
+
- `FilterItemWithValues`
|
|
10
|
+
- `BooleanFilterItemWithValues`
|
|
11
|
+
- `RangeFilterItemWithValues`
|
|
12
|
+
- `IdenfitierFilterItemWithValues`
|
|
13
|
+
- `AttributesFilterValue`
|
|
14
|
+
|
|
15
|
+
## 8.20.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Re-exported `BasketKey` and `ApplicablePromotion` from `@scayle/storefront-api`
|
|
20
|
+
|
|
21
|
+
**Dependencies**
|
|
22
|
+
|
|
23
|
+
- Updated dependency to @scayle/storefront-api@18.3.0
|
|
24
|
+
|
|
3
25
|
## 8.20.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
|
@@ -36,7 +36,7 @@ export const getCheckoutToken = async function getCheckoutToken2(jwtPayload = {}
|
|
|
36
36
|
carrier,
|
|
37
37
|
basketId: context.basketKey,
|
|
38
38
|
campaignKey
|
|
39
|
-
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.
|
|
39
|
+
}).setIssuedAt(now).setNotBefore(now).setExpirationTime("1h").setIssuer(`${"@scayle/storefront-core"}@${"8.21.0"}`).setProtectedHeader({ alg: "HS256", typ: "JWT" }).sign(secret);
|
|
40
40
|
return {
|
|
41
41
|
accessToken: refreshedAccessToken,
|
|
42
42
|
checkoutJwt
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BasketItemDisplayData, BasketItemDisplayDataKey, BasketResponse, BasketResponseData, BasketWith,
|
|
1
|
+
import type { BasketKey, ApplicablePromotion, BasketItemDisplayData, BasketItemDisplayDataItem, BasketItemDisplayDataKey, BasketResponse, BasketResponseData, BasketWith, CreateBasketItemParameters, ItemGroup } from '@scayle/storefront-api';
|
|
2
2
|
/**
|
|
3
3
|
* Represents custom data for a basket item. Corresponds to the `customData` property
|
|
4
4
|
* of `CreateBasketItemParameters`.
|
|
@@ -45,4 +45,4 @@ export interface UseBasketParams {
|
|
|
45
45
|
/** Data to include with the basket. */
|
|
46
46
|
with: BasketWithOptions;
|
|
47
47
|
}
|
|
48
|
-
export type { BasketItemDisplayData, BasketItemDisplayDataItem, BasketResponseData, BasketWith, BasketResponse, ItemGroup, };
|
|
48
|
+
export type { BasketKey, ApplicablePromotion, BasketItemDisplayData, BasketItemDisplayDataItem, BasketResponseData, BasketWith, BasketResponse, ItemGroup, };
|
|
@@ -1,7 +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 { AttributesFilterItemWithValues } from '@scayle/storefront-api';
|
|
4
|
-
export type { AttributeWithBooleanValueFilter, AttributeWithValuesFilter, AttributeKey, } from '@scayle/storefront-api';
|
|
3
|
+
export type { FilterItemWithValues, BooleanFilterItemWithValues, AttributesFilterItemWithValues, RangeFilterItemWithValues, IdenfitierFilterItemWithValues, AttributesFilterValue, AttributeWithBooleanValueFilter, AttributeWithValuesFilter, AttributeKey, } from '@scayle/storefront-api';
|
|
5
4
|
/**
|
|
6
5
|
* Parameters for filtering products.
|
|
7
6
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scayle/storefront-core",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.21.0",
|
|
4
4
|
"description": "Collection of essential utilities to work with the Storefront API",
|
|
5
5
|
"author": "SCAYLE Commerce Engine",
|
|
6
6
|
"license": "MIT",
|
|
@@ -52,7 +52,8 @@
|
|
|
52
52
|
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
53
53
|
"format": "dprint check",
|
|
54
54
|
"format:fix": "dprint fmt",
|
|
55
|
-
"lint": "eslint .
|
|
55
|
+
"lint": "eslint .",
|
|
56
|
+
"lint:ci": "eslint . --format gitlab",
|
|
56
57
|
"lint:fix": "eslint . --fix",
|
|
57
58
|
"package:lint": "publint",
|
|
58
59
|
"test:watch": "vitest --passWithNoTests",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"fishery": "^2.2.3"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
|
-
"@scayle/storefront-api": "18.
|
|
67
|
+
"@scayle/storefront-api": "18.3.0",
|
|
67
68
|
"@scayle/unstorage-scayle-kv-driver": "0.1.1",
|
|
68
69
|
"crypto-js": "^4.2.0",
|
|
69
70
|
"hookable": "^5.5.3",
|
|
@@ -76,7 +77,7 @@
|
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"@scayle/eslint-config-storefront": "4.5.0",
|
|
78
79
|
"@types/crypto-js": "4.2.2",
|
|
79
|
-
"@types/node": "22.14.
|
|
80
|
+
"@types/node": "22.14.1",
|
|
80
81
|
"@types/webpack-env": "1.18.8",
|
|
81
82
|
"@vitest/coverage-v8": "2.1.9",
|
|
82
83
|
"dprint": "0.49.1",
|