Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4129 from DivanteLtd/hotfix/v1.11.2
Browse files Browse the repository at this point in the history
Hotfix/v1.11.2
  • Loading branch information
patzick authored Mar 10, 2020
2 parents 16f13df + b99458b commit f4a37fb
Show file tree
Hide file tree
Showing 109 changed files with 6,868 additions and 4,279 deletions.
76 changes: 66 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,65 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.2] - 2020.03.10

### Added

- Add `isBackRoute` that informs if user returns to route, skip loading products for category if he does - @gibkigonzo (#4066)
- Add server context to async data loader - @gibkigonzo (#4113)
- Add preload and preconnect for google font - @gibkigonzo (#4121)

### Changed / Improved

- optimizations - improved prefetch strategy - @gibkigonzo (#4080)
- improvements to Finnish translations - @evktalo (#4116)
- Radio button now allows separate checked, value and name attributes - @EndPositive (#4098)
- Update backwards compatible dependencies - @simonmaass (#4126)

### Fixed

- add disconnect and sync options for cart/clear - @gibkigonzo (#4062)
- add '1' as searched value for 'is_user_defined' and 'is_visible' (createAttributesListQuery) - @gibkigonzo (#4075)
- Fix possibility to add same SKU with different custom options to the cart - @Michal-Dziedzinski (#3595)
- Fix `calculateProductTax` to find matching tax rules from ES for current product - @DylannCordel (#4056)
- Set `totals` in products in cart always in reactive way - @psmyrek (#4079)
- Fix sync cart between tabs - @Michal-Dziedzinski (#3838)
- Add currentRoute to url module and return cached requests - @gibkigonzo (#4077, #4066)
- Hide original radio button behind built label - @EndPositive (#4098)
- Disable overriding `route` state in **INITIAL_STATE** - @gibkigonzo (#4095)
- Fix gtm order placement event when user was guest - @Michal-Dziedzinski (#4064)
- Fix gtm event switched properties - @Michal-Dziedzinski (#4106)
- Group 'productChecksum' and 'productsEquals' logic for all supported products types. Remove 'checksum' when editing product.
Remove and add coupon when user login Remove 'NA' as default company. Show qty in microcart for all types of product.
Remove preload font - it gives good performance, but vue-meta refresh page, because there is script onload. - @gibkigonzo (#4128)
- Keep old category before route is resolved - @gibkigonzo (#4124)
- Added comments in 'productsEqual' and change logic for different types of products. Remove login user after order in Checkout. Allow changing qty for 'group' and 'bundle'.products - @gibkigonzo (#4144)
- Fix incorrect root categories when extending includeFields - @Michal-Dziedzinski (#4090)
- Add onlyPositive prop to BaseInputNumber to not allow user type negative value - @Michal-Dziedzinski (#4136)
- Await for cart/authorize while login user - @gibkigonzo (#4133)
- Fixed `NOT_ALLOWED_SSR_EXTENSIONS_REGEX` to only match with file extensions having a dot - @haelbichalex (#4100)
- Add lazy load for vue-carousel - @gibkigonzo (#4157)

## [1.11.1] - 2020.02.05

### Added

- Add `ProductPrice` component with bundleOptions and customOptions prices - @gibkigonzo (#3978)
- Add lazy create cart token - @gibkigonzo (#3994)

### Changed / Improved

- Set cache tag when loading a category - @haelbichalex (#3940)
- In development build `webpack.config.js` in theme folder is now called without the `default` key
- In development build `webpack.config.js` in theme folder is now called without the `default` key - @psmyrek

### Fixed

- Added Finnish translations - @mattiteraslahti and @alphpkeemik
- Updated Estonian translations to match 1.11 - @alphpkeemik
- CookieNotification CSR&SSR mismatch fixed - @Fifciu (#3922)
- The attribute filter in `attribute/list` was not filtering the already loaded attributes properly - @pkarw (#3964)
- Update `hasProductErrors` in Product component and support additional sku in custom options - @gibkigonzo (#3976)
- Fixed logic for generating ${lang}.json files in multi-store setup - @jpkempf
- Fixed logic for generating \${lang}.json files in multi-store setup - @jpkempf
- Fixed logic for collecting valid locales in single-store, multi-lang setup - @jpkempf
- Make initial custom option value reactive - @gibkigonzo
- Fixed No image thumbnails leaded on 404 page - @andrzejewsky (#3955)
Expand All @@ -30,7 +72,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed product bundle comparison condition - @gk-daniel (#4004)
- Add event callback for checkout load initial data - @gibkigonzo(#3985)
- Fixed `Processing order...` modal closing too early - @grimasod (#4021)
- Keep registered payment methods after `syncTotals` - @grimasod (#4020)
- Keep registered payment methods after `syncTotals` - @grimasod (#4020)
- Added status code to the cache content and use it in cache response - @resubaka (#4014)
- Fixed sku attribute is missing on compare page - @gibkigonzo (#4036)
- Fixed z-index for aside in compare list - @gibkigonzo (#4037)
Expand All @@ -44,6 +86,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.11.0] - 2019.12.20

### Added

- Add unit tests for `core/modules/url` - @dz3n (#3469)
- Add unit test for `core/modules/checkout` - @psmyrek (#3460)
- Add defense against incomplete config in ssr renderer - @oskar1233 (#3774)
Expand All @@ -55,6 +98,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added price filtering key as config - @roywcm

### Fixed

- Fixed missing parameter to query function from cms/store/block/actions - @georgiev-ivan (#3909)
- Always close zoom overlay after changing product - @psmyrek (#3818)
- Fixed problem with cutting image height in category page on 1024px+ screen res - @AdKamil (#3781)
Expand All @@ -68,22 +112,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed Product page breadcrumbs problem when products are in multiple categories in different branches of the category tree - @grimasod (#3691)
- Change translation from jp-JP to ja-JP - @gibkigonzo (#3824)
- Fixed ecosystem config for pm2 - @andrzejewsky (#3842)
- Fixed `mappingFallback` for extending modules - @andrzejewsky (#3822)
- Fixed `mappingFallback` for extending modules - @andrzejewsky (#3822)
- Fixed adding products search results to category-next product store - @grimasod (#3877)
- Use `defaultSortBy` for sorting category products by default @haelbichalex (#3873)
- Fixed some potential mutations of Config object in `catalog` and `catalog-next` - @grimasod (#3843)
- Set `null` as default value for custom option in product page - @gibkigonzo (#3885)
- Fixed Breadcrumb filters - apply to second category fetch - @grimasod (#3887)
- Set `null` as default value for custom option in product page - @gibkigonzo (#3885)
- Fixed Breadcrumb filters - apply to second category fetch - @grimasod (#3887)
- Fixed `config.storeViews.commonCache` being ignored - @grimasod (#3895)
- Fixed static pages, password notification, offline mode #3902 - @andrzejewsky (#3902)
- Fixed error page display with enabled multistore - @gibkigonzo (#3890)
- Fixed edit shipping address in my account - @gibkigonzo (#3921)
- Fetch cms_block content in serverPrefetch method - @gibkigonzo (#3910)
- Fixed saving invalidated user token - @andrzejewsky (#3923)
- Fixed saving invalidated user token - @andrzejewsky (#3923)
- Keep category products objects on ssr - @gibkigonzo (#3924)
- product breadcrumbs - check if current category is not highest one - @gibkigonzo (#3933)

### Changed / Improved

- Changed pre commit hook to use NODE_ENV production to check for debugger statements - @resubaka (#3686)
- Improve the readability of 'getShippingDetails()' and 'updateDetails()' method of UserShippingDetails component - @adityasharma7 (#3770)
- Keep git after yarn install in dockerfile - @ddanier (#3826)
Expand All @@ -92,15 +137,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.11.0-rc.2] - 2019.10.31

### Added

- Add defense for incomplete config in preferchCachedAttributes helper
- Add unit test for \`core/modules/cms\` - @krskibin (#3738)

### Fixed

- Fixed deprecated getter in cmsBlock store - @resubaka (#3683)
- Fixed problem around dynamic urls when default storeView is set with appendStoreCode false and url set to / . @resubaka (#3685)
- Fixed three problems you can run into when you have bundle products - @resubaka (#3692)
- Reset nested menu after logout - @gibkigonzo (#3680)
- Fixed handling checkbox custom option - @gibkigonzo (#2781)
- Fixed handling checkbox custom option - @gibkigonzo (#2781)
- Fixed typos in docs - @afozbek (#3709)
- Fixed VSF build fails for some people due to lack of dependencies in the container - @krskibin (#3699)
- Fixed two graphql problems, one with cms_blocks and the other with default sort order - @resubaka (#3718)
Expand All @@ -120,6 +167,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Custom module `ConfigProvider` aren't called anymore - @cewald (#3797)

### Added

- Added Estonian translations - @alphpkeemik
- Added support for ES7 - @andrzejewsky (#3690)
- Added unit tests for `core/modules/mailer` - @krskibin (#3710)
Expand All @@ -131,6 +179,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add unit test for `core/modules/wishlist` - @psmyrek (#3471)

### Changed / Improved

- Use `encodeURIComponent` to encode get parameters in `multimatch.js` - @adityasharma7 (#3736)

## [1.11.0-rc.1] - 2019.10.03
Expand Down Expand Up @@ -248,7 +297,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove modifying config by reference in multistore - @gibkigonzo (#3617)
- Add translation key for add review - @gibkigonzo (#3611)
- Add product name prop to reviews component - @gibkigonzo (#3607)
- Show default cms pages when current store code is not equals to default - @andrzejewsky (#3579)
- Show default cms pages when current store code is not equals to default - @andrzejewsky (#3579)
- Fix login errors with mailchimp - @gibkigonzo (#3612)
- Hydration error on homepage - @patzick (#3609)
- Fix adding products with custom options - @andrzejewsky (#3597)
Expand Down Expand Up @@ -317,9 +366,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Pass to `registerModule` all parameters as one object - @gibkigonzo (#3634)
- Include shipping address data in request for shipping methods for more accurate filtering - @rain2o (#2515)
- remove 'disabled' flag in storeViews config - @gibkigonzo (#3659)

## [1.10.5] - 28.11.2019

### Fixed

- Disable product mutation when assigning product variant - @gibkigonzo (#3735)
- Fix issue with Cannot assign to read only property 'storeCode' - @yuriboyko (#3748)
- Render correct category links when multistore is active - @gibkigonzo (#3753)
Expand All @@ -333,6 +384,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [1.10.4] - 18.10.2019

### Fixed

- Added try/catch for fetching single product in cart synchronization - @gibkigonzo (#3632)
- Removed infinite loop when changing checkbox in shipping details - @gibkigonzo (#3656)
- Remove modifying config by reference in multistore - @gibkigonzo (#3617)
Expand All @@ -355,24 +407,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed evaluate detailsLink in the cookie notification - @benjick (#3689)

## Added

- Added german translations - @schwerdt-ke (3076)

## [1.10.3] - 2019.09.18

### Fixed

- Broken sidebar menu in mobile view - @przspa (#3549)
- UrlDispatcher issues with multistore routes - @pkarw (#3568)

## [1.10.2] - 2019.09.06

### Fixed

- Product image is missing on PDP - @przspa, @NavaneethVijay (#3483)
- Mounting app when routes are resolved, should completly remove recent SSR errors - patzick (#3499)
- Fixed `categoriesDynamicPrefetchLevel` that now can be equal to 0 - @pkarw (#3495)

## [1.10.1] - 2019.09.03

### Fixed

- Invalid Discount code error handled by theme - @grimasod (#3385)
- Fallback for empty value or no_selection child image - @ngongoll (#3397)
- `order.order_id` was not assigned in the `orders.directBackendSync` mode - @pkarw (#3398)
Expand Down Expand Up @@ -519,7 +575,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Refactored Travis config - @Tjitse-E (#3035)
- Renamed the `stock/check` to `stock/queueCheck` to better emphasize it's async nature; added `stock/check` which does exactly what name suggests - returning the true stock values - @pkarw (#3150)
- Cart unit tests throwing lots of type warnings - @lukeromanowicz (#3185)
- Lack of possibility to mock src modules and theme components - @lukeromanowicz (#3185)
- Lack of possibility to mock src modules and theme components - @lukeromanowicz (#3185)
- Outdated signature of Registration hooks for google-tag-manager - @vishal-7037 (#3208)
- Added serveral missing german translations and fixed german language file structure - @unherz (#3202)
- Refactored the informal way of adressing to formal in german translation files - @unherz (#3213)
Expand Down
6 changes: 3 additions & 3 deletions config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dynamicConfigInclude": [],
"elasticCacheQuota": 4096,
"ssrDisabledFor": {
"extensions": [".png", ".gif", ".jpg", ".jpeg", ".woff", ".eot", ".woff2", ".ttf", ".svg", ".css", ".js", ".json", ".ico", ".tiff", ".tif", ".raw"]
"extensions": ["png", "gif", "jpg", "jpeg", "woff", "eot", "woff2", "ttf", "svg", "css", "js", "json", "ico", "tiff", "tif", "raw"]
},
"trace": {
"enabled": false,
Expand Down Expand Up @@ -449,15 +449,15 @@
"i18n": {
"defaultCountry": "US",
"defaultLanguage": "EN",
"availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL", "ja-JP", "ru-RU", "it-IT", "pt-BR", "pl-PL", "cs-CZ"],
"availableLocale": ["en-US"],
"defaultLocale": "en-US",
"currencyCode": "USD",
"currencySign": "$",
"priceFormat": "{sign}{amount}",
"dateFormat": "HH:mm D/M/YYYY",
"fullCountryName": "United States",
"fullLanguageName": "English",
"bundleAllStoreviewLanguages": true
"bundleAllStoreviewLanguages": false
},
"expireHeaders": {
"default": "30d",
Expand Down
2 changes: 1 addition & 1 deletion core/build/webpack.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = merge(base, {
splitChunks: {
cacheGroups: {
commons: {
test: /[\\/]node_modules[\\/](vue|vuex|vue-router|vue-meta|vue-i18n|vuex-router-sync|localforage)[\\/]/,
test: /[\\/]node_modules[\\/](vue|vuex|vue-router|vue-meta|vue-i18n|vuex-router-sync|localforage|lean-he|vue-lazyload|js-sha3|dayjs|core-js|whatwg-fetch|vuelidate)[\\/]/,
name: 'vendor',
chunks: 'all'
}
Expand Down
5 changes: 4 additions & 1 deletion core/client-entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const invokeClientEntry = async () => {
if (window.__INITIAL_STATE__) {
// skip fields that were set by createApp
const initialState = coreHooksExecutors.beforeHydrated(
omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version'])
omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version', 'route'])
)
store.replaceState(Object.assign({}, store.state, initialState, { config: globalConfig }))
}
Expand Down Expand Up @@ -103,6 +103,9 @@ const invokeClientEntry = async () => {
if (!matched.length || !matched[0]) {
return next()
}

store.dispatch('url/setCurrentRoute', {to, from})

Promise.all(matched.map((c: any) => { // TODO: update me for mixins support
const components = c.mixins && globalConfig.ssr.executeMixedinAsyncData ? Array.from(c.mixins) : []
union(components, [c]).map(SubComponent => {
Expand Down
2 changes: 1 addition & 1 deletion core/helpers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const serial = async promises => {
return results
}

// helper to calcuate the hash of the shopping cart
// helper to calculate the hash of the shopping cart
export const calcItemsHmac = (items, token) => {
return sha3_224(JSON.stringify({ items, token: token }))
}
Expand Down
22 changes: 16 additions & 6 deletions core/helpers/router.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
import VueRouter, { RouteConfig } from 'vue-router'
import { RouterManager } from '@vue-storefront/core/lib/router-manager';
import { RouterManager } from '@vue-storefront/core/lib/router-manager'
import { ErrorHandler, RawLocation, Route } from 'vue-router/types/router'
import { once } from '@vue-storefront/core/helpers'

once('__VUE_EXTEND_PUSH_RR__', () => {
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push (location: RawLocation, onComplete: Function = () => {}, onAbort?: ErrorHandler): Promise<Route> {
if (onComplete || onAbort) return originalPush.call(this, location, onComplete, onAbort)
return originalPush.call(this, location).catch(err => err)
}
})

export const createRouter = (): VueRouter => {
return new VueRouter({
Expand All @@ -14,7 +24,7 @@ export const createRouter = (): VueRouter => {
if (savedPosition) {
return savedPosition
} else if (to.path !== from.path) { // do not change scroll position when navigating on the same page (ex. change filters)
return {x: 0, y: 0}
return { x: 0, y: 0 }
}
}
})
Expand All @@ -25,15 +35,15 @@ export const createRouterProxy = (router: VueRouter): VueRouter => {

return new ProxyConstructor(router, {
get (target, propKey) {
const origMethod = target[propKey];
const origMethod = target[propKey]

if (propKey === 'addRoutes') {
return function (routes: RouteConfig[], ...args): void {
return RouterManager.addRoutes(routes, ...args);
};
return RouterManager.addRoutes(routes, ...args)
}
}

return origMethod;
return origMethod
}
})
}
2 changes: 1 addition & 1 deletion core/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vue-storefront/i18n",
"version": "1.11.1",
"version": "1.11.2",
"description": "Vue Storefront i18n",
"license": "MIT",
"main": "index.ts",
Expand Down
Loading

0 comments on commit f4a37fb

Please sign in to comment.