mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
chore: update nitropack and unjs dependencies (#19100)
Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
ce2d97cbf7
commit
15b9386a39
10
package.json
10
package.json
@ -35,7 +35,7 @@
|
|||||||
"nuxi": "workspace:*",
|
"nuxi": "workspace:*",
|
||||||
"nuxt": "workspace:*",
|
"nuxt": "workspace:*",
|
||||||
"nuxt3": "workspace:nuxt@*",
|
"nuxt3": "workspace:nuxt@*",
|
||||||
"unbuild": "^1.1.1",
|
"unbuild": "^1.1.2",
|
||||||
"vite": "^4.1.1",
|
"vite": "^4.1.1",
|
||||||
"vue": "3.2.47",
|
"vue": "3.2.47",
|
||||||
"magic-string": "^0.29.0"
|
"magic-string": "^0.29.0"
|
||||||
@ -61,18 +61,18 @@
|
|||||||
"execa": "^7.0.0",
|
"execa": "^7.0.0",
|
||||||
"expect-type": "^0.15.0",
|
"expect-type": "^0.15.0",
|
||||||
"globby": "^13.1.3",
|
"globby": "^13.1.3",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"markdownlint-cli": "^0.33.0",
|
"markdownlint-cli": "^0.33.0",
|
||||||
"nuxi": "workspace:*",
|
"nuxi": "workspace:*",
|
||||||
"nuxt": "workspace:*",
|
"nuxt": "workspace:*",
|
||||||
"ofetch": "^1.0.0",
|
"ofetch": "^1.0.1",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"rimraf": "^4.1.2",
|
"rimraf": "^4.1.2",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"std-env": "^3.3.2",
|
"std-env": "^3.3.2",
|
||||||
"typescript": "^4.9.5",
|
"typescript": "^4.9.5",
|
||||||
"ufo": "^1.0.1",
|
"ufo": "^1.1.0",
|
||||||
"unbuild": "^1.1.1",
|
"unbuild": "^1.1.2",
|
||||||
"vite": "^4.1.1",
|
"vite": "^4.1.1",
|
||||||
"vitest": "^0.28.5",
|
"vitest": "^0.28.5",
|
||||||
"vue-tsc": "^1.1.2"
|
"vue-tsc": "^1.1.2"
|
||||||
|
@ -14,18 +14,18 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/schema": "3.2.0",
|
"@nuxt/schema": "3.2.0",
|
||||||
"c12": "^1.1.0",
|
"c12": "^1.1.2",
|
||||||
"consola": "^2.15.3",
|
"consola": "^2.15.3",
|
||||||
"defu": "^6.1.2",
|
"defu": "^6.1.2",
|
||||||
"globby": "^13.1.3",
|
"globby": "^13.1.3",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"ignore": "^5.2.4",
|
"ignore": "^5.2.4",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"knitwork": "^1.0.0",
|
"knitwork": "^1.0.0",
|
||||||
"lodash.template": "^4.5.0",
|
"lodash.template": "^4.5.0",
|
||||||
"mlly": "^1.1.0",
|
"mlly": "^1.1.1",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"pkg-types": "^1.0.1",
|
"pkg-types": "^1.0.2",
|
||||||
"scule": "^1.0.0",
|
"scule": "^1.0.0",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"unctx": "^2.1.2",
|
"unctx": "^2.1.2",
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"@types/flat": "^5.0.2",
|
"@types/flat": "^5.0.2",
|
||||||
"@types/mri": "^1.1.1",
|
"@types/mri": "^1.1.1",
|
||||||
"@types/semver": "^7.3.13",
|
"@types/semver": "^7.3.13",
|
||||||
"c12": "^1.1.0",
|
"c12": "^1.1.2",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"clear": "^0.1.0",
|
"clear": "^0.1.0",
|
||||||
"clipboardy": "^3.0.0",
|
"clipboardy": "^3.0.0",
|
||||||
@ -34,15 +34,15 @@
|
|||||||
"destr": "^1.2.2",
|
"destr": "^1.2.2",
|
||||||
"execa": "^7.0.0",
|
"execa": "^7.0.0",
|
||||||
"flat": "^5.0.2",
|
"flat": "^5.0.2",
|
||||||
"giget": "^1.0.0",
|
"giget": "^1.1.0",
|
||||||
"h3": "^1.4.0",
|
"h3": "^1.5.0",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"listhen": "^1.0.2",
|
"listhen": "^1.0.3",
|
||||||
"mlly": "^1.1.0",
|
"mlly": "^1.1.1",
|
||||||
"mri": "^1.2.0",
|
"mri": "^1.2.0",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"perfect-debounce": "^0.1.3",
|
"perfect-debounce": "^0.1.3",
|
||||||
"pkg-types": "^1.0.1",
|
"pkg-types": "^1.0.2",
|
||||||
"scule": "^1.0.0",
|
"scule": "^1.0.0",
|
||||||
"semver": "^7.3.8",
|
"semver": "^7.3.8",
|
||||||
"unbuild": "latest"
|
"unbuild": "latest"
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
"@nuxt/devalue": "^2.0.0",
|
"@nuxt/devalue": "^2.0.0",
|
||||||
"@nuxt/kit": "3.2.0",
|
"@nuxt/kit": "3.2.0",
|
||||||
"@nuxt/schema": "3.2.0",
|
"@nuxt/schema": "3.2.0",
|
||||||
"@nuxt/telemetry": "^2.1.9",
|
"@nuxt/telemetry": "^2.1.10",
|
||||||
"@nuxt/ui-templates": "^1.1.1",
|
"@nuxt/ui-templates": "^1.1.1",
|
||||||
"@nuxt/vite-builder": "3.2.0",
|
"@nuxt/vite-builder": "3.2.0",
|
||||||
"@unhead/ssr": "^1.0.22",
|
"@unhead/ssr": "^1.0.22",
|
||||||
@ -59,22 +59,22 @@
|
|||||||
"estree-walker": "^3.0.3",
|
"estree-walker": "^3.0.3",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"globby": "^13.1.3",
|
"globby": "^13.1.3",
|
||||||
"h3": "^1.4.0",
|
"h3": "^1.5.0",
|
||||||
"hash-sum": "^2.0.0",
|
"hash-sum": "^2.0.0",
|
||||||
"hookable": "^5.4.2",
|
"hookable": "^5.4.2",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"knitwork": "^1.0.0",
|
"knitwork": "^1.0.0",
|
||||||
"magic-string": "^0.29.0",
|
"magic-string": "^0.29.0",
|
||||||
"mlly": "^1.1.0",
|
"mlly": "^1.1.1",
|
||||||
"nitropack": "^2.2.1",
|
"nitropack": "^2.2.2",
|
||||||
"nuxi": "3.2.0",
|
"nuxi": "3.2.0",
|
||||||
"ofetch": "^1.0.0",
|
"ofetch": "^1.0.1",
|
||||||
"ohash": "^1.0.0",
|
"ohash": "^1.0.0",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"perfect-debounce": "^0.1.3",
|
"perfect-debounce": "^0.1.3",
|
||||||
"scule": "^1.0.0",
|
"scule": "^1.0.0",
|
||||||
"strip-literal": "^1.0.1",
|
"strip-literal": "^1.0.1",
|
||||||
"ufo": "^1.0.1",
|
"ufo": "^1.1.0",
|
||||||
"unctx": "^2.1.2",
|
"unctx": "^2.1.2",
|
||||||
"unenv": "^1.2.0",
|
"unenv": "^1.2.0",
|
||||||
"unhead": "^1.0.22",
|
"unhead": "^1.0.22",
|
||||||
@ -82,7 +82,7 @@
|
|||||||
"unplugin": "^1.1.0",
|
"unplugin": "^1.1.0",
|
||||||
"untyped": "^1.2.2",
|
"untyped": "^1.2.2",
|
||||||
"vue": "^3.2.47",
|
"vue": "^3.2.47",
|
||||||
"vue-bundle-renderer": "^1.0.1",
|
"vue-bundle-renderer": "^1.0.2",
|
||||||
"vue-devtools-stub": "^0.1.0",
|
"vue-devtools-stub": "^0.1.0",
|
||||||
"vue-router": "^4.1.6"
|
"vue-router": "^4.1.6"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { pathToFileURL } from 'node:url'
|
import { pathToFileURL } from 'node:url'
|
||||||
import { createUnplugin } from 'unplugin'
|
import { createUnplugin } from 'unplugin'
|
||||||
import { parseQuery, parseURL, stringifyQuery } from 'ufo'
|
import { parseQuery, parseURL } from 'ufo'
|
||||||
import type { StaticImport } from 'mlly'
|
import type { StaticImport } from 'mlly'
|
||||||
import { findStaticImports, findExports, parseStaticImport } from 'mlly'
|
import { findStaticImports, findExports, parseStaticImport } from 'mlly'
|
||||||
import type { CallExpression, Identifier, Expression } from 'estree'
|
import type { CallExpression, Identifier, Expression } from 'estree'
|
||||||
@ -191,8 +191,7 @@ export const PageMetaPlugin = createUnplugin((options: PageMetaPluginOptions) =>
|
|||||||
// https://github.com/vuejs/vue-loader/pull/1911
|
// https://github.com/vuejs/vue-loader/pull/1911
|
||||||
// https://github.com/vitejs/vite/issues/8473
|
// https://github.com/vitejs/vite/issues/8473
|
||||||
function rewriteQuery (id: string) {
|
function rewriteQuery (id: string) {
|
||||||
const query = stringifyQuery({ macro: 'true', ...parseMacroQuery(id) })
|
return id.replace(/\?.+$/, r => '?macro=true&' + r.replace(/^\?/, '').replace(/¯o=true/, ''))
|
||||||
return id.replace(/\?.+$/, '?' + query)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseMacroQuery (id: string) {
|
function parseMacroQuery (id: string) {
|
||||||
|
@ -19,22 +19,22 @@
|
|||||||
"@unhead/schema": "^1.0.22",
|
"@unhead/schema": "^1.0.22",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
"@vitejs/plugin-vue-jsx": "^3.0.0",
|
||||||
"nitropack": "^2.2.1",
|
"nitropack": "^2.2.2",
|
||||||
"unbuild": "latest",
|
"unbuild": "latest",
|
||||||
"vite": "~4.1.1"
|
"vite": "~4.1.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"c12": "^1.1.0",
|
"c12": "^1.1.2",
|
||||||
"create-require": "^1.1.1",
|
"create-require": "^1.1.1",
|
||||||
"defu": "^6.1.2",
|
"defu": "^6.1.2",
|
||||||
"hookable": "^5.4.2",
|
"hookable": "^5.4.2",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"pkg-types": "^1.0.1",
|
"pkg-types": "^1.0.2",
|
||||||
"postcss-import-resolver": "^2.0.0",
|
"postcss-import-resolver": "^2.0.0",
|
||||||
"scule": "^1.0.0",
|
"scule": "^1.0.0",
|
||||||
"std-env": "^3.3.2",
|
"std-env": "^3.3.2",
|
||||||
"ufo": "^1.0.1",
|
"ufo": "^1.1.0",
|
||||||
"unimport": "^2.2.4",
|
"unimport": "^2.2.4",
|
||||||
"untyped": "^1.2.2"
|
"untyped": "^1.2.2"
|
||||||
},
|
},
|
||||||
|
@ -19,8 +19,8 @@
|
|||||||
"defu": "^6.1.2",
|
"defu": "^6.1.2",
|
||||||
"execa": "^7.0.0",
|
"execa": "^7.0.0",
|
||||||
"get-port-please": "^3.0.1",
|
"get-port-please": "^3.0.1",
|
||||||
"jiti": "^1.17.0",
|
"jiti": "^1.17.1",
|
||||||
"ofetch": "^1.0.0",
|
"ofetch": "^1.0.1",
|
||||||
"pathe": "^1.1.0"
|
"pathe": "^1.1.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -33,26 +33,26 @@
|
|||||||
"externality": "^1.0.0",
|
"externality": "^1.0.0",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"get-port-please": "^3.0.1",
|
"get-port-please": "^3.0.1",
|
||||||
"h3": "^1.4.0",
|
"h3": "^1.5.0",
|
||||||
"knitwork": "^1.0.0",
|
"knitwork": "^1.0.0",
|
||||||
"magic-string": "^0.29.0",
|
"magic-string": "^0.29.0",
|
||||||
"mlly": "^1.1.0",
|
"mlly": "^1.1.1",
|
||||||
"ohash": "^1.0.0",
|
"ohash": "^1.0.0",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"perfect-debounce": "^0.1.3",
|
"perfect-debounce": "^0.1.3",
|
||||||
"pkg-types": "^1.0.1",
|
"pkg-types": "^1.0.2",
|
||||||
"postcss": "^8.4.21",
|
"postcss": "^8.4.21",
|
||||||
"postcss-import": "^15.1.0",
|
"postcss-import": "^15.1.0",
|
||||||
"postcss-url": "^10.1.3",
|
"postcss-url": "^10.1.3",
|
||||||
"rollup": "^3.15.0",
|
"rollup": "^3.15.0",
|
||||||
"rollup-plugin-visualizer": "^5.9.0",
|
"rollup-plugin-visualizer": "^5.9.0",
|
||||||
"strip-literal": "^1.0.1",
|
"strip-literal": "^1.0.1",
|
||||||
"ufo": "^1.0.1",
|
"ufo": "^1.1.0",
|
||||||
"unplugin": "^1.1.0",
|
"unplugin": "^1.1.0",
|
||||||
"vite": "~4.1.1",
|
"vite": "~4.1.1",
|
||||||
"vite-node": "^0.28.5",
|
"vite-node": "^0.28.5",
|
||||||
"vite-plugin-checker": "^0.5.5",
|
"vite-plugin-checker": "^0.5.5",
|
||||||
"vue-bundle-renderer": "^1.0.1"
|
"vue-bundle-renderer": "^1.0.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.2.47"
|
"vue": "^3.2.47"
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
"magic-string": "^0.29.0",
|
"magic-string": "^0.29.0",
|
||||||
"memfs": "^3.4.13",
|
"memfs": "^3.4.13",
|
||||||
"mini-css-extract-plugin": "^2.7.2",
|
"mini-css-extract-plugin": "^2.7.2",
|
||||||
"mlly": "^1.1.0",
|
"mlly": "^1.1.1",
|
||||||
"ohash": "^1.0.0",
|
"ohash": "^1.0.0",
|
||||||
"pathe": "^1.1.0",
|
"pathe": "^1.1.0",
|
||||||
"pify": "^6.1.0",
|
"pify": "^6.1.0",
|
||||||
@ -44,10 +44,10 @@
|
|||||||
"postcss-url": "^10.1.3",
|
"postcss-url": "^10.1.3",
|
||||||
"style-resources-loader": "^1.5.0",
|
"style-resources-loader": "^1.5.0",
|
||||||
"time-fix-plugin": "^2.0.7",
|
"time-fix-plugin": "^2.0.7",
|
||||||
"ufo": "^1.0.1",
|
"ufo": "^1.1.0",
|
||||||
"unplugin": "^1.1.0",
|
"unplugin": "^1.1.0",
|
||||||
"url-loader": "^4.1.1",
|
"url-loader": "^4.1.1",
|
||||||
"vue-bundle-renderer": "^1.0.1",
|
"vue-bundle-renderer": "^1.0.2",
|
||||||
"vue-loader": "^17.0.1",
|
"vue-loader": "^17.0.1",
|
||||||
"webpack": "^5.75.0",
|
"webpack": "^5.75.0",
|
||||||
"webpack-bundle-analyzer": "^4.8.0",
|
"webpack-bundle-analyzer": "^4.8.0",
|
||||||
|
992
pnpm-lock.yaml
992
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -43,7 +43,7 @@ describe.skipIf(isWindows)('minimal nuxt application', () => {
|
|||||||
expect(stats.server.totalBytes).toBeLessThan(92000)
|
expect(stats.server.totalBytes).toBeLessThan(92000)
|
||||||
|
|
||||||
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
const modules = await analyzeSizes('node_modules/**/*', serverDir)
|
||||||
expect(modules.totalBytes).toBeLessThan(2700100)
|
expect(modules.totalBytes).toBeLessThan(2708000)
|
||||||
|
|
||||||
const packages = modules.files
|
const packages = modules.files
|
||||||
.filter(m => m.endsWith('package.json'))
|
.filter(m => m.endsWith('package.json'))
|
||||||
|
Loading…
Reference in New Issue
Block a user