@scayle/storefront-core 7.50.1 → 7.51.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,11 @@
1
1
  # @scayle/storefront-core
2
2
 
3
+ ## 7.51.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Allow extending the `RpcContext` type by augmenting the `AdditionalRpcContext` interface.
8
+
3
9
  ## 7.50.1
4
10
 
5
11
  ### Patch Changes
@@ -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.0",
4
4
  "description": "Collection of essential utilities to work with the Storefront API",
5
5
  "author": "SCAYLE Commerce Engine",
6
6
  "license": "MIT",