Merge branch 'main' into patch-21

This commit is contained in:
Michael Brevard 2024-09-15 07:44:08 +03:00 committed by GitHub
commit 6c741f7cad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 238 additions and 238 deletions

View File

@ -75,7 +75,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Initialize CodeQL
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
uses: github/codeql-action/init@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
config: |
paths:
@ -91,7 +91,7 @@ jobs:
queries: +security-and-quality
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
uses: github/codeql-action/analyze@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
with:
category: "/language:javascript-typescript"

View File

@ -68,7 +68,7 @@ jobs:
# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
uses: github/codeql-action/upload-sarif@8214744c546c1e5c8f03dde8fab3a7353211988d # v3.26.7
if: github.repository == 'nuxt/nuxt' && success()
with:
sarif_file: results.sarif

View File

@ -136,7 +136,7 @@ export default defineNuxtConfig({
The different properties you can use are the following:
- `redirect: string`{lang=ts} - Define server-side redirects.
- `ssr: boolean`{lang=ts} - Disables server-side rendering for sections of your app and make them SPA-only with `ssr: false`
- `ssr: boolean`{lang=ts} - Disables server-side rendering of the HTML for sections of your app and make them render only in the browser with `ssr: false`
- `cors: boolean`{lang=ts} - Automatically adds cors headers with `cors: true` - you can customize the output by overriding with `headers`
- `headers: object`{lang=ts} - Add specific headers to sections of your site - for example, your assets
- `swr: number | boolean`{lang=ts} - Add cache headers to the server response and cache it on the server or reverse proxy for a configurable TTL (time to live). The `node-server` preset of Nitro is able to cache the full response. When the TTL expired, the cached response will be sent while the page will be regenerated in the background. If true is used, a `stale-while-revalidate` header is added without a MaxAge.

View File

@ -147,7 +147,7 @@ If you have not fetched data on the server (for example, with `server: false`),
```ts [Signature]
function useFetch<DataT, ErrorT>(
url: string | Request | Ref<string | Request> | () => string | Request,
url: string | Request | Ref<string | Request> | (() => string) | Request,
options?: UseFetchOptions<DataT>
): Promise<AsyncData<DataT, ErrorT>>

View File

@ -53,7 +53,7 @@
"ufo": "1.5.4",
"unbuild": "3.0.0-rc.7",
"vite": "5.4.5",
"vue": "3.5.4"
"vue": "3.5.5"
},
"devDependencies": {
"@eslint/js": "9.10.0",
@ -79,7 +79,7 @@
"devalue": "5.0.0",
"eslint": "9.10.0",
"eslint-plugin-no-only-tests": "3.3.0",
"eslint-plugin-perfectionist": "3.5.0",
"eslint-plugin-perfectionist": "3.6.0",
"eslint-typegen": "0.3.2",
"h3": "npm:h3-nightly@2.0.0-1718872656.6765a6e",
"happy-dom": "15.7.4",
@ -91,7 +91,7 @@
"nuxt-content-twoslash": "0.1.1",
"ofetch": "1.3.4",
"pathe": "1.1.2",
"playwright-core": "1.47.0",
"playwright-core": "1.47.1",
"rimraf": "6.0.1",
"semver": "7.6.3",
"sherif": "1.0.0",
@ -102,7 +102,7 @@
"ufo": "1.5.4",
"vitest": "2.1.1",
"vitest-environment-nuxt": "1.0.1",
"vue": "3.5.4",
"vue": "3.5.5",
"vue-router": "4.4.5",
"vue-tsc": "2.1.6"
},

View File

@ -69,7 +69,7 @@
"@unhead/shared": "^1.11.2",
"@unhead/ssr": "^1.11.2",
"@unhead/vue": "^1.11.2",
"@vue/shared": "^3.5.4",
"@vue/shared": "^3.5.5",
"acorn": "8.12.1",
"c12": "^2.0.0-beta.2",
"chokidar": "^3.6.0",
@ -119,7 +119,7 @@
"unplugin-vue-router": "^0.10.8",
"unstorage": "^1.12.0",
"untyped": "^1.4.2",
"vue": "^3.5.4",
"vue": "^3.5.5",
"vue-bundle-renderer": "^2.1.0",
"vue-devtools-stub": "^0.1.0",
"vue-router": "^4.4.5"
@ -130,7 +130,7 @@
"@parcel/watcher": "2.4.1",
"@types/estree": "1.0.5",
"@vitejs/plugin-vue": "5.1.3",
"@vue/compiler-sfc": "3.5.4",
"@vue/compiler-sfc": "3.5.5",
"unbuild": "3.0.0-rc.7",
"vite": "5.4.5",
"vitest": "2.1.1"

View File

@ -42,8 +42,8 @@
"@unhead/schema": "1.11.2",
"@vitejs/plugin-vue": "5.1.3",
"@vitejs/plugin-vue-jsx": "4.0.1",
"@vue/compiler-core": "3.5.4",
"@vue/compiler-sfc": "3.5.4",
"@vue/compiler-core": "3.5.5",
"@vue/compiler-sfc": "3.5.5",
"@vue/language-core": "2.1.6",
"c12": "2.0.0-beta.2",
"esbuild-loader": "4.2.2",
@ -55,7 +55,7 @@
"unctx": "2.3.1",
"unenv": "1.10.0",
"vite": "5.4.5",
"vue": "3.5.4",
"vue": "3.5.5",
"vue-bundle-renderer": "2.1.0",
"vue-loader": "17.4.2",
"vue-router": "4.4.5",

View File

@ -29,7 +29,7 @@
"@types/estree": "1.0.5",
"rollup": "4.21.3",
"unbuild": "3.0.0-rc.7",
"vue": "3.5.4"
"vue": "3.5.5"
},
"dependencies": {
"@nuxt/kit": "workspace:*",

View File

@ -80,7 +80,7 @@
"@types/webpack-hot-middleware": "2.25.9",
"rollup": "4.21.3",
"unbuild": "3.0.0-rc.7",
"vue": "3.5.4"
"vue": "3.5.5"
},
"peerDependencies": {
"vue": "^3.3.4"

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,7 @@ describe.skipIf(process.env.SKIP_BUNDLE_SIZE === 'true' || process.env.ECOSYSTEM
expect.soft(roundToKilobytes(serverStats.totalBytes)).toMatchInlineSnapshot(`"206k"`)
const modules = await analyzeSizes(['node_modules/**/*'], serverDir)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1385k"`)
expect.soft(roundToKilobytes(modules.totalBytes)).toMatchInlineSnapshot(`"1386k"`)
const packages = modules.files
.filter(m => m.endsWith('package.json'))