diff --git a/distributions/nuxt-start/package.json b/distributions/nuxt-start/package.json index e24da53a69..178d00551a 100644 --- a/distributions/nuxt-start/package.json +++ b/distributions/nuxt-start/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-start", - "version": "2.14.11", + "version": "2.14.12", "description": "Starts Nuxt Application in production mode", "keywords": [ "nuxt", @@ -55,8 +55,8 @@ "dist" ], "dependencies": { - "@nuxt/cli": "2.14.11", - "@nuxt/core": "2.14.11", + "@nuxt/cli": "2.14.12", + "@nuxt/core": "2.14.12", "@nuxt/telemetry": "^1.3.0", "node-fetch": "^2.6.1", "vue": "^2.6.12", diff --git a/distributions/nuxt/package.json b/distributions/nuxt/package.json index 316dd1f7bc..a82b1d0acf 100644 --- a/distributions/nuxt/package.json +++ b/distributions/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "nuxt", - "version": "2.14.11", + "version": "2.14.12", "description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)", "keywords": [ "nuxt", @@ -58,15 +58,15 @@ "postinstall": "opencollective || exit 0" }, "dependencies": { - "@nuxt/builder": "2.14.11", - "@nuxt/cli": "2.14.11", + "@nuxt/builder": "2.14.12", + "@nuxt/cli": "2.14.12", "@nuxt/components": "^1.2.2", - "@nuxt/core": "2.14.11", - "@nuxt/generator": "2.14.11", + "@nuxt/core": "2.14.12", + "@nuxt/generator": "2.14.12", "@nuxt/loading-screen": "^2.0.3", "@nuxt/opencollective": "^0.3.2", "@nuxt/telemetry": "^1.3.0", - "@nuxt/webpack": "2.14.11" + "@nuxt/webpack": "2.14.12" }, "engines": { "node": ">=10.13.0", diff --git a/lerna.json b/lerna.json index d10fdc676c..36199d7c1f 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "2.14.11", + "version": "2.14.12", "npmClient": "yarn", "useWorkspaces": true, "conventionalCommits": true, diff --git a/packages/babel-preset-app/package.json b/packages/babel-preset-app/package.json index 74885c4021..3cc3a015a9 100644 --- a/packages/babel-preset-app/package.json +++ b/packages/babel-preset-app/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/babel-preset-app", - "version": "2.14.11", + "version": "2.14.12", "description": "babel-preset-app for nuxt", "repository": "nuxt/nuxt.js", "license": "MIT", diff --git a/packages/builder/package.json b/packages/builder/package.json index 853fa98df1..7328f0d0af 100644 --- a/packages/builder/package.json +++ b/packages/builder/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/builder", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/builder.js", @@ -9,9 +9,9 @@ ], "dependencies": { "@nuxt/devalue": "^1.2.4", - "@nuxt/utils": "2.14.11", - "@nuxt/vue-app": "2.14.11", - "@nuxt/webpack": "2.14.11", + "@nuxt/utils": "2.14.12", + "@nuxt/vue-app": "2.14.12", + "@nuxt/webpack": "2.14.12", "chalk": "^4.1.0", "chokidar": "^3.4.3", "consola": "^2.15.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index e0b029f255..421ff02bd2 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/cli", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/cli.js", @@ -12,8 +12,8 @@ "dist" ], "dependencies": { - "@nuxt/config": "2.14.11", - "@nuxt/utils": "2.14.11", + "@nuxt/config": "2.14.12", + "@nuxt/utils": "2.14.12", "boxen": "^4.2.0", "chalk": "^4.1.0", "compression": "^1.7.4", diff --git a/packages/config/package.json b/packages/config/package.json index a9b229aed0..6af076bb27 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/config", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/config.js", @@ -10,8 +10,8 @@ "index.d.ts" ], "dependencies": { - "@nuxt/ufo": "^0.1.0", - "@nuxt/utils": "2.14.11", + "@nuxt/ufo": "^0.5.0", + "@nuxt/utils": "2.14.12", "consola": "^2.15.0", "create-require": "^1.1.1", "defu": "^3.2.2", diff --git a/packages/core/package.json b/packages/core/package.json index a602e3c4a6..ca395b5573 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/core", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/core.js", @@ -8,11 +8,11 @@ "dist" ], "dependencies": { - "@nuxt/config": "2.14.11", + "@nuxt/config": "2.14.12", "@nuxt/devalue": "^1.2.4", - "@nuxt/server": "2.14.11", - "@nuxt/utils": "2.14.11", - "@nuxt/vue-renderer": "2.14.11", + "@nuxt/server": "2.14.12", + "@nuxt/utils": "2.14.12", + "@nuxt/vue-renderer": "2.14.12", "consola": "^2.15.0", "debug": "^4.2.0", "esm": "^3.2.25", diff --git a/packages/generator/package.json b/packages/generator/package.json index 0c2f4175f2..e87eb26d6f 100644 --- a/packages/generator/package.json +++ b/packages/generator/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/generator", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/generator.js", @@ -8,7 +8,7 @@ "dist" ], "dependencies": { - "@nuxt/utils": "2.14.11", + "@nuxt/utils": "2.14.12", "chalk": "^4.1.0", "consola": "^2.15.0", "devalue": "^2.0.1", diff --git a/packages/server/package.json b/packages/server/package.json index a6fb9774ac..a8c59ad242 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/server", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/server.js", @@ -8,9 +8,9 @@ "dist" ], "dependencies": { - "@nuxt/config": "2.14.11", - "@nuxt/utils": "2.14.11", - "@nuxt/vue-renderer": "2.14.11", + "@nuxt/config": "2.14.12", + "@nuxt/utils": "2.14.12", + "@nuxt/vue-renderer": "2.14.12", "@nuxtjs/youch": "^4.2.3", "chalk": "^4.1.0", "compression": "^1.7.4", diff --git a/packages/types/package.json b/packages/types/package.json index aa5c678a5a..552cb6a254 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/types", - "version": "2.14.11", + "version": "2.14.12", "description": "Nuxt types", "repository": "nuxt/nuxt.js", "license": "MIT", diff --git a/packages/utils/package.json b/packages/utils/package.json index 363e426d96..f607995afb 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/utils", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/utils.js", @@ -8,7 +8,7 @@ "dist" ], "dependencies": { - "@nuxt/ufo": "^0.1.0", + "@nuxt/ufo": "^0.5.0", "consola": "^2.15.0", "fs-extra": "^9.0.1", "hash-sum": "^2.0.0", diff --git a/packages/vue-app/package.json b/packages/vue-app/package.json index 282744427a..d4c16462be 100644 --- a/packages/vue-app/package.json +++ b/packages/vue-app/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/vue-app", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/vue-app.js", @@ -13,7 +13,7 @@ "index.d.ts" ], "dependencies": { - "@nuxt/ufo": "^0.1.0", + "@nuxt/ufo": "^0.5.0", "node-fetch": "^2.6.1", "unfetch": "^4.2.0", "vue": "^2.6.12", diff --git a/packages/vue-app/template/router.js b/packages/vue-app/template/router.js index 260f0e2f3c..e338ffd8b4 100644 --- a/packages/vue-app/template/router.js +++ b/packages/vue-app/template/router.js @@ -1,6 +1,6 @@ import Vue from 'vue' import Router from 'vue-router' -import { normalizeURL } from '@nuxt/ufo' +import { normalizeURL, decode } from '@nuxt/ufo' import { interopDefault } from './utils'<%= isTest ? '// eslint-disable-line no-unused-vars' : '' %> import scrollBehavior from './router.scrollBehavior.js' @@ -109,7 +109,7 @@ export const routerOptions = { function decodeObj(obj) { for (const key in obj) { if (typeof obj[key] === 'string') { - obj[key] = decodeURIComponent(obj[key]) + obj[key] = decode(obj[key]) } } } diff --git a/packages/vue-renderer/package.json b/packages/vue-renderer/package.json index 01b3c3eb87..77a4ded51f 100644 --- a/packages/vue-renderer/package.json +++ b/packages/vue-renderer/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/vue-renderer", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/vue-renderer.js", @@ -9,7 +9,8 @@ ], "dependencies": { "@nuxt/devalue": "^1.2.4", - "@nuxt/utils": "2.14.11", + "@nuxt/ufo": "^0.5.0", + "@nuxt/utils": "2.14.12", "consola": "^2.15.0", "fs-extra": "^9.0.1", "lru-cache": "^5.1.1", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index a93df03f50..5940c17da4 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -1,6 +1,6 @@ { "name": "@nuxt/webpack", - "version": "2.14.11", + "version": "2.14.12", "repository": "nuxt/nuxt.js", "license": "MIT", "main": "dist/webpack.js", @@ -9,9 +9,9 @@ ], "dependencies": { "@babel/core": "^7.12.10", - "@nuxt/babel-preset-app": "2.14.11", + "@nuxt/babel-preset-app": "2.14.12", "@nuxt/friendly-errors-webpack-plugin": "^2.5.0", - "@nuxt/utils": "2.14.11", + "@nuxt/utils": "2.14.12", "babel-loader": "^8.2.2", "cache-loader": "^4.1.0", "caniuse-lite": "^1.0.30001165", diff --git a/packages/webpack/src/config/client.js b/packages/webpack/src/config/client.js index 7916fdd60b..26e3256e0d 100644 --- a/packages/webpack/src/config/client.js +++ b/packages/webpack/src/config/client.js @@ -63,7 +63,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig { cacheGroups.commons === undefined ) { cacheGroups.commons = { - test: /node_modules[\\/](vue|vue-loader|vue-router|vuex|vue-meta|core-js|@babel\/runtime|axios|webpack|setimmediate|timers-browserify|process|regenerator-runtime|cookie|js-cookie|is-buffer|dotprop|url-polyfill|nuxt\.js)[\\/]/, + test: /node_modules[\\/](vue|vue-loader|vue-router|vuex|vue-meta|core-js|@babel\/runtime|axios|webpack|setimmediate|timers-browserify|process|regenerator-runtime|cookie|js-cookie|is-buffer|dotprop|url-polyfill|@nuxt[\\/]ufo|ufo|nuxt\.js)[\\/]/, chunks: 'all', name: true, priority: 10 @@ -205,11 +205,6 @@ export default class WebpackClientConfig extends WebpackBaseConfig { ) } - // Add URL polyfill for IE11 support with ufo - if (!this.isModern && !this.isServer) { - config.entry.app.unshift(require.resolve('url-polyfill/url-polyfill.min.js')) - } - // Add friendly error plugin if (this.dev && !quiet && friendlyErrors) { config.plugins.push( diff --git a/test/dev/async-config.size-limit.test.js b/test/dev/async-config.size-limit.test.js index cf7adb36be..a76bf05557 100644 --- a/test/dev/async-config.size-limit.test.js +++ b/test/dev/async-config.size-limit.test.js @@ -23,7 +23,7 @@ describe('nuxt basic resources size limit', () => { const LEGACY_JS_RESOURCES_KB_SIZE = 217 expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE) - const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 70 + const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 75 expect(legacyResourcesSize.gzip).toBeWithinSize(LEGACY_JS_RESOURCES_GZIP_KB_SIZE) const LEGACY_JS_RESOURCES_BROTLI_KB_SIZE = 64 @@ -36,7 +36,7 @@ describe('nuxt basic resources size limit', () => { const MODERN_JS_RESOURCES_KB_SIZE = 180 expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE) - const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 60 + const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 64 expect(modernResourcesSize.gzip).toBeWithinSize(MODERN_JS_RESOURCES_GZIP_KB_SIZE) const MODERN_JS_RESOURCES_BROTLI_KB_SIZE = 55 diff --git a/yarn.lock b/yarn.lock index e3d9585e5d..1410a62d4f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2020,10 +2020,10 @@ rc9 "^1.2.0" std-env "^2.2.1" -"@nuxt/ufo@^0.1.0": - version "0.1.0" - resolved "https://registry.npmjs.org/@nuxt/ufo/-/ufo-0.1.0.tgz#4943741c4300b73e4f1de09cad684ed4e9235502" - integrity sha512-7az26cl4TaNejTFlgwcGRIGPFH6tD8dLh1t+Q+BWIM8UQqqV9o2DH9yKcVlboP+LdocLBUC+OTOiZc0RSZh0bA== +"@nuxt/ufo@^0.5.0": + version "0.5.0" + resolved "https://registry.npmjs.org/@nuxt/ufo/-/ufo-0.5.0.tgz#a84d5ce9dedee25b81fbbb4b44fef5ca2987af39" + integrity sha512-0My2z3nfJ8KTyz49/kyRBh0naoArsItDgfQP7qf38BfY8HAoiujFIANZyjpnq433UOU0wZqv0djHkydQX56FmQ== "@nuxtjs/eslint-config@^5.0.0": version "5.0.0" @@ -13108,11 +13108,6 @@ url-loader@^4.1.1: mime-types "^2.1.27" schema-utils "^3.0.0" -url-polyfill@^1.1.12: - version "1.1.12" - resolved "https://registry.npmjs.org/url-polyfill/-/url-polyfill-1.1.12.tgz#6cdaa17f6b022841b3aec0bf8dbd87ac0cd33331" - integrity sha512-mYFmBHCapZjtcNHW0MDq9967t+z4Dmg5CJ0KqysK3+ZbyoNOWQHksGCTWwDhxGXllkWlOc10Xfko6v4a3ucM6A== - url@^0.11.0: version "0.11.0" resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"