v2.14.11 [hotfix]

This commit is contained in:
Pooya Parsa 2020-12-10 00:25:44 +01:00
commit 79c6cb5ee3
20 changed files with 63 additions and 56 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "nuxt-start", "name": "nuxt-start",
"version": "2.14.10", "version": "2.14.11",
"description": "Starts Nuxt Application in production mode", "description": "Starts Nuxt Application in production mode",
"keywords": [ "keywords": [
"nuxt", "nuxt",
@ -55,8 +55,8 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/cli": "2.14.10", "@nuxt/cli": "2.14.11",
"@nuxt/core": "2.14.10", "@nuxt/core": "2.14.11",
"@nuxt/telemetry": "^1.3.0", "@nuxt/telemetry": "^1.3.0",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"vue": "^2.6.12", "vue": "^2.6.12",

View File

@ -1,6 +1,6 @@
{ {
"name": "nuxt", "name": "nuxt",
"version": "2.14.10", "version": "2.14.11",
"description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)", "description": "A minimalistic framework for server-rendered Vue.js applications (inspired by Next.js)",
"keywords": [ "keywords": [
"nuxt", "nuxt",
@ -58,15 +58,15 @@
"postinstall": "opencollective || exit 0" "postinstall": "opencollective || exit 0"
}, },
"dependencies": { "dependencies": {
"@nuxt/builder": "2.14.10", "@nuxt/builder": "2.14.11",
"@nuxt/cli": "2.14.10", "@nuxt/cli": "2.14.11",
"@nuxt/components": "^1.2.1", "@nuxt/components": "^1.2.1",
"@nuxt/core": "2.14.10", "@nuxt/core": "2.14.11",
"@nuxt/generator": "2.14.10", "@nuxt/generator": "2.14.11",
"@nuxt/loading-screen": "^2.0.3", "@nuxt/loading-screen": "^2.0.3",
"@nuxt/opencollective": "^0.3.2", "@nuxt/opencollective": "^0.3.2",
"@nuxt/telemetry": "^1.3.0", "@nuxt/telemetry": "^1.3.0",
"@nuxt/webpack": "2.14.10" "@nuxt/webpack": "2.14.11"
}, },
"engines": { "engines": {
"node": ">=10.13.0", "node": ">=10.13.0",

View File

@ -1,5 +1,5 @@
{ {
"version": "2.14.10", "version": "2.14.11",
"npmClient": "yarn", "npmClient": "yarn",
"useWorkspaces": true, "useWorkspaces": true,
"conventionalCommits": true, "conventionalCommits": true,

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/babel-preset-app", "name": "@nuxt/babel-preset-app",
"version": "2.14.10", "version": "2.14.11",
"description": "babel-preset-app for nuxt", "description": "babel-preset-app for nuxt",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/builder", "name": "@nuxt/builder",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/builder.js", "main": "dist/builder.js",
@ -9,9 +9,9 @@
], ],
"dependencies": { "dependencies": {
"@nuxt/devalue": "^1.2.4", "@nuxt/devalue": "^1.2.4",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"@nuxt/vue-app": "2.14.10", "@nuxt/vue-app": "2.14.11",
"@nuxt/webpack": "2.14.10", "@nuxt/webpack": "2.14.11",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"chokidar": "^3.4.3", "chokidar": "^3.4.3",
"consola": "^2.15.0", "consola": "^2.15.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/cli", "name": "@nuxt/cli",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/cli.js", "main": "dist/cli.js",
@ -12,8 +12,8 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/config": "2.14.10", "@nuxt/config": "2.14.11",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"boxen": "^4.2.0", "boxen": "^4.2.0",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"compression": "^1.7.4", "compression": "^1.7.4",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/config", "name": "@nuxt/config",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/config.js", "main": "dist/config.js",
@ -10,8 +10,8 @@
"index.d.ts" "index.d.ts"
], ],
"dependencies": { "dependencies": {
"@nuxt/ufo": "^0.0.3", "@nuxt/ufo": "^0.1.0",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"consola": "^2.15.0", "consola": "^2.15.0",
"create-require": "^1.1.1", "create-require": "^1.1.1",
"defu": "^3.2.2", "defu": "^3.2.2",

View File

@ -7,7 +7,7 @@ import uniq from 'lodash/uniq'
import consola from 'consola' import consola from 'consola'
import destr from 'destr' import destr from 'destr'
import { TARGETS, MODES, guardDir, isNonEmptyString, isPureObject, isUrl, getMainModule, urlJoin, getPKG } from '@nuxt/utils' import { TARGETS, MODES, guardDir, isNonEmptyString, isPureObject, isUrl, getMainModule, urlJoin, getPKG } from '@nuxt/utils'
import { normalizeURL } from '@nuxt/ufo' import { normalizeURL, withTrailingSlash } from '@nuxt/ufo'
import { defaultNuxtConfigFile, getDefaultNuxtConfig } from './config' import { defaultNuxtConfigFile, getDefaultNuxtConfig } from './config'
export function getNuxtConfig (_options) { export function getNuxtConfig (_options) {
@ -124,10 +124,7 @@ export function getNuxtConfig (_options) {
defaultsDeep(options, modePreset || options.modes[MODES.universal]) defaultsDeep(options, modePreset || options.modes[MODES.universal])
// Sanitize router.base // Sanitize router.base
if (!/\/$/.test(options.router.base)) { options.router.base = withTrailingSlash(normalizeURL(options.router.base))
options.router.base += '/'
}
options.router.base = normalizeURL(options.router.base)
// Legacy support for export // Legacy support for export
if (options.export) { if (options.export) {

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/core", "name": "@nuxt/core",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/core.js", "main": "dist/core.js",
@ -8,11 +8,11 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/config": "2.14.10", "@nuxt/config": "2.14.11",
"@nuxt/devalue": "^1.2.4", "@nuxt/devalue": "^1.2.4",
"@nuxt/server": "2.14.10", "@nuxt/server": "2.14.11",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"@nuxt/vue-renderer": "2.14.10", "@nuxt/vue-renderer": "2.14.11",
"consola": "^2.15.0", "consola": "^2.15.0",
"debug": "^4.2.0", "debug": "^4.2.0",
"esm": "^3.2.25", "esm": "^3.2.25",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/generator", "name": "@nuxt/generator",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/generator.js", "main": "dist/generator.js",
@ -8,7 +8,7 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"consola": "^2.15.0", "consola": "^2.15.0",
"devalue": "^2.0.1", "devalue": "^2.0.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/server", "name": "@nuxt/server",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/server.js", "main": "dist/server.js",
@ -8,9 +8,9 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/config": "2.14.10", "@nuxt/config": "2.14.11",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"@nuxt/vue-renderer": "2.14.10", "@nuxt/vue-renderer": "2.14.11",
"@nuxtjs/youch": "^4.2.3", "@nuxtjs/youch": "^4.2.3",
"chalk": "^4.1.0", "chalk": "^4.1.0",
"compression": "^1.7.4", "compression": "^1.7.4",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/types", "name": "@nuxt/types",
"version": "2.14.10", "version": "2.14.11",
"description": "Nuxt types", "description": "Nuxt types",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/utils", "name": "@nuxt/utils",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/utils.js", "main": "dist/utils.js",
@ -8,7 +8,7 @@
"dist" "dist"
], ],
"dependencies": { "dependencies": {
"@nuxt/ufo": "^0.0.3", "@nuxt/ufo": "^0.1.0",
"consola": "^2.15.0", "consola": "^2.15.0",
"fs-extra": "^9.0.1", "fs-extra": "^9.0.1",
"hash-sum": "^2.0.0", "hash-sum": "^2.0.0",

View File

@ -201,7 +201,7 @@ export const createRoutes = function createRoutes ({
} else if (key === 'index' && i + 1 === keys.length) { } else if (key === 'index' && i + 1 === keys.length) {
route.path += i > 0 ? '' : '/' route.path += i > 0 ? '' : '/'
} else { } else {
route.path += normalizeURL(getRoutePathExtension(key)) route.path += '/' + normalizeURL(getRoutePathExtension(key))
if (key.startsWith('_') && key.length > 1) { if (key.startsWith('_') && key.length > 1) {
route.path += '?' route.path += '?'
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/vue-app", "name": "@nuxt/vue-app",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/vue-app.js", "main": "dist/vue-app.js",
@ -13,7 +13,7 @@
"index.d.ts" "index.d.ts"
], ],
"dependencies": { "dependencies": {
"@nuxt/ufo": "^0.0.3", "@nuxt/ufo": "^0.1.0",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"unfetch": "^4.2.0", "unfetch": "^4.2.0",
"vue": "^2.6.12", "vue": "^2.6.12",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/vue-renderer", "name": "@nuxt/vue-renderer",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/vue-renderer.js", "main": "dist/vue-renderer.js",
@ -9,7 +9,7 @@
], ],
"dependencies": { "dependencies": {
"@nuxt/devalue": "^1.2.4", "@nuxt/devalue": "^1.2.4",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"consola": "^2.15.0", "consola": "^2.15.0",
"fs-extra": "^9.0.1", "fs-extra": "^9.0.1",
"lru-cache": "^5.1.1", "lru-cache": "^5.1.1",

View File

@ -1,6 +1,6 @@
{ {
"name": "@nuxt/webpack", "name": "@nuxt/webpack",
"version": "2.14.10", "version": "2.14.11",
"repository": "nuxt/nuxt.js", "repository": "nuxt/nuxt.js",
"license": "MIT", "license": "MIT",
"main": "dist/webpack.js", "main": "dist/webpack.js",
@ -9,9 +9,9 @@
], ],
"dependencies": { "dependencies": {
"@babel/core": "^7.12.9", "@babel/core": "^7.12.9",
"@nuxt/babel-preset-app": "2.14.10", "@nuxt/babel-preset-app": "2.14.11",
"@nuxt/friendly-errors-webpack-plugin": "^2.5.0", "@nuxt/friendly-errors-webpack-plugin": "^2.5.0",
"@nuxt/utils": "2.14.10", "@nuxt/utils": "2.14.11",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"cache-loader": "^4.1.0", "cache-loader": "^4.1.0",
"caniuse-lite": "^1.0.30001165", "caniuse-lite": "^1.0.30001165",

View File

@ -63,7 +63,7 @@ export default class WebpackClientConfig extends WebpackBaseConfig {
cacheGroups.commons === undefined cacheGroups.commons === undefined
) { ) {
cacheGroups.commons = { 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|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\.js)[\\/]/,
chunks: 'all', chunks: 'all',
name: true, name: true,
priority: 10 priority: 10
@ -205,6 +205,11 @@ 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 // Add friendly error plugin
if (this.dev && !quiet && friendlyErrors) { if (this.dev && !quiet && friendlyErrors) {
config.plugins.push( config.plugins.push(

View File

@ -20,20 +20,20 @@ describe('nuxt basic resources size limit', () => {
it('should stay within the size limit range in legacy mode', async () => { it('should stay within the size limit range in legacy mode', async () => {
const legacyResourcesSize = await getResourcesSize(distDir, 'client', { gzip: true, brotli: true }) const legacyResourcesSize = await getResourcesSize(distDir, 'client', { gzip: true, brotli: true })
const LEGACY_JS_RESOURCES_KB_SIZE = 201 const LEGACY_JS_RESOURCES_KB_SIZE = 217
expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE) expect(legacyResourcesSize.uncompressed).toBeWithinSize(LEGACY_JS_RESOURCES_KB_SIZE)
const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 70 const LEGACY_JS_RESOURCES_GZIP_KB_SIZE = 70
expect(legacyResourcesSize.gzip).toBeWithinSize(LEGACY_JS_RESOURCES_GZIP_KB_SIZE) expect(legacyResourcesSize.gzip).toBeWithinSize(LEGACY_JS_RESOURCES_GZIP_KB_SIZE)
const LEGACY_JS_RESOURCES_BROTLI_KB_SIZE = 60 const LEGACY_JS_RESOURCES_BROTLI_KB_SIZE = 64
expect(legacyResourcesSize.brotli).toBeWithinSize(LEGACY_JS_RESOURCES_BROTLI_KB_SIZE) expect(legacyResourcesSize.brotli).toBeWithinSize(LEGACY_JS_RESOURCES_BROTLI_KB_SIZE)
}) })
it('should stay within the size limit range in modern mode', async () => { it('should stay within the size limit range in modern mode', async () => {
const modernResourcesSize = await getResourcesSize(distDir, 'modern', { gzip: true, brotli: true }) const modernResourcesSize = await getResourcesSize(distDir, 'modern', { gzip: true, brotli: true })
const MODERN_JS_RESOURCES_KB_SIZE = 172 const MODERN_JS_RESOURCES_KB_SIZE = 180
expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE) expect(modernResourcesSize.uncompressed).toBeWithinSize(MODERN_JS_RESOURCES_KB_SIZE)
const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 60 const MODERN_JS_RESOURCES_GZIP_KB_SIZE = 60

View File

@ -1962,10 +1962,10 @@
rc9 "^1.2.0" rc9 "^1.2.0"
std-env "^2.2.1" std-env "^2.2.1"
"@nuxt/ufo@^0.0.3": "@nuxt/ufo@^0.1.0":
version "0.0.3" version "0.1.0"
resolved "https://registry.npmjs.org/@nuxt/ufo/-/ufo-0.0.3.tgz#7673a54b81c020e7aea3a9e01e09a58c494a1eca" resolved "https://registry.npmjs.org/@nuxt/ufo/-/ufo-0.1.0.tgz#4943741c4300b73e4f1de09cad684ed4e9235502"
integrity sha512-LQkuVafVNB9+ggRF7443AX1V1rEWRs32Frk7F2qnRLf8j/SzRzxEZ99jiZqxVho72zU7NcWQ6Jy62m4fkZC6Wg== integrity sha512-7az26cl4TaNejTFlgwcGRIGPFH6tD8dLh1t+Q+BWIM8UQqqV9o2DH9yKcVlboP+LdocLBUC+OTOiZc0RSZh0bA==
"@nuxtjs/eslint-config@^5.0.0": "@nuxtjs/eslint-config@^5.0.0":
version "5.0.0" version "5.0.0"
@ -13146,6 +13146,11 @@ url-loader@^4.1.1:
mime-types "^2.1.27" mime-types "^2.1.27"
schema-utils "^3.0.0" 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: url@^0.11.0:
version "0.11.0" version "0.11.0"
resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1" resolved "https://registry.npmjs.org/url/-/url-0.11.0.tgz#3838e97cfc60521eb73c525a8e55bfdd9e2e28f1"