chore(deps): update all non-major dependencies (#9549)

* update tests for islands head regression

Co-authored-by: Pooya Parsa <pooya@pi0.io>
This commit is contained in:
renovate[bot] 2022-12-08 16:16:22 +01:00 committed by GitHub
parent 1202b1ac97
commit 7f5f952911
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 422 additions and 210 deletions

View File

@ -35,7 +35,7 @@
"nuxi": "workspace:*", "nuxi": "workspace:*",
"nuxt": "workspace:*", "nuxt": "workspace:*",
"nuxt3": "workspace:nuxt@*", "nuxt3": "workspace:nuxt@*",
"unbuild": "^1.0.0", "unbuild": "^1.0.2",
"vite": "^3.2.5", "vite": "^3.2.5",
"vue": "3.2.45" "vue": "3.2.45"
}, },
@ -69,14 +69,14 @@
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"semver": "^7.3.8", "semver": "^7.3.8",
"std-env": "^3.3.1", "std-env": "^3.3.1",
"typescript": "^4.9.3", "typescript": "^4.9.4",
"ufo": "^1.0.1", "ufo": "^1.0.1",
"unbuild": "^1.0.0", "unbuild": "^1.0.2",
"vite": "^3.2.5", "vite": "^3.2.5",
"vitest": "^0.25.4", "vitest": "^0.25.5",
"vue-tsc": "^1.0.11" "vue-tsc": "^1.0.11"
}, },
"packageManager": "pnpm@7.18.0", "packageManager": "pnpm@7.18.1",
"engines": { "engines": {
"node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0" "node": "^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
} }

View File

@ -14,7 +14,7 @@
}, },
"dependencies": { "dependencies": {
"@nuxt/schema": "3.0.0", "@nuxt/schema": "3.0.0",
"c12": "^1.0.1", "c12": "^1.1.0",
"consola": "^2.15.3", "consola": "^2.15.3",
"defu": "^6.1.1", "defu": "^6.1.1",
"globby": "^13.1.2", "globby": "^13.1.2",

View File

@ -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", "@types/semver": "^7",
"c12": "^1.0.1", "c12": "^1.1.0",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"clear": "^0.1.0", "clear": "^0.1.0",
"clipboardy": "^3.0.0", "clipboardy": "^3.0.0",

View File

@ -44,9 +44,9 @@
"@nuxt/vite-builder": "3.0.0", "@nuxt/vite-builder": "3.0.0",
"@vue/reactivity": "^3.2.45", "@vue/reactivity": "^3.2.45",
"@vue/shared": "^3.2.45", "@vue/shared": "^3.2.45",
"@vueuse/head": "^1.0.20", "@vueuse/head": "^1.0.22",
"unhead": "^1.0.7", "unhead": "^1.0.13",
"@unhead/ssr": "^1.0.7", "@unhead/ssr": "^1.0.13",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"cookie-es": "^0.5.0", "cookie-es": "^0.5.0",
"defu": "^6.1.1", "defu": "^6.1.1",

View File

@ -17,13 +17,13 @@
"@types/lodash.template": "^4", "@types/lodash.template": "^4",
"@types/semver": "^7", "@types/semver": "^7",
"@vitejs/plugin-vue": "^3.2.0", "@vitejs/plugin-vue": "^3.2.0",
"@unhead/schema": "^1.0.7", "@unhead/schema": "^1.0.13",
"nitropack": "^1.0.0", "nitropack": "^1.0.0",
"unbuild": "latest", "unbuild": "latest",
"vite": "~3.2.5" "vite": "~3.2.5"
}, },
"dependencies": { "dependencies": {
"c12": "^1.0.1", "c12": "^1.1.0",
"create-require": "^1.1.1", "create-require": "^1.1.1",
"defu": "^6.1.1", "defu": "^6.1.1",
"jiti": "^1.16.0", "jiti": "^1.16.0",

View File

@ -26,7 +26,7 @@
"devDependencies": { "devDependencies": {
"playwright": "^1.28.1", "playwright": "^1.28.1",
"unbuild": "latest", "unbuild": "latest",
"vitest": "^0.25.4" "vitest": "^0.25.5"
}, },
"peerDependencies": { "peerDependencies": {
"vue": "^3.2.45" "vue": "^3.2.45"

View File

@ -27,7 +27,7 @@
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"cssnano": "^5.1.14", "cssnano": "^5.1.14",
"defu": "^6.1.1", "defu": "^6.1.1",
"esbuild": "^0.15.18", "esbuild": "^0.16.2",
"escape-string-regexp": "^5.0.0", "escape-string-regexp": "^5.0.0",
"estree-walker": "^3.0.1", "estree-walker": "^3.0.1",
"externality": "^1.0.0", "externality": "^1.0.0",
@ -42,14 +42,14 @@
"perfect-debounce": "^0.1.3", "perfect-debounce": "^0.1.3",
"pkg-types": "^1.0.1", "pkg-types": "^1.0.1",
"postcss": "^8.4.19", "postcss": "^8.4.19",
"postcss-import": "^15.0.1", "postcss-import": "^15.1.0",
"postcss-url": "^10.1.3", "postcss-url": "^10.1.3",
"rollup": "^2.79.1", "rollup": "^2.79.1",
"rollup-plugin-visualizer": "^5.8.3", "rollup-plugin-visualizer": "^5.8.3",
"ufo": "^1.0.1", "ufo": "^1.0.1",
"unplugin": "^1.0.0", "unplugin": "^1.0.0",
"vite": "~3.2.5", "vite": "~3.2.5",
"vite-node": "^0.25.4", "vite-node": "^0.25.5",
"vite-plugin-checker": "^0.5.1", "vite-plugin-checker": "^0.5.1",
"vue-bundle-renderer": "^1.0.0" "vue-bundle-renderer": "^1.0.0"
}, },

View File

@ -39,7 +39,7 @@
"pathe": "^1.0.0", "pathe": "^1.0.0",
"pify": "^6.1.0", "pify": "^6.1.0",
"postcss": "^8.4.19", "postcss": "^8.4.19",
"postcss-import": "^15.0.1", "postcss-import": "^15.1.0",
"postcss-loader": "^7.0.2", "postcss-loader": "^7.0.2",
"postcss-url": "^10.1.3", "postcss-url": "^10.1.3",
"style-resources-loader": "^1.5.0", "style-resources-loader": "^1.5.0",

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,7 @@ import { fileURLToPath } from 'node:url'
import { describe, expect, it } from 'vitest' import { describe, expect, it } from 'vitest'
import { joinURL, withQuery } from 'ufo' import { joinURL, withQuery } from 'ufo'
import { isWindows } from 'std-env' import { isWindows } from 'std-env'
import { normalize } from 'pathe'
// eslint-disable-next-line import/order // eslint-disable-next-line import/order
import { setup, fetch, $fetch, startServer, createPage, url } from '@nuxt/test-utils' import { setup, fetch, $fetch, startServer, createPage, url } from '@nuxt/test-utils'
import type { NuxtIslandResponse } from '../packages/nuxt/src/core/runtime/nitro/renderer' import type { NuxtIslandResponse } from '../packages/nuxt/src/core/runtime/nitro/renderer'
@ -813,6 +814,11 @@ describe('component islands', () => {
if (process.env.NUXT_TEST_DEV) { if (process.env.NUXT_TEST_DEV) {
result.head.link = result.head.link.filter(l => !l.href.includes('@nuxt+ui-templates')) result.head.link = result.head.link.filter(l => !l.href.includes('@nuxt+ui-templates'))
const fixtureDir = normalize(fileURLToPath(new URL('./fixtures/basic', import.meta.url)))
for (const link of result.head.link) {
link.href = link.href.replace(fixtureDir, '/<rootDir>').replaceAll('//', '/')
link.key = link.key.replace(/-[a-zA-Z0-9]+$/, '')
}
} }
result.head.style = result.head.style.map(s => ({ result.head.style = result.head.style.map(s => ({
...s, ...s,
@ -833,12 +839,19 @@ describe('component islands', () => {
} }
`) `)
} else if (process.env.NUXT_TEST_DEV) { } else if (process.env.NUXT_TEST_DEV) {
// TODO: Investigate extra style
// Introduced by https://github.com/nuxt/framework/pull/9549
expect(result.head).toMatchInlineSnapshot(` expect(result.head).toMatchInlineSnapshot(`
{ {
"link": [ "link": [
{ {
"href": "/_nuxt/components/islands/PureComponent.vue?vue&type=style&index=0&scoped=c0c0cf89&lang.css", "href": "/_nuxt/components/islands/PureComponent.vue?vue&type=style&index=0&scoped=c0c0cf89&lang.css",
"key": "island-link-gH9jFOYxRw", "key": "island-link",
"rel": "stylesheet",
},
{
"href": "/_nuxt/<rootDir>/components/islands/PureComponent.vue?vue&type=style&index=0&scoped=c0c0cf89&lang.css",
"key": "island-link",
"rel": "stylesheet", "rel": "stylesheet",
}, },
], ],