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

Commit f4a37fb

Browse files
authored
Merge pull request #4129 from DivanteLtd/hotfix/v1.11.2
Hotfix/v1.11.2
2 parents 16f13df + b99458b commit f4a37fb

File tree

109 files changed

+6868
-4279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+6868
-4279
lines changed

CHANGELOG.md

Lines changed: 66 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,65 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.11.2] - 2020.03.10
9+
10+
### Added
11+
12+
- Add `isBackRoute` that informs if user returns to route, skip loading products for category if he does - @gibkigonzo (#4066)
13+
- Add server context to async data loader - @gibkigonzo (#4113)
14+
- Add preload and preconnect for google font - @gibkigonzo (#4121)
15+
16+
### Changed / Improved
17+
18+
- optimizations - improved prefetch strategy - @gibkigonzo (#4080)
19+
- improvements to Finnish translations - @evktalo (#4116)
20+
- Radio button now allows separate checked, value and name attributes - @EndPositive (#4098)
21+
- Update backwards compatible dependencies - @simonmaass (#4126)
22+
23+
### Fixed
24+
25+
- add disconnect and sync options for cart/clear - @gibkigonzo (#4062)
26+
- add '1' as searched value for 'is_user_defined' and 'is_visible' (createAttributesListQuery) - @gibkigonzo (#4075)
27+
- Fix possibility to add same SKU with different custom options to the cart - @Michal-Dziedzinski (#3595)
28+
- Fix `calculateProductTax` to find matching tax rules from ES for current product - @DylannCordel (#4056)
29+
- Set `totals` in products in cart always in reactive way - @psmyrek (#4079)
30+
- Fix sync cart between tabs - @Michal-Dziedzinski (#3838)
31+
- Add currentRoute to url module and return cached requests - @gibkigonzo (#4077, #4066)
32+
- Hide original radio button behind built label - @EndPositive (#4098)
33+
- Disable overriding `route` state in **INITIAL_STATE** - @gibkigonzo (#4095)
34+
- Fix gtm order placement event when user was guest - @Michal-Dziedzinski (#4064)
35+
- Fix gtm event switched properties - @Michal-Dziedzinski (#4106)
36+
- Group 'productChecksum' and 'productsEquals' logic for all supported products types. Remove 'checksum' when editing product.
37+
Remove and add coupon when user login Remove 'NA' as default company. Show qty in microcart for all types of product.
38+
Remove preload font - it gives good performance, but vue-meta refresh page, because there is script onload. - @gibkigonzo (#4128)
39+
- Keep old category before route is resolved - @gibkigonzo (#4124)
40+
- 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)
41+
- Fix incorrect root categories when extending includeFields - @Michal-Dziedzinski (#4090)
42+
- Add onlyPositive prop to BaseInputNumber to not allow user type negative value - @Michal-Dziedzinski (#4136)
43+
- Await for cart/authorize while login user - @gibkigonzo (#4133)
44+
- Fixed `NOT_ALLOWED_SSR_EXTENSIONS_REGEX` to only match with file extensions having a dot - @haelbichalex (#4100)
45+
- Add lazy load for vue-carousel - @gibkigonzo (#4157)
46+
847
## [1.11.1] - 2020.02.05
948

1049
### Added
50+
1151
- Add `ProductPrice` component with bundleOptions and customOptions prices - @gibkigonzo (#3978)
1252
- Add lazy create cart token - @gibkigonzo (#3994)
1353

1454
### Changed / Improved
55+
1556
- Set cache tag when loading a category - @haelbichalex (#3940)
16-
- In development build `webpack.config.js` in theme folder is now called without the `default` key
57+
- In development build `webpack.config.js` in theme folder is now called without the `default` key - @psmyrek
1758

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

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

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

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

94139
### Added
140+
95141
- Add defense for incomplete config in preferchCachedAttributes helper
96142
- Add unit test for \`core/modules/cms\` - @krskibin (#3738)
97143

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

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

133181
### Changed / Improved
182+
134183
- Use `encodeURIComponent` to encode get parameters in `multimatch.js` - @adityasharma7 (#3736)
135184

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

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

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

357409
## Added
410+
358411
- Added german translations - @schwerdt-ke (3076)
359412

360413
## [1.10.3] - 2019.09.18
361414

362415
### Fixed
416+
363417
- Broken sidebar menu in mobile view - @przspa (#3549)
364418
- UrlDispatcher issues with multistore routes - @pkarw (#3568)
365419

366420
## [1.10.2] - 2019.09.06
367421

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

373428
## [1.10.1] - 2019.09.03
374429

375430
### Fixed
431+
376432
- Invalid Discount code error handled by theme - @grimasod (#3385)
377433
- Fallback for empty value or no_selection child image - @ngongoll (#3397)
378434
- `order.order_id` was not assigned in the `orders.directBackendSync` mode - @pkarw (#3398)
@@ -519,7 +575,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
519575
- Refactored Travis config - @Tjitse-E (#3035)
520576
- 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)
521577
- Cart unit tests throwing lots of type warnings - @lukeromanowicz (#3185)
522-
- Lack of possibility to mock src modules and theme components - @lukeromanowicz (#3185)
578+
- Lack of possibility to mock src modules and theme components - @lukeromanowicz (#3185)
523579
- Outdated signature of Registration hooks for google-tag-manager - @vishal-7037 (#3208)
524580
- Added serveral missing german translations and fixed german language file structure - @unherz (#3202)
525581
- Refactored the informal way of adressing to formal in german translation files - @unherz (#3213)

config/default.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"dynamicConfigInclude": [],
2424
"elasticCacheQuota": 4096,
2525
"ssrDisabledFor": {
26-
"extensions": [".png", ".gif", ".jpg", ".jpeg", ".woff", ".eot", ".woff2", ".ttf", ".svg", ".css", ".js", ".json", ".ico", ".tiff", ".tif", ".raw"]
26+
"extensions": ["png", "gif", "jpg", "jpeg", "woff", "eot", "woff2", "ttf", "svg", "css", "js", "json", "ico", "tiff", "tif", "raw"]
2727
},
2828
"trace": {
2929
"enabled": false,
@@ -449,15 +449,15 @@
449449
"i18n": {
450450
"defaultCountry": "US",
451451
"defaultLanguage": "EN",
452-
"availableLocale": ["en-US","de-DE","fr-FR","es-ES","nl-NL", "ja-JP", "ru-RU", "it-IT", "pt-BR", "pl-PL", "cs-CZ"],
452+
"availableLocale": ["en-US"],
453453
"defaultLocale": "en-US",
454454
"currencyCode": "USD",
455455
"currencySign": "$",
456456
"priceFormat": "{sign}{amount}",
457457
"dateFormat": "HH:mm D/M/YYYY",
458458
"fullCountryName": "United States",
459459
"fullLanguageName": "English",
460-
"bundleAllStoreviewLanguages": true
460+
"bundleAllStoreviewLanguages": false
461461
},
462462
"expireHeaders": {
463463
"default": "30d",

core/build/webpack.client.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const config = merge(base, {
99
splitChunks: {
1010
cacheGroups: {
1111
commons: {
12-
test: /[\\/]node_modules[\\/](vue|vuex|vue-router|vue-meta|vue-i18n|vuex-router-sync|localforage)[\\/]/,
12+
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)[\\/]/,
1313
name: 'vendor',
1414
chunks: 'all'
1515
}

core/client-entry.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const invokeClientEntry = async () => {
2525
if (window.__INITIAL_STATE__) {
2626
// skip fields that were set by createApp
2727
const initialState = coreHooksExecutors.beforeHydrated(
28-
omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version'])
28+
omit(window.__INITIAL_STATE__, ['storeView', 'config', 'version', 'route'])
2929
)
3030
store.replaceState(Object.assign({}, store.state, initialState, { config: globalConfig }))
3131
}
@@ -103,6 +103,9 @@ const invokeClientEntry = async () => {
103103
if (!matched.length || !matched[0]) {
104104
return next()
105105
}
106+
107+
store.dispatch('url/setCurrentRoute', {to, from})
108+
106109
Promise.all(matched.map((c: any) => { // TODO: update me for mixins support
107110
const components = c.mixins && globalConfig.ssr.executeMixedinAsyncData ? Array.from(c.mixins) : []
108111
union(components, [c]).map(SubComponent => {

core/helpers/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ export const serial = async promises => {
218218
return results
219219
}
220220

221-
// helper to calcuate the hash of the shopping cart
221+
// helper to calculate the hash of the shopping cart
222222
export const calcItemsHmac = (items, token) => {
223223
return sha3_224(JSON.stringify({ items, token: token }))
224224
}

core/helpers/router.ts

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
import VueRouter, { RouteConfig } from 'vue-router'
2-
import { RouterManager } from '@vue-storefront/core/lib/router-manager';
2+
import { RouterManager } from '@vue-storefront/core/lib/router-manager'
3+
import { ErrorHandler, RawLocation, Route } from 'vue-router/types/router'
4+
import { once } from '@vue-storefront/core/helpers'
5+
6+
once('__VUE_EXTEND_PUSH_RR__', () => {
7+
const originalPush = VueRouter.prototype.push
8+
VueRouter.prototype.push = function push (location: RawLocation, onComplete: Function = () => {}, onAbort?: ErrorHandler): Promise<Route> {
9+
if (onComplete || onAbort) return originalPush.call(this, location, onComplete, onAbort)
10+
return originalPush.call(this, location).catch(err => err)
11+
}
12+
})
313

414
export const createRouter = (): VueRouter => {
515
return new VueRouter({
@@ -14,7 +24,7 @@ export const createRouter = (): VueRouter => {
1424
if (savedPosition) {
1525
return savedPosition
1626
} else if (to.path !== from.path) { // do not change scroll position when navigating on the same page (ex. change filters)
17-
return {x: 0, y: 0}
27+
return { x: 0, y: 0 }
1828
}
1929
}
2030
})
@@ -25,15 +35,15 @@ export const createRouterProxy = (router: VueRouter): VueRouter => {
2535

2636
return new ProxyConstructor(router, {
2737
get (target, propKey) {
28-
const origMethod = target[propKey];
38+
const origMethod = target[propKey]
2939

3040
if (propKey === 'addRoutes') {
3141
return function (routes: RouteConfig[], ...args): void {
32-
return RouterManager.addRoutes(routes, ...args);
33-
};
42+
return RouterManager.addRoutes(routes, ...args)
43+
}
3444
}
3545

36-
return origMethod;
46+
return origMethod
3747
}
3848
})
3949
}

core/i18n/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@vue-storefront/i18n",
3-
"version": "1.11.1",
3+
"version": "1.11.2",
44
"description": "Vue Storefront i18n",
55
"license": "MIT",
66
"main": "index.ts",

0 commit comments

Comments
 (0)