@scayle/storefront-core 7.50.0 → 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,19 @@
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
+
9
+ ## 7.50.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Add missing `BuyXGetYEffect` and `AutomaticDiscountEffect` exports
14
+ - Updated dependencies
15
+ - @scayle/storefront-api@17.0.1
16
+
3
17
  ## 7.50.0
4
18
 
5
19
  ### Minor 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;
@@ -1,2 +1,2 @@
1
1
  export type { PromotionsEndpointResponseData as PromotionsResponseData, PromotionsEndpointRequestParameters as PromotionsParams, } from '@scayle/storefront-api';
2
- export type { Promotion, PromotionCondition, PromotionCustomData, PromotionEffect, } from '@scayle/storefront-api';
2
+ export type { Promotion, PromotionCondition, PromotionCustomData, PromotionEffect, AutomaticDiscountEffect, BuyXGetYEffect, } from '@scayle/storefront-api';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scayle/storefront-core",
3
- "version": "7.50.0",
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",
@@ -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.0",
62
+ "@scayle/storefront-api": "17.0.1",
63
63
  "crypto-js": "4.2.0",
64
64
  "jose": "5.3.0",
65
65
  "radash": "12.1.0",