mirror of
https://github.com/nuxt/nuxt.git
synced 2025-03-20 16:25:55 +00:00
chore(deps): bump nitro nightly version (#31356)
This commit is contained in:
parent
a01290b60d
commit
24e2c327b4
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -108,7 +108,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [ubuntu-latest, windows-latest]
|
||||||
module: ["bundler", "node"]
|
module: ["bundler"]
|
||||||
|
# module: ["bundler", "node"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
@ -148,7 +148,9 @@ If you only need to modify the `<head>`, you can refer to the [SEO and meta sect
|
|||||||
You can have full control over the HTML template by adding a Nitro plugin that registers a hook.
|
You can have full control over the HTML template by adding a Nitro plugin that registers a hook.
|
||||||
The callback function of the `render:html` hook allows you to mutate the HTML before it is sent to the client.
|
The callback function of the `render:html` hook allows you to mutate the HTML before it is sent to the client.
|
||||||
|
|
||||||
```ts twoslash [server/plugins/extend-html.ts]
|
<!-- TODO: figure out how to use twoslash to inject types for a different context -->
|
||||||
|
|
||||||
|
```ts [server/plugins/extend-html.ts]
|
||||||
export default defineNitroPlugin((nitroApp) => {
|
export default defineNitroPlugin((nitroApp) => {
|
||||||
nitroApp.hooks.hook('render:html', (html, { event }) => {
|
nitroApp.hooks.hook('render:html', (html, { event }) => {
|
||||||
// This will be an object representation of the html template.
|
// This will be an object representation of the html template.
|
||||||
|
@ -153,7 +153,9 @@ If you need more advanced control, you can intercept the rendered html with a ho
|
|||||||
|
|
||||||
Create a plugin in `~/server/plugins/my-plugin.ts` like this:
|
Create a plugin in `~/server/plugins/my-plugin.ts` like this:
|
||||||
|
|
||||||
```ts twoslash [server/plugins/my-plugin.ts]
|
<!-- TODO: figure out how to use twoslash to inject types for a different context -->
|
||||||
|
|
||||||
|
```ts [server/plugins/my-plugin.ts]
|
||||||
export default defineNitroPlugin((nitro) => {
|
export default defineNitroPlugin((nitro) => {
|
||||||
nitro.hooks.hook('render:html', (html) => {
|
nitro.hooks.hook('render:html', (html) => {
|
||||||
html.head.push('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">')
|
html.head.push('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">')
|
||||||
|
@ -56,10 +56,10 @@
|
|||||||
"@vue/compiler-dom": "3.5.13",
|
"@vue/compiler-dom": "3.5.13",
|
||||||
"@vue/shared": "3.5.13",
|
"@vue/shared": "3.5.13",
|
||||||
"c12": "3.0.2",
|
"c12": "3.0.2",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "1.15.1",
|
||||||
"jiti": "2.4.2",
|
"jiti": "2.4.2",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
"nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",
|
"nitro": "npm:nitro-nightly@3.0.0-20250315-135852.f038b042",
|
||||||
"nuxt": "workspace:*",
|
"nuxt": "workspace:*",
|
||||||
"postcss": "8.5.3",
|
"postcss": "8.5.3",
|
||||||
"rollup": "4.35.0",
|
"rollup": "4.35.0",
|
||||||
@ -105,7 +105,7 @@
|
|||||||
"eslint-plugin-perfectionist": "4.10.1",
|
"eslint-plugin-perfectionist": "4.10.1",
|
||||||
"eslint-typegen": "2.1.0",
|
"eslint-typegen": "2.1.0",
|
||||||
"estree-walker": "3.0.3",
|
"estree-walker": "3.0.3",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "1.15.1",
|
||||||
"happy-dom": "17.4.4",
|
"happy-dom": "17.4.4",
|
||||||
"installed-check": "9.3.0",
|
"installed-check": "9.3.0",
|
||||||
"jiti": "2.4.2",
|
"jiti": "2.4.2",
|
||||||
@ -113,7 +113,7 @@
|
|||||||
"magic-string": "0.30.17",
|
"magic-string": "0.30.17",
|
||||||
"markdownlint-cli": "0.44.0",
|
"markdownlint-cli": "0.44.0",
|
||||||
"memfs": "4.17.0",
|
"memfs": "4.17.0",
|
||||||
"nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",
|
"nitro": "npm:nitro-nightly@3.0.0-20250315-135852.f038b042",
|
||||||
"nuxt": "workspace:*",
|
"nuxt": "workspace:*",
|
||||||
"nuxt-content-twoslash": "0.1.2",
|
"nuxt-content-twoslash": "0.1.2",
|
||||||
"ofetch": "1.4.1",
|
"ofetch": "1.4.1",
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
"@nuxt/schema": "workspace:*",
|
"@nuxt/schema": "workspace:*",
|
||||||
"@rspack/core": "1.2.8",
|
"@rspack/core": "1.2.8",
|
||||||
"@types/semver": "7.5.8",
|
"@types/semver": "7.5.8",
|
||||||
"nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",
|
"nitro": "npm:nitro-nightly@3.0.0-20250315-135852.f038b042",
|
||||||
"unbuild": "3.5.0",
|
"unbuild": "3.5.0",
|
||||||
"vite": "6.2.2",
|
"vite": "6.2.2",
|
||||||
"vitest": "3.0.8",
|
"vitest": "3.0.8",
|
||||||
|
@ -92,7 +92,7 @@
|
|||||||
"estree-walker": "^3.0.3",
|
"estree-walker": "^3.0.3",
|
||||||
"exsolve": "^1.0.4",
|
"exsolve": "^1.0.4",
|
||||||
"globby": "^14.1.0",
|
"globby": "^14.1.0",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "^1.15.1",
|
||||||
"hookable": "^5.5.3",
|
"hookable": "^5.5.3",
|
||||||
"ignore": "^7.0.3",
|
"ignore": "^7.0.3",
|
||||||
"impound": "^0.2.2",
|
"impound": "^0.2.2",
|
||||||
@ -103,7 +103,7 @@
|
|||||||
"mlly": "^1.7.4",
|
"mlly": "^1.7.4",
|
||||||
"mocked-exports": "^0.1.1",
|
"mocked-exports": "^0.1.1",
|
||||||
"nanotar": "^0.2.0",
|
"nanotar": "^0.2.0",
|
||||||
"nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",
|
"nitro": "npm:nitro-nightly@3.0.0-20250315-135852.f038b042",
|
||||||
"nypm": "^0.6.0",
|
"nypm": "^0.6.0",
|
||||||
"ofetch": "^1.4.1",
|
"ofetch": "^1.4.1",
|
||||||
"ohash": "^2.0.11",
|
"ohash": "^2.0.11",
|
||||||
@ -156,6 +156,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||||
"globby": "^14.1.0",
|
"globby": "^14.1.0",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "^1.15.1",
|
||||||
"jiti": "^2.4.2",
|
"jiti": "^2.4.2",
|
||||||
"knitwork": "^1.2.0",
|
"knitwork": "^1.2.0",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
|
@ -52,11 +52,11 @@
|
|||||||
"esbuild": "0.25.1",
|
"esbuild": "0.25.1",
|
||||||
"esbuild-loader": "4.3.0",
|
"esbuild-loader": "4.3.0",
|
||||||
"file-loader": "6.2.0",
|
"file-loader": "6.2.0",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "1.15.1",
|
||||||
"hookable": "5.5.3",
|
"hookable": "5.5.3",
|
||||||
"ignore": "7.0.3",
|
"ignore": "7.0.3",
|
||||||
"mini-css-extract-plugin": "2.9.2",
|
"mini-css-extract-plugin": "2.9.2",
|
||||||
"nitro": "npm:nitro-nightly@3.0.0-beta-28969273.f7aa9de6",
|
"nitro": "npm:nitro-nightly@3.0.0-20250315-135852.f038b042",
|
||||||
"ofetch": "1.4.1",
|
"ofetch": "1.4.1",
|
||||||
"pkg-types": "2.1.0",
|
"pkg-types": "2.1.0",
|
||||||
"postcss": "8.5.3",
|
"postcss": "8.5.3",
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
"escape-string-regexp": "^5.0.0",
|
"escape-string-regexp": "^5.0.0",
|
||||||
"exsolve": "^1.0.4",
|
"exsolve": "^1.0.4",
|
||||||
"get-port-please": "^3.1.2",
|
"get-port-please": "^3.1.2",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "^1.15.1",
|
||||||
"jiti": "^2.4.2",
|
"jiti": "^2.4.2",
|
||||||
"knitwork": "^1.2.0",
|
"knitwork": "^1.2.0",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
||||||
"globby": "^14.1.0",
|
"globby": "^14.1.0",
|
||||||
"h3": "npm:h3-nightly@1.15.1-20250222-111608-d1c00fc",
|
"h3": "^1.15.1",
|
||||||
"jiti": "^2.4.2",
|
"jiti": "^2.4.2",
|
||||||
"knitwork": "^1.2.0",
|
"knitwork": "^1.2.0",
|
||||||
"magic-string": "^0.30.17",
|
"magic-string": "^0.30.17",
|
||||||
|
@ -10,6 +10,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
981
pnpm-lock.yaml
981
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -58,10 +58,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
const serverDir = join(rootDir, '.output/server')
|
const serverDir = join(rootDir, '.output/server')
|
||||||
|
|
||||||
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
||||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"204k"`)
|
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"190k"`)
|
||||||
|
|
||||||
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
||||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1397k"`)
|
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1384k"`)
|
||||||
|
|
||||||
const packages = modules.files
|
const packages = modules.files
|
||||||
.filter(m => m.endsWith('package.json'))
|
.filter(m => m.endsWith('package.json'))
|
||||||
@ -78,12 +78,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
"@vue/runtime-dom",
|
"@vue/runtime-dom",
|
||||||
"@vue/server-renderer",
|
"@vue/server-renderer",
|
||||||
"@vue/shared",
|
"@vue/shared",
|
||||||
"db0",
|
|
||||||
"devalue",
|
"devalue",
|
||||||
"entities",
|
"entities",
|
||||||
"estree-walker",
|
"estree-walker",
|
||||||
"hookable",
|
"hookable",
|
||||||
"node-mock-http",
|
|
||||||
"source-map-js",
|
"source-map-js",
|
||||||
"ufo",
|
"ufo",
|
||||||
"unhead",
|
"unhead",
|
||||||
@ -97,10 +95,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
const serverDir = join(rootDir, '.output-inline/server')
|
const serverDir = join(rootDir, '.output-inline/server')
|
||||||
|
|
||||||
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
||||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"554k"`)
|
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"540k"`)
|
||||||
|
|
||||||
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
||||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"91.5k"`)
|
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"78.3k"`)
|
||||||
|
|
||||||
const packages = modules.files
|
const packages = modules.files
|
||||||
.filter(m => m.endsWith('package.json'))
|
.filter(m => m.endsWith('package.json'))
|
||||||
@ -108,10 +106,8 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
.sort()
|
.sort()
|
||||||
expect(packages).toMatchInlineSnapshot(`
|
expect(packages).toMatchInlineSnapshot(`
|
||||||
[
|
[
|
||||||
"db0",
|
|
||||||
"devalue",
|
"devalue",
|
||||||
"hookable",
|
"hookable",
|
||||||
"node-mock-http",
|
|
||||||
"unhead",
|
"unhead",
|
||||||
]
|
]
|
||||||
`)
|
`)
|
||||||
@ -121,10 +117,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
const serverDir = join(pagesRootDir, '.output/server')
|
const serverDir = join(pagesRootDir, '.output/server')
|
||||||
|
|
||||||
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
const serverStats = await analyzeSizes(['**/*.mjs', '!node_modules'], serverDir)
|
||||||
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"298k"`)
|
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"281k"`)
|
||||||
|
|
||||||
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
|
||||||
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1408k"`)
|
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1395k"`)
|
||||||
|
|
||||||
const packages = modules.files
|
const packages = modules.files
|
||||||
.filter(m => m.endsWith('package.json'))
|
.filter(m => m.endsWith('package.json'))
|
||||||
@ -141,12 +137,10 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
|
|||||||
"@vue/runtime-dom",
|
"@vue/runtime-dom",
|
||||||
"@vue/server-renderer",
|
"@vue/server-renderer",
|
||||||
"@vue/shared",
|
"@vue/shared",
|
||||||
"db0",
|
|
||||||
"devalue",
|
"devalue",
|
||||||
"entities",
|
"entities",
|
||||||
"estree-walker",
|
"estree-walker",
|
||||||
"hookable",
|
"hookable",
|
||||||
"node-mock-http",
|
|
||||||
"source-map-js",
|
"source-map-js",
|
||||||
"ufo",
|
"ufo",
|
||||||
"unhead",
|
"unhead",
|
||||||
|
2
test/fixtures/basic-types/nuxt.config.ts
vendored
2
test/fixtures/basic-types/nuxt.config.ts
vendored
@ -83,7 +83,7 @@ export default defineNuxtConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
future: {
|
future: {
|
||||||
typescriptBundlerResolution: process.env.MODULE_RESOLUTION === 'bundler',
|
typescriptBundlerResolution: process.env.MODULE_RESOLUTION !== 'node',
|
||||||
},
|
},
|
||||||
experimental: {
|
experimental: {
|
||||||
typedPages: true,
|
typedPages: true,
|
||||||
|
2
test/fixtures/basic-types/package.json
vendored
2
test/fixtures/basic-types/package.json
vendored
@ -16,6 +16,6 @@
|
|||||||
"vue-router": "latest"
|
"vue-router": "latest"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/basic/package.json
vendored
2
test/fixtures/basic/package.json
vendored
@ -17,6 +17,6 @@
|
|||||||
"vue": "latest"
|
"vue": "latest"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/hmr/package.json
vendored
2
test/fixtures/hmr/package.json
vendored
@ -8,6 +8,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/minimal-pages/package.json
vendored
2
test/fixtures/minimal-pages/package.json
vendored
@ -8,6 +8,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/minimal-types/package.json
vendored
2
test/fixtures/minimal-types/package.json
vendored
@ -9,6 +9,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/minimal/package.json
vendored
2
test/fixtures/minimal/package.json
vendored
@ -8,6 +8,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/runtime-compiler/package.json
vendored
2
test/fixtures/runtime-compiler/package.json
vendored
@ -8,6 +8,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/spa-loader/package.json
vendored
2
test/fixtures/spa-loader/package.json
vendored
@ -10,6 +10,6 @@
|
|||||||
"nuxt": "workspace:*"
|
"nuxt": "workspace:*"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
test/fixtures/suspense/package.json
vendored
2
test/fixtures/suspense/package.json
vendored
@ -11,6 +11,6 @@
|
|||||||
"typescript": "latest"
|
"typescript": "latest"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0"
|
"node": "^20.11.1 || >=22.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user