diff --git a/packages/vendure-order-client/CHANGELOG.md b/packages/vendure-order-client/CHANGELOG.md index ef9de636..b682e9d8 100644 --- a/packages/vendure-order-client/CHANGELOG.md +++ b/packages/vendure-order-client/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.6.0 (2023-13-09) + +- Make VendureOrderClient.updateEligibleShippingMethods public +- export the store helpers + # 2.5.0 (2023-13-09) - Export vendure graphql types diff --git a/packages/vendure-order-client/package.json b/packages/vendure-order-client/package.json index 67a2b402..61cb5aaa 100644 --- a/packages/vendure-order-client/package.json +++ b/packages/vendure-order-client/package.json @@ -1,6 +1,6 @@ { "name": "@pinelab/vendure-order-client", - "version": "2.5.0", + "version": "2.6.0", "description": "A tiny, framework agnostic client for managing active orders and checkout with Vendure.", "author": "Martijn van de Brug ", "homepage": "https://pinelab-plugins.com/", diff --git a/packages/vendure-order-client/src/index.ts b/packages/vendure-order-client/src/index.ts index 17084d0a..4a737f0c 100644 --- a/packages/vendure-order-client/src/index.ts +++ b/packages/vendure-order-client/src/index.ts @@ -1,3 +1,4 @@ export * from './vendure-order-client'; export * from './vendure-order-events'; export * from './graphql-generated-types'; +export * from './store-helpers'; diff --git a/packages/vendure-order-client/src/vendure-order-client.ts b/packages/vendure-order-client/src/vendure-order-client.ts index fa736e13..8c3313a3 100644 --- a/packages/vendure-order-client/src/vendure-order-client.ts +++ b/packages/vendure-order-client/src/vendure-order-client.ts @@ -147,7 +147,7 @@ export class VendureOrderClient { productVariantIds: [productVariantId], quantity, }); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -190,12 +190,12 @@ export class VendureOrderClient { quantity: -adjustment, // adjustment is negative, so invert it }); } - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } async removeOrderLine(orderLineId: Id): Promise> { - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return await this.adjustOrderLine(orderLineId, 0); } @@ -218,7 +218,7 @@ export class VendureOrderClient { productVariantIds: allVariantIds, quantity: totalQuantity, }); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -235,7 +235,7 @@ export class VendureOrderClient { this.eventBus.emit('coupon-code-applied', { couponCode, }); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -257,7 +257,7 @@ export class VendureOrderClient { this.eventBus.emit('coupon-code-removed', { couponCode, }); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -273,7 +273,7 @@ export class VendureOrderClient { setCustomerForOrder as ActiveOrder ); setResult(this.$activeOrder, activeOrder); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -289,7 +289,7 @@ export class VendureOrderClient { setOrderShippingAddress as ActiveOrder ); setResult(this.$activeOrder, activeOrder); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -303,7 +303,7 @@ export class VendureOrderClient { setOrderBillingAddress as ActiveOrder ); setResult(this.$activeOrder, activeOrder); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -319,7 +319,7 @@ export class VendureOrderClient { setOrderShippingMethod as ActiveOrder ); setResult(this.$activeOrder, activeOrder); - void this.updateEligibleShippingMehods(); + void this.updateEligibleShippingMethods(); return activeOrder; } @@ -479,7 +479,7 @@ export class VendureOrderClient { } @HandleLoadingState('$eligibleShippingMethods') - private async updateEligibleShippingMehods(): Promise { + async updateEligibleShippingMethods(): Promise { const { eligibleShippingMethods } = await this.rawRequest<{ eligibleShippingMethods: ShippingMethodQuote[]; }>(this.queries.GET_ELIGIBLE_SHIPPING_METHODS);