Skip to content

Commit

Permalink
Upgrade core to 2.1.1-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsobol committed Dec 15, 2020
1 parent b916cc7 commit 24b7824
Show file tree
Hide file tree
Showing 5 changed files with 328 additions and 453 deletions.
2 changes: 1 addition & 1 deletion packages/api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"prepublish": "yarn build"
},
"dependencies": {
"@vue-storefront/core": "2.0.12-lc.16"
"@vue-storefront/core": "2.1.1-rc.1"
},
"files": [
"lib/**/*"
Expand Down
2 changes: 1 addition & 1 deletion packages/composables/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@vue-storefront/boilerplate-api": "0.0.1",
"@vue-storefront/core": "2.0.12-lc.16"
"@vue-storefront/core": "2.1.1-rc.1"
},
"files": [
"lib/**/*"
Expand Down
8 changes: 6 additions & 2 deletions packages/composables/src/getters/cartGetters.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CartGetters, AgnosticPrice, AgnosticTotals, AgnosticCoupon } from '@vue-storefront/core';
import { CartGetters, AgnosticPrice, AgnosticTotals, AgnosticCoupon, AgnosticDiscount } from '@vue-storefront/core';
import { Cart, LineItem } from '@vue-storefront/boilerplate-api/src/types';

// eslint-disable-next-line @typescript-eslint/no-unused-vars
Expand Down Expand Up @@ -65,6 +65,9 @@ export const getFormattedPrice = (price: number) => String(price);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const getCoupons = (cart: Cart): AgnosticCoupon[] => [];

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const getDiscounts = (cart: Cart): AgnosticDiscount[] => [];

const cartGetters: CartGetters<Cart, LineItem> = {
getTotals: getCartTotals,
getShippingPrice: getCartShippingPrice,
Expand All @@ -77,7 +80,8 @@ const cartGetters: CartGetters<Cart, LineItem> = {
getItemSku: getCartItemSku,
getFormattedPrice: getFormattedPrice,
getTotalItems: getCartTotalItems,
getCoupons
getCoupons,
getDiscounts
};

export default cartGetters;
4 changes: 2 additions & 2 deletions packages/theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@storefront-ui/vue": "^0.9.1",
"@vue-storefront/boilerplate-api": "0.0.1",
"@vue-storefront/boilerplate": "0.0.1",
"@vue-storefront/nuxt": "0.0.12-lc.16",
"@vue-storefront/nuxt-theme": "0.0.6-lc.16",
"@vue-storefront/nuxt": "2.1.1-rc.1",
"@vue-storefront/nuxt-theme": "2.1.1-rc.1",
"@nuxtjs/style-resources": "^1.0.0",
"cookie-universal-nuxt": "^2.1.3",
"nuxt-i18n": "^6.5.0",
Expand Down
Loading

0 comments on commit 24b7824

Please sign in to comment.