@scayle/storefront-core 7.50.1 → 7.51.1

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,19 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.51.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Update ShopConfiguration types
8
+ - Updated dependencies
9
+ - @scayle/storefront-api@17.1.0
10
+
11
+ ## 7.51.0
12
+
13
+ ### Minor Changes
14
+
15
+ - Allow extending the `RpcContext` type by augmenting the `AdditionalRpcContext` interface.
16
+
3
17
  ## 7.50.1
4
18
 
5
19
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import type { ShopConfigurationResponseData } from '@scayle/storefront-api';
1
+ import type { ShopConfiguration } from '@scayle/storefront-api';
2
2
  import type { RpcContext } from '../../types';
3
- declare const getShopConfiguration: ({ cached, bapiClient }: RpcContext) => Promise<ShopConfigurationResponseData>;
3
+ declare const getShopConfiguration: ({ cached, bapiClient }: RpcContext) => Promise<ShopConfiguration>;
4
4
  export { getShopConfiguration };
@@ -17,6 +17,8 @@ export type WithParams = Partial<{
17
17
  export interface RuntimeConfiguration {
18
18
  [key: string]: any;
19
19
  }
20
+ export interface AdditionalRpcContext {
21
+ }
20
22
  export interface ContextWithSession {
21
23
  wishlistKey: string;
22
24
  basketKey: string;
@@ -79,6 +81,6 @@ export type RpcContext = {
79
81
  runtimeConfiguration: RuntimeConfiguration;
80
82
  idp?: IDPConfig;
81
83
  headers: Headers;
82
- } & (ContextWithoutSession | ContextWithSession);
84
+ } & AdditionalRpcContext & (ContextWithoutSession | ContextWithSession);
83
85
  export type RpcContextWithSession = RpcContext & ContextWithSession;
84
86
  export declare function assertSession(context: RpcContext): asserts context is RpcContextWithSession;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.50.1",
3
+ "version": "7.51.1",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",
@@ -59,7 +59,7 @@
59
59
  "test:ci": "vitest --run --passWithNoTests --coverage --reporter=default --reporter=junit"
60
60
  },
61
61
  "dependencies": {
62
- "@scayle/storefront-api": "17.0.1",
62
+ "@scayle/storefront-api": "17.1.0",
63
63
  "crypto-js": "4.2.0",
64
64
  "jose": "5.3.0",
65
65
  "radash": "12.1.0",
@@ -77,7 +77,7 @@
77
77
  "dprint": "0.45.1",
78
78
  "eslint": "9.2.0",
79
79
  "eslint-formatter-gitlab": "5.1.0",
80
- "publint": "0.2.7",
80
+ "publint": "0.2.8",
81
81
  "rimraf": "5.0.7",
82
82
  "ts-node": "10.9.2",
83
83
  "typescript": "5.4.5",