From 93089543be658ece3dc6b820fe033952de94de14 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Tue, 5 Feb 2019 14:00:57 +0330 Subject: [PATCH] feat: upgrade vue to 2.6 (#4953) --- distributions/nuxt-start/package.json | 2 +- packages/vue-app/package.json | 4 ++-- packages/vue-renderer/package.json | 4 ++-- test/unit/async-config.size-limit.test.js | 2 +- test/unit/components.test.js | 14 ++++++------- yarn.lock | 24 +++++++++++------------ 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/distributions/nuxt-start/package.json b/distributions/nuxt-start/package.json index 258617ae8f..c55b186434 100644 --- a/distributions/nuxt-start/package.json +++ b/distributions/nuxt-start/package.json @@ -54,7 +54,7 @@ "dependencies": { "@nuxt/cli": "2.4.2", "@nuxt/core": "2.4.2", - "vue": "^2.5.22", + "vue": "^2.6.2", "vue-meta": "^1.5.8", "vue-no-ssr": "^1.1.1", "vue-router": "^3.0.2", diff --git a/packages/vue-app/package.json b/packages/vue-app/package.json index 18b16f77cd..5e59f4b285 100644 --- a/packages/vue-app/package.json +++ b/packages/vue-app/package.json @@ -12,11 +12,11 @@ "main": "dist/vue-app.js", "typings": "types/index.d.ts", "dependencies": { - "vue": "^2.5.22", + "vue": "^2.6.2", "vue-meta": "^1.5.8", "vue-no-ssr": "^1.1.1", "vue-router": "^3.0.2", - "vue-template-compiler": "^2.5.22", + "vue-template-compiler": "^2.6.2", "vuex": "^3.1.0" }, "publishConfig": { diff --git a/packages/vue-renderer/package.json b/packages/vue-renderer/package.json index d1c64ca7b0..3e1692fd5b 100644 --- a/packages/vue-renderer/package.json +++ b/packages/vue-renderer/package.json @@ -13,9 +13,9 @@ "consola": "^2.3.2", "fs-extra": "^7.0.1", "lru-cache": "^5.1.1", - "vue": "^2.5.22", + "vue": "^2.6.2", "vue-meta": "^1.5.8", - "vue-server-renderer": "^2.5.22" + "vue-server-renderer": "^2.6.2" }, "publishConfig": { "access": "public" diff --git a/test/unit/async-config.size-limit.test.js b/test/unit/async-config.size-limit.test.js index 2ff88a739c..b9152ea0e6 100644 --- a/test/unit/async-config.size-limit.test.js +++ b/test/unit/async-config.size-limit.test.js @@ -34,6 +34,6 @@ describe('size-limit test', () => { const responseSizeBytes = responseSizes.reduce((bytes, responseLength) => bytes + responseLength, 0) const responseSizeKilobytes = Math.ceil(responseSizeBytes / 1024) // Without gzip! - expect(responseSizeKilobytes).toBeLessThanOrEqual(180) + expect(responseSizeKilobytes).toBeLessThanOrEqual(185) }) }) diff --git a/test/unit/components.test.js b/test/unit/components.test.js index db9e3fa898..0b85efe4ca 100644 --- a/test/unit/components.test.js +++ b/test/unit/components.test.js @@ -33,7 +33,7 @@ describe('components', () => { component.throttle = 0 component.start() const str = await renderToString(component) - expect(str).toBe('
') + expect(str).toBe('
') component.clear() }) @@ -46,7 +46,7 @@ describe('components', () => { await waitFor(250) const str = await renderToString(component) expect(str).not.toBe('') - expect(str).not.toBe('
') + expect(str).not.toBe('
') expect(component.$data.percent).not.toBe(0) component.clear() }) @@ -58,7 +58,7 @@ describe('components', () => { component.start() component.finish() let str = await renderToString(component) - expect(str).toBe('
') + expect(str).toBe('
') expect(component.$data.percent).toBe(100) jest.runAllTimers() str = await renderToString(component) @@ -73,7 +73,7 @@ describe('components', () => { component.set(50) component.fail() const str = await renderToString(component) - expect(str).toBe('
') + expect(str).toBe('
') }) test('not shown until throttle', async () => { @@ -87,7 +87,7 @@ describe('components', () => { await waitFor(1000) str = await renderToString(component) expect(str).not.toBe('') - expect(str).not.toBe('
') + expect(str).not.toBe('
') component.clear() }) @@ -120,9 +120,9 @@ describe('components', () => { await waitFor(850) const str = await renderToString(component) expect(str).not.toBe('') - expect(str).not.toBe('
') + expect(str).not.toBe('
') expect(str).not.toBe('
') - expect(str).not.toBe('
') + expect(str).not.toBe('
') expect(str).not.toBe('
') component.clear() }) diff --git a/yarn.lock b/yarn.lock index 857b3ef722..41171d90b8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11345,10 +11345,10 @@ vue-router@^3.0.2: resolved "https://registry.npmjs.org/vue-router/-/vue-router-3.0.2.tgz#dedc67afe6c4e2bc25682c8b1c2a8c0d7c7e56be" integrity sha512-opKtsxjp9eOcFWdp6xLQPLmRGgfM932Tl56U9chYTnoWqKxQ8M20N7AkdEbM5beUh6wICoFGYugAX9vQjyJLFg== -vue-server-renderer@^2.5.22: - version "2.5.22" - resolved "https://registry.npmjs.org/vue-server-renderer/-/vue-server-renderer-2.5.22.tgz#f119efef289c865adc22fda0ae7595299bedbdcf" - integrity sha512-PQ0PubA6b2MyZud/gepWeiUuDFSbRfa6h1qYINcbwXRr4Z3yLTHprEQuFnWikdkTkZpeLFYUqZrDxPbDcJ71mA== +vue-server-renderer@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/vue-server-renderer/-/vue-server-renderer-2.6.2.tgz#89faa6d87e94f9333276a4ee9cd39bece97059db" + integrity sha512-UAAKbYhcT9WRP7L4aRR/c6e/GXBj5lwR9H8AQ+b/lbwVwMauHyYNdhQzFmLFZfujNAjZK6+mQQVtdMoa2J8Y5g== dependencies: chalk "^1.1.3" hash-sum "^1.0.2" @@ -11367,10 +11367,10 @@ vue-style-loader@^4.1.0: hash-sum "^1.0.2" loader-utils "^1.0.2" -vue-template-compiler@^2.5.22: - version "2.5.22" - resolved "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.5.22.tgz#c3d3c02c65f1908205c4fbd3b0ef579e51239955" - integrity sha512-1VTw/NPTUeHNiwhkq6NkFzO7gYLjFCueBN0FX8NEiQIemd5EUMQ5hxrF7O0zCPo5tae+U9S/scETPea+hIz8Eg== +vue-template-compiler@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.2.tgz#6230abf7ca92d565b7471c0cc3f54d5b12aa48e7" + integrity sha512-2dBKNCtBPdx1TFef7T4zwF8IjOx2xbMNryCtFzneP+XIonJwOtnkq4s1mhKv8W79gXcGINQWtuaxituGAcuSnA== dependencies: de-indent "^1.0.2" he "^1.1.0" @@ -11380,10 +11380,10 @@ vue-template-es2015-compiler@^1.6.0: resolved "https://registry.npmjs.org/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.8.2.tgz#dd73e80ba58bb65dd7a8aa2aeef6089cf6116f2a" integrity sha512-cliV19VHLJqFUYbz/XeWXe5CO6guzwd0yrrqqp0bmjlMP3ZZULY7fu8RTC4+3lmHwo6ESVDHFDsvjB15hcR5IA== -vue@^2.5.22: - version "2.5.22" - resolved "https://registry.npmjs.org/vue/-/vue-2.5.22.tgz#3bf88041af08b8539c37b268b70ca79245e9cc30" - integrity sha512-pxY3ZHlXNJMFQbkjEgGVMaMMkSV1ONpz+4qB55kZuJzyJOhn6MSy/YZdzhdnumegNzVTL/Dn3Pp4UrVBYt1j/g== +vue@^2.6.2: + version "2.6.2" + resolved "https://registry.npmjs.org/vue/-/vue-2.6.2.tgz#1cc9c9c8f7ba8df45e9b97c284947de78b76301c" + integrity sha512-NZAb0H+t3/99g2nygURcEJ+ncvzNLPiEiFI5MGhc1Cjsw5uYprF+Ol7SOd1RXPcmVVzK7jUBl0th2tNgt+VQDg== vuex@^3.1.0: version "3.1.0"