Merge branch 'main' into docs/kit

This commit is contained in:
Andrey Yolkin 2023-08-17 00:40:49 +03:00 committed by GitHub
commit bb69c0ef30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 234 additions and 233 deletions

View File

@ -61,7 +61,7 @@
"fs-extra": "11.1.1",
"globby": "13.2.2",
"h3": "1.8.0",
"happy-dom": "10.9.0",
"happy-dom": "10.10.0",
"jiti": "1.19.1",
"markdownlint-cli": "^0.33.0",
"nitropack": "2.5.2",

View File

@ -58,9 +58,9 @@
"@nuxt/telemetry": "^2.4.1",
"@nuxt/ui-templates": "^1.3.1",
"@nuxt/vite-builder": "workspace:../vite",
"@unhead/dom": "^1.3.3",
"@unhead/ssr": "^1.3.3",
"@unhead/vue": "^1.3.3",
"@unhead/dom": "^1.3.4",
"@unhead/ssr": "^1.3.4",
"@unhead/vue": "^1.3.4",
"@vue/shared": "^3.3.4",
"acorn": "8.10.0",
"c12": "^1.4.2",
@ -83,7 +83,7 @@
"mlly": "^1.4.0",
"nitropack": "^2.5.2",
"nuxi": "workspace:../nuxi",
"nypm": "^0.2.2",
"nypm": "^0.3.0",
"ofetch": "^1.1.1",
"ohash": "^1.1.3",
"pathe": "^1.1.1",

View File

@ -122,7 +122,7 @@ export function definePayloadReducer (
*/
export function definePayloadReviver (
name: string,
revive: (data: string) => any | undefined
revive: (data: any) => any | undefined
) {
if (import.meta.dev && getCurrentInstance()) {
console.warn('[nuxt] [definePayloadReviver] This function must be called in a Nuxt plugin that is `unshift`ed to the beginning of the Nuxt plugins array.')

View File

@ -30,7 +30,7 @@
"@types/file-loader": "5.0.1",
"@types/pug": "2.0.6",
"@types/sass-loader": "8.0.5",
"@unhead/schema": "1.3.3",
"@unhead/schema": "1.3.4",
"@vitejs/plugin-vue": "4.2.3",
"@vitejs/plugin-vue-jsx": "3.0.1",
"@vue/compiler-core": "3.3.4",

View File

@ -49,7 +49,7 @@
"pathe": "^1.1.1",
"perfect-debounce": "^1.0.0",
"pkg-types": "^1.0.3",
"postcss": "^8.4.27",
"postcss": "^8.4.28",
"postcss-import": "^15.1.0",
"postcss-url": "^10.1.3",
"rollup-plugin-visualizer": "^5.9.2",

View File

@ -42,7 +42,7 @@
"ohash": "^1.1.3",
"pathe": "^1.1.1",
"pify": "^6.1.0",
"postcss": "^8.4.27",
"postcss": "^8.4.28",
"postcss-import": "^15.1.0",
"postcss-loader": "^7.3.3",
"postcss-url": "^10.1.3",

File diff suppressed because it is too large Load Diff

View File

@ -19,7 +19,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
for (const outputDir of ['.output', '.output-inline']) {
it('default client bundle size', async () => {
const clientStats = await analyzeSizes('**/*.js', join(rootDir, outputDir, 'public'))
expect.soft(roundToKilobytes(clientStats.totalBytes)).toMatchInlineSnapshot('"95.0k"')
expect.soft(roundToKilobytes(clientStats.totalBytes)).toMatchInlineSnapshot('"95.7k"')
expect(clientStats.files.map(f => f.replace(/\..*\.js/, '.js'))).toMatchInlineSnapshot(`
[
"_nuxt/entry.js",
@ -35,7 +35,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot('"64.6k"')
const modules = await analyzeSizes('node_modules/**/*', serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2351k"')
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot('"2352k"')
const packages = modules.files
.filter(m => m.endsWith('package.json'))