mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 00:23:53 +00:00
chore(deps): update all non-major dependencies (main) (#21851)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
This commit is contained in:
parent
a9904a3ff7
commit
d15df420a3
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -86,7 +86,7 @@ jobs:
|
||||
run: pnpm install
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
|
||||
uses: github/codeql-action/init@004c5de30b6423267685b897a3d595e944f7fed5 # v2.20.2
|
||||
with:
|
||||
languages: javascript
|
||||
queries: +security-and-quality
|
||||
@ -98,7 +98,7 @@ jobs:
|
||||
path: packages
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
|
||||
uses: github/codeql-action/analyze@004c5de30b6423267685b897a3d595e944f7fed5 # v2.20.2
|
||||
with:
|
||||
category: "/language:javascript"
|
||||
|
||||
|
2
.github/workflows/scorecards.yml
vendored
2
.github/workflows/scorecards.yml
vendored
@ -66,6 +66,6 @@ jobs:
|
||||
|
||||
# Upload the results to GitHub's code scanning dashboard.
|
||||
- name: "Upload to code-scanning"
|
||||
uses: github/codeql-action/upload-sarif@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
|
||||
uses: github/codeql-action/upload-sarif@004c5de30b6423267685b897a3d595e944f7fed5 # v2.20.2
|
||||
with:
|
||||
sarif_file: results.sarif
|
||||
|
10
package.json
10
package.json
@ -44,21 +44,21 @@
|
||||
"@nuxt/test-utils": "workspace:*",
|
||||
"@nuxt/webpack-builder": "workspace:*",
|
||||
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
||||
"@types/node": "18.16.18",
|
||||
"@types/node": "18.16.19",
|
||||
"@types/semver": "7.5.0",
|
||||
"case-police": "0.6.1",
|
||||
"chalk": "5.2.0",
|
||||
"chalk": "5.3.0",
|
||||
"changelogen": "0.5.3",
|
||||
"cheerio": "1.0.0-rc.12",
|
||||
"consola": "3.2.2",
|
||||
"devalue": "4.3.2",
|
||||
"eslint": "8.43.0",
|
||||
"eslint": "8.44.0",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"eslint-plugin-jsdoc": "41.1.2",
|
||||
"eslint-plugin-no-only-tests": "3.1.0",
|
||||
"execa": "7.1.1",
|
||||
"fs-extra": "11.1.1",
|
||||
"globby": "13.2.0",
|
||||
"globby": "13.2.1",
|
||||
"h3": "1.7.1",
|
||||
"jiti": "1.18.2",
|
||||
"markdownlint-cli": "^0.33.0",
|
||||
@ -74,7 +74,7 @@
|
||||
"typescript": "5.0.4",
|
||||
"ufo": "1.1.2",
|
||||
"vite": "4.3.9",
|
||||
"vitest": "0.32.2",
|
||||
"vitest": "0.32.4",
|
||||
"vitest-environment-nuxt": "0.8.7",
|
||||
"vue": "3.3.4",
|
||||
"vue-eslint-parser": "9.3.1",
|
||||
|
@ -24,7 +24,7 @@
|
||||
"c12": "^1.4.2",
|
||||
"consola": "^3.2.2",
|
||||
"defu": "^6.1.2",
|
||||
"globby": "^13.2.0",
|
||||
"globby": "^13.2.1",
|
||||
"hash-sum": "^2.0.0",
|
||||
"ignore": "^5.2.4",
|
||||
"jiti": "^1.18.2",
|
||||
@ -46,8 +46,8 @@
|
||||
"nitropack": "2.5.2",
|
||||
"unbuild": "latest",
|
||||
"vite": "4.3.9",
|
||||
"vitest": "0.32.2",
|
||||
"webpack": "5.88.0"
|
||||
"vitest": "0.32.4",
|
||||
"webpack": "5.88.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^14.18.0 || >=16.10.0"
|
||||
|
@ -58,8 +58,8 @@
|
||||
"@nuxt/telemetry": "^2.2.0",
|
||||
"@nuxt/ui-templates": "^1.2.0",
|
||||
"@nuxt/vite-builder": "workspace:../vite",
|
||||
"@unhead/ssr": "^1.1.28",
|
||||
"@unhead/vue": "^1.1.28",
|
||||
"@unhead/ssr": "^1.1.29",
|
||||
"@unhead/vue": "^1.1.29",
|
||||
"@vue/shared": "^3.3.4",
|
||||
"acorn": "8.9.0",
|
||||
"c12": "^1.4.2",
|
||||
@ -68,11 +68,11 @@
|
||||
"defu": "^6.1.2",
|
||||
"destr": "^2.0.0",
|
||||
"devalue": "^4.3.2",
|
||||
"esbuild": "^0.18.10",
|
||||
"esbuild": "^0.18.11",
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"estree-walker": "^3.0.3",
|
||||
"fs-extra": "^11.1.1",
|
||||
"globby": "^13.2.0",
|
||||
"globby": "^13.2.1",
|
||||
"h3": "^1.7.1",
|
||||
"hookable": "^5.5.3",
|
||||
"jiti": "^1.18.2",
|
||||
@ -97,7 +97,7 @@
|
||||
"unctx": "^2.3.1",
|
||||
"unenv": "^1.5.1",
|
||||
"unimport": "^3.0.11",
|
||||
"unplugin": "^1.3.1",
|
||||
"unplugin": "^1.3.2",
|
||||
"unplugin-vue-router": "^0.6.4",
|
||||
"untyped": "^1.3.2",
|
||||
"vue": "^3.3.4",
|
||||
@ -106,14 +106,14 @@
|
||||
"vue-router": "^4.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@parcel/watcher": "2.1.0",
|
||||
"@parcel/watcher": "2.2.0",
|
||||
"@types/estree": "1.0.1",
|
||||
"@types/fs-extra": "11.0.1",
|
||||
"@types/prompts": "2.4.4",
|
||||
"@vitejs/plugin-vue": "4.2.3",
|
||||
"unbuild": "latest",
|
||||
"vite": "4.3.9",
|
||||
"vitest": "0.32.2"
|
||||
"vitest": "0.32.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@parcel/watcher": "^2.1.0",
|
||||
|
@ -30,7 +30,7 @@
|
||||
"@types/file-loader": "5.0.1",
|
||||
"@types/pug": "2.0.6",
|
||||
"@types/sass-loader": "8.0.5",
|
||||
"@unhead/schema": "1.1.28",
|
||||
"@unhead/schema": "1.1.29",
|
||||
"@vitejs/plugin-vue": "4.2.3",
|
||||
"@vitejs/plugin-vue-jsx": "3.0.1",
|
||||
"@vue/compiler-core": "3.3.4",
|
||||
@ -45,7 +45,7 @@
|
||||
"vue-bundle-renderer": "1.0.3",
|
||||
"vue-loader": "17.2.2",
|
||||
"vue-router": "4.2.2",
|
||||
"webpack": "5.88.0",
|
||||
"webpack": "5.88.1",
|
||||
"webpack-dev-middleware": "6.1.1"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -36,7 +36,7 @@
|
||||
"@jest/globals": "29.5.0",
|
||||
"playwright": "1.35.1",
|
||||
"unbuild": "latest",
|
||||
"vitest": "0.32.2"
|
||||
"vitest": "0.32.4"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@jest/globals": "^29.5.0",
|
||||
|
@ -34,7 +34,7 @@
|
||||
"consola": "^3.2.2",
|
||||
"cssnano": "^6.0.1",
|
||||
"defu": "^6.1.2",
|
||||
"esbuild": "^0.18.10",
|
||||
"esbuild": "^0.18.11",
|
||||
"escape-string-regexp": "^5.0.0",
|
||||
"estree-walker": "^3.0.3",
|
||||
"externality": "^1.0.2",
|
||||
@ -55,9 +55,9 @@
|
||||
"std-env": "^3.3.3",
|
||||
"strip-literal": "^1.0.1",
|
||||
"ufo": "^1.1.2",
|
||||
"unplugin": "^1.3.1",
|
||||
"unplugin": "^1.3.2",
|
||||
"vite": "~4.3.9",
|
||||
"vite-node": "^0.32.2",
|
||||
"vite-node": "^0.32.4",
|
||||
"vite-plugin-checker": "^0.6.1",
|
||||
"vue-bundle-renderer": "^1.0.3"
|
||||
},
|
||||
|
@ -49,11 +49,11 @@
|
||||
"std-env": "^3.3.3",
|
||||
"time-fix-plugin": "^2.0.7",
|
||||
"ufo": "^1.1.2",
|
||||
"unplugin": "^1.3.1",
|
||||
"unplugin": "^1.3.2",
|
||||
"url-loader": "^4.1.1",
|
||||
"vue-bundle-renderer": "^1.0.3",
|
||||
"vue-loader": "^17.2.2",
|
||||
"webpack": "^5.88.0",
|
||||
"webpack": "^5.88.1",
|
||||
"webpack-bundle-analyzer": "^4.9.0",
|
||||
"webpack-dev-middleware": "^6.1.1",
|
||||
"webpack-hot-middleware": "^2.25.4",
|
||||
|
@ -143,7 +143,9 @@ async function compile (compiler: Compiler) {
|
||||
compiler.hooks.failed.tap('nuxt-errorlog', (err) => { reject(err) })
|
||||
// Start watch
|
||||
createDevMiddleware(compiler).then((devMiddleware) => {
|
||||
compilersWatching.push(devMiddleware.context.watching)
|
||||
if (devMiddleware.context.watching) {
|
||||
compilersWatching.push(devMiddleware.context.watching)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
1165
pnpm-lock.yaml
1165
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
9
test/fixtures/basic-types/types.ts
vendored
9
test/fixtures/basic-types/types.ts
vendored
@ -1,7 +1,7 @@
|
||||
import { describe, expectTypeOf, it } from 'vitest'
|
||||
import type { Ref } from 'vue'
|
||||
import type { FetchError } from 'ofetch'
|
||||
import type { NavigationFailure, RouteLocationNormalizedLoaded, RouteLocationRaw, Router, useRouter as vueUseRouter } from '#vue-router'
|
||||
import type { NavigationFailure, RouteLocationNormalized, RouteLocationRaw, Router, useRouter as vueUseRouter } from '#vue-router'
|
||||
|
||||
import type { AppConfig, RuntimeValue } from 'nuxt/schema'
|
||||
import { defineNuxtConfig } from 'nuxt/config'
|
||||
@ -105,8 +105,8 @@ describe('middleware', () => {
|
||||
})
|
||||
it('handles adding middleware', () => {
|
||||
addRouteMiddleware('example', (to, from) => {
|
||||
expectTypeOf(to).toEqualTypeOf<RouteLocationNormalizedLoaded>()
|
||||
expectTypeOf(from).toEqualTypeOf<RouteLocationNormalizedLoaded>()
|
||||
expectTypeOf(to).toEqualTypeOf<RouteLocationNormalized>()
|
||||
expectTypeOf(from).toEqualTypeOf<RouteLocationNormalized>()
|
||||
expectTypeOf(navigateTo).toEqualTypeOf<(to: RouteLocationRaw | null | undefined, options?: NavigateToOptions) => RouteLocationRaw | void | false | Promise<void | NavigationFailure | false>>()
|
||||
navigateTo('/')
|
||||
abortNavigation()
|
||||
@ -333,7 +333,8 @@ describe('composables', () => {
|
||||
.toEqualTypeOf(useLazyAsyncData(() => Promise.resolve({ foo: Math.random() }), { transform: data => data.foo }))
|
||||
|
||||
// Default values: #14437
|
||||
expectTypeOf(useAsyncData('test', () => Promise.resolve({ foo: { bar: 500 } }), { default: () => ({ bar: 500 }), transform: v => v.foo }).data).toEqualTypeOf<Ref<{ bar: number }>>()
|
||||
// TODO: what?!
|
||||
expectTypeOf(useAsyncData('test', () => Promise.resolve({ foo: { bar: 500 } }), { default: () => ({ bar: 500 }), transform: v => v.foo }).data).toEqualTypeOf<Ref<{ bar: number } | { bar: number }>>()
|
||||
expectTypeOf(useLazyAsyncData('test', () => Promise.resolve({ foo: { bar: 500 } }), { default: () => ({ bar: 500 }), transform: v => v.foo }))
|
||||
.toEqualTypeOf(useLazyAsyncData(() => Promise.resolve({ foo: { bar: 500 } }), { default: () => ({ bar: 500 }), transform: v => v.foo }))
|
||||
expectTypeOf(useFetch('/api/hey', { default: () => 1, transform: v => v.foo }).data).toEqualTypeOf<Ref<string | number>>()
|
||||
|
Loading…
Reference in New Issue
Block a user