From 844fe67e68e5d3262fb655eb87b1b1bf0fd8f216 Mon Sep 17 00:00:00 2001 From: Daniel Kelly Date: Mon, 17 Jun 2024 10:02:56 -0500 Subject: [PATCH 1/3] docs: add referral query variable to Vue School Links (#27670) --- docs/2.guide/2.directory-structure/1.modules.md | 2 +- docs/2.guide/3.going-further/3.modules.md | 10 +++++----- docs/3.api/5.kit/12.resolving.md | 2 +- docs/3.api/5.kit/4.autoimports.md | 2 +- docs/3.api/5.kit/5.components.md | 2 +- docs/3.api/5.kit/7.pages.md | 6 +++--- docs/3.api/5.kit/9.plugins.md | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/docs/2.guide/2.directory-structure/1.modules.md b/docs/2.guide/2.directory-structure/1.modules.md index ce9de8f9f21e..f544e815bcd9 100644 --- a/docs/2.guide/2.directory-structure/1.modules.md +++ b/docs/2.guide/2.directory-structure/1.modules.md @@ -61,6 +61,6 @@ modules/ :read-more{to="/docs/guide/going-further/modules"} -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/creating-your-first-module-from-scratch" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/creating-your-first-module-from-scratch?friend=nuxt" target="_blank"} Watch Vue School video about Nuxt private modules. :: diff --git a/docs/2.guide/3.going-further/3.modules.md b/docs/2.guide/3.going-further/3.modules.md index 7582e9061767..f72b2c8ee140 100644 --- a/docs/2.guide/3.going-further/3.modules.md +++ b/docs/2.guide/3.going-further/3.modules.md @@ -30,7 +30,7 @@ This will create a `my-module` project with all the boilerplate necessary to dev Learn how to perform basic tasks with the module starter. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/navigating-the-official-starter-template" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/navigating-the-official-starter-template?friend=nuxt" target="_blank"} Watch Vue School video about Nuxt module starter template. :: @@ -259,7 +259,7 @@ export default defineNuxtModule({ When you need to handle more complex configuration alterations, you should consider using [defu](https://github.com/unjs/defu). -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/extending-and-altering-nuxt-configuration-and-options" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/extending-and-altering-nuxt-configuration-and-options?friend=nuxt" target="_blank"} Watch Vue School video about altering Nuxt configuration. :: @@ -296,7 +296,7 @@ Be careful not to expose any sensitive module configuration on the public runtim :read-more{to="/docs/guide/going-further/runtime-config"} -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/passing-and-exposing-module-options" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/passing-and-exposing-module-options?friend=nuxt" target="_blank"} Watch Vue School video about passing and exposing Nuxt module options. :: @@ -523,7 +523,7 @@ export default defineNuxtModule({ :read-more{to="/docs/api/advanced/hooks"} -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/nuxt-lifecycle-hooks" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/nuxt-lifecycle-hooks?friend=nuxt" target="_blank"} Watch Vue School video about using Nuxt lifecycle hooks in modules. :: @@ -749,7 +749,7 @@ The module starter comes with a default set of tools and configurations (e.g. ES [Nuxt Module ecosystem](/modules) represents more than 15 million monthly NPM downloads and provides extended functionalities and integrations with all sort of tools. You can be part of this ecosystem! -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/exploring-nuxt-modules-ecosystem-and-module-types" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/exploring-nuxt-modules-ecosystem-and-module-types?friend=nuxt" target="_blank"} Watch Vue School video about Nuxt module types. :: diff --git a/docs/3.api/5.kit/12.resolving.md b/docs/3.api/5.kit/12.resolving.md index bb455d471e1d..eac13cab4f8c 100644 --- a/docs/3.api/5.kit/12.resolving.md +++ b/docs/3.api/5.kit/12.resolving.md @@ -211,7 +211,7 @@ Type of path to resolve. If set to `'file'`, the function will try to resolve a Creates resolver relative to base path. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/resolving-paths-and-injecting-assets-to-the-app" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/resolving-paths-and-injecting-assets-to-the-app?friend=nuxt" target="_blank"} Watch Vue School video about createResolver. :: diff --git a/docs/3.api/5.kit/4.autoimports.md b/docs/3.api/5.kit/4.autoimports.md index 2116b92d370a..6a0b0a08a551 100644 --- a/docs/3.api/5.kit/4.autoimports.md +++ b/docs/3.api/5.kit/4.autoimports.md @@ -18,7 +18,7 @@ These functions are designed for registering your own utils, composables and Vue Nuxt auto-imports helper functions, composables and Vue APIs to use across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own composables and plugins. Composables or plugins can use these functions. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/expanding-nuxt-s-auto-imports" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/expanding-nuxt-s-auto-imports?friend=nuxt" target="_blank"} Watch Vue School video about Auto-imports Nuxt Kit utilities. :: diff --git a/docs/3.api/5.kit/5.components.md b/docs/3.api/5.kit/5.components.md index 0740f0963a59..b112c8496232 100644 --- a/docs/3.api/5.kit/5.components.md +++ b/docs/3.api/5.kit/5.components.md @@ -10,7 +10,7 @@ links: Components are the building blocks of your Nuxt application. They are reusable Vue instances that can be used to create a user interface. In Nuxt, components from the components directory are automatically imported by default. However, if you need to import components from an alternative directory or wish to selectively import them as needed, `@nuxt/kit` provides the `addComponentsDir` and `addComponent` methods. These utils allow you to customize the component configuration to better suit your needs. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-components-and-component-directories" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-components-and-component-directories?friend=nuxt" target="_blank"} Watch Vue School video about injecting components. :: diff --git a/docs/3.api/5.kit/7.pages.md b/docs/3.api/5.kit/7.pages.md index 19692ddb2819..83b5dc15d30d 100644 --- a/docs/3.api/5.kit/7.pages.md +++ b/docs/3.api/5.kit/7.pages.md @@ -12,7 +12,7 @@ links: In Nuxt 3, routes are automatically generated based on the structure of the files in the `pages` directory. However, there may be scenarios where you'd want to customize these routes. For instance, you might need to add a route for a dynamic page not generated by Nuxt, remove an existing route, or modify the configuration of a route. For such customizations, Nuxt 3 offers the `extendPages` feature, which allows you to extend and alter the pages configuration. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/extend-and-alter-nuxt-pages" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/extend-and-alter-nuxt-pages?friend=nuxt" target="_blank"} Watch Vue School video about extendPages. :: @@ -71,7 +71,7 @@ Nuxt is powered by the [Nitro](https://nitro.unjs.io) server engine. With Nitro, You can read more about Nitro route rules in the [Nitro documentation](https://nitro.unjs.io/guide/routing#route-rules). :: -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/adding-route-rules-and-route-middlewares" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/adding-route-rules-and-route-middlewares?friend=nuxt" target="_blank"} Watch Vue School video about adding route rules and route middelwares. :: @@ -192,7 +192,7 @@ Route middlewares can be also defined in plugins via [`addRouteMiddleware`](/doc Read more about route middlewares in the [Route middleware documentation](/docs/getting-started/routing#route-middleware). :: -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/adding-route-rules-and-route-middlewares" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/adding-route-rules-and-route-middlewares?friend=nuxt" target="_blank"} Watch Vue School video about adding route rules and route middelwares. :: diff --git a/docs/3.api/5.kit/9.plugins.md b/docs/3.api/5.kit/9.plugins.md index aec172f0ec10..4ee2eda5af30 100644 --- a/docs/3.api/5.kit/9.plugins.md +++ b/docs/3.api/5.kit/9.plugins.md @@ -14,7 +14,7 @@ Plugins are self-contained code that usually add app-level functionality to Vue. Registers a Nuxt plugin and to the plugins array. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-plugins" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-plugins?friend=nuxt" target="_blank"} Watch Vue School video about addPlugin. :: @@ -114,7 +114,7 @@ export default defineNuxtPlugin((nuxtApp) => { Adds a template and registers as a nuxt plugin. This is useful for plugins that need to generate code at build time. -::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-plugin-templates" target="_blank"} +::tip{icon="i-ph-video-duotone" to="https://vueschool.io/lessons/injecting-plugin-templates?friend=nuxt" target="_blank"} Watch Vue School video about addPluginTemplate. :: From 324573f73d19ebba356d17fbc4050ad6ae863133 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:35:08 +0100 Subject: [PATCH 2/3] chore(deps): update all non-major dependencies (main) (#27677) --- package.json | 4 +- packages/schema/package.json | 2 +- packages/webpack/package.json | 2 +- pnpm-lock.yaml | 231 ++++++++++++++++++++++++++-------- 4 files changed, 184 insertions(+), 55 deletions(-) diff --git a/package.json b/package.json index 606b99f51ca5..8cf56b819d6d 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@testing-library/vue": "8.1.0", "@types/eslint__js": "8.42.3", "@types/fs-extra": "11.0.4", - "@types/node": "20.14.2", + "@types/node": "20.14.3", "@types/semver": "7.5.8", "@unhead/schema": "1.9.13", "@vitejs/plugin-vue": "5.0.4", @@ -93,7 +93,7 @@ "vue-router": "4.3.3", "vue-tsc": "2.0.21" }, - "packageManager": "pnpm@9.3.0", + "packageManager": "pnpm@9.4.0", "engines": { "node": "^16.10.0 || >=18.0.0" }, diff --git a/packages/schema/package.json b/packages/schema/package.json index 110e97dfaf62..6bb65341f7ac 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -46,7 +46,7 @@ "@vue/compiler-sfc": "3.4.29", "@vue/language-core": "2.0.21", "c12": "1.11.1", - "esbuild-loader": "4.1.0", + "esbuild-loader": "4.2.0", "h3": "1.11.1", "ignore": "5.3.1", "nitropack": "2.9.6", diff --git a/packages/webpack/package.json b/packages/webpack/package.json index 93b42e377e88..fb3159a8452b 100644 --- a/packages/webpack/package.json +++ b/packages/webpack/package.json @@ -32,7 +32,7 @@ "css-minimizer-webpack-plugin": "^7.0.0", "cssnano": "^7.0.2", "defu": "^6.1.4", - "esbuild-loader": "^4.1.0", + "esbuild-loader": "^4.2.0", "escape-string-regexp": "^5.0.0", "estree-walker": "^3.0.3", "file-loader": "^6.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9563319de17c..e346282cc4a6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -31,7 +31,7 @@ importers: version: link:packages/kit '@nuxt/test-utils': specifier: 3.13.1 - version: 3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) + version: 3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) '@nuxt/webpack-builder': specifier: workspace:* version: link:packages/webpack @@ -45,8 +45,8 @@ importers: specifier: 11.0.4 version: 11.0.4 '@types/node': - specifier: 20.14.2 - version: 20.14.2 + specifier: 20.14.3 + version: 20.14.3 '@types/semver': specifier: 7.5.8 version: 7.5.8 @@ -55,10 +55,10 @@ importers: version: 1.9.13 '@vitejs/plugin-vue': specifier: 5.0.4 - version: 5.0.4(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) + version: 5.0.4(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) '@vitest/coverage-v8': specifier: 1.6.0 - version: 1.6.0(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0)) + version: 1.6.0(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0)) '@vue/test-utils': specifier: 2.4.6 version: 2.4.6 @@ -145,10 +145,10 @@ importers: version: 1.5.3 vitest: specifier: 1.6.0 - version: 1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) + version: 1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) vitest-environment-nuxt: specifier: 1.0.0 - version: 1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) + version: 1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) vue: specifier: 3.4.29 version: 3.4.29(typescript@5.4.5) @@ -242,10 +242,10 @@ importers: version: 2.0.0(sass@1.69.4)(typescript@5.4.5) vite: specifier: 5.3.1 - version: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + version: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vitest: specifier: 1.6.0 - version: 1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) + version: 1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) webpack: specifier: 5.92.0 version: 5.92.0 @@ -517,10 +517,10 @@ importers: version: 1.9.13 '@vitejs/plugin-vue': specifier: 5.0.4 - version: 5.0.4(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) + version: 5.0.4(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) '@vitejs/plugin-vue-jsx': specifier: 4.0.0 - version: 4.0.0(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) + version: 4.0.0(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) '@vue/compiler-core': specifier: 3.4.29 version: 3.4.29 @@ -534,8 +534,8 @@ importers: specifier: 1.11.1 version: 1.11.1(magicast@0.3.4) esbuild-loader: - specifier: 4.1.0 - version: 4.1.0(webpack@5.92.0) + specifier: 4.2.0 + version: 4.2.0(webpack@5.92.0) h3: specifier: 1.11.1 version: 1.11.1 @@ -559,7 +559,7 @@ importers: version: 1.9.0 vite: specifier: 5.3.1 - version: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + version: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vue: specifier: 3.4.29 version: 3.4.29(typescript@5.4.5) @@ -622,10 +622,10 @@ importers: version: 1.3.0 unocss: specifier: 0.61.0 - version: 0.61.0(@unocss/webpack@0.60.4(rollup@4.18.0)(webpack@5.92.0(esbuild@0.21.5)))(postcss@8.4.38)(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0)) + version: 0.61.0(postcss@8.4.38)(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0)) vite: specifier: 5.3.1 - version: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + version: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) packages/vite: dependencies: @@ -637,10 +637,10 @@ importers: version: 5.0.7(rollup@4.18.0) '@vitejs/plugin-vue': specifier: ^5.0.4 - version: 5.0.4(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) + version: 5.0.4(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) '@vitejs/plugin-vue-jsx': specifier: ^4.0.0 - version: 4.0.0(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) + version: 4.0.0(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5)) autoprefixer: specifier: ^10.4.19 version: 10.4.19(postcss@8.4.38) @@ -721,13 +721,13 @@ importers: version: 1.10.1 vite: specifier: 5.3.1 - version: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + version: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vite-node: specifier: ^1.6.0 - version: 1.6.0(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + version: 1.6.0(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vite-plugin-checker: specifier: ^0.6.4 - version: 0.6.4(eslint@9.5.0)(optionator@0.9.3)(typescript@5.4.5)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue-tsc@2.0.21(typescript@5.4.5)) + version: 0.6.4(eslint@9.5.0)(optionator@0.9.3)(typescript@5.4.5)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue-tsc@2.0.21(typescript@5.4.5)) vue-bundle-renderer: specifier: ^2.1.0 version: 2.1.0 @@ -778,8 +778,8 @@ importers: specifier: ^6.1.4 version: 6.1.4 esbuild-loader: - specifier: ^4.1.0 - version: 4.1.0(webpack@5.92.0) + specifier: ^4.2.0 + version: 4.2.0(webpack@5.92.0) escape-string-regexp: specifier: ^5.0.0 version: 5.0.0 @@ -986,7 +986,7 @@ importers: version: 0.7.0(rollup@4.18.0)(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) vitest: specifier: 1.6.0 - version: 1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) + version: 1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) vue: specifier: 3.4.29 version: 3.4.29(typescript@5.4.5) @@ -2562,6 +2562,9 @@ packages: '@types/node@20.14.2': resolution: {integrity: sha512-xyu6WAMVwv6AKFLB+e/7ySZVr/0zLCzOa7rSpq6jNwpqOrUbcACDWC+53d4n2QHOnDou0fbIsg8wZu/sxrnI4Q==} + '@types/node@20.14.3': + resolution: {integrity: sha512-Nuzqa6WAxeGnve6SXqiPAM9rA++VQs+iLZ1DDd56y0gdvygSZlQvZuvdFPR3yLqkVxPu4WrO02iDEyH1g+wazw==} + '@types/normalize-package-data@2.4.4': resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} @@ -4080,8 +4083,8 @@ packages: es-module-lexer@1.3.1: resolution: {integrity: sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q==} - esbuild-loader@4.1.0: - resolution: {integrity: sha512-543TtIvqbqouEMlOHg4xKoDQkmdImlwIpyAIgpUtDPvMuklU/c2k+Qt2O3VeDBgAwozxmlEbjOzV+F8CZ0g+Bw==} + esbuild-loader@4.2.0: + resolution: {integrity: sha512-BhwHchuDknxIa69AqOPeZh2fIFqj2AzZKC1E3RBRvXSuyk5drsqMrwsgYZJufX41yrauLYjDM3KBmruoGl1NWQ==} peerDependencies: webpack: ^4.40.0 || ^5.0.0 @@ -8308,7 +8311,7 @@ snapshots: '@jest/schemas': 29.6.3 '@types/istanbul-lib-coverage': 2.0.5 '@types/istanbul-reports': 3.0.3 - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/yargs': 17.0.28 chalk: 4.1.2 @@ -8726,7 +8729,7 @@ snapshots: rc9: 2.1.2 std-env: 3.7.0 - '@nuxt/test-utils@3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5))': + '@nuxt/test-utils@3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5))': dependencies: '@nuxt/kit': link:packages/kit '@nuxt/schema': link:packages/schema @@ -8752,8 +8755,8 @@ snapshots: ufo: 1.5.3 unenv: 1.9.0 unplugin: 1.10.1 - vite: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) - vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + vitest-environment-nuxt: 1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) vue: 3.4.29(typescript@5.4.5) vue-router: 4.3.3(vue@3.4.29(typescript@5.4.5)) optionalDependencies: @@ -8761,7 +8764,7 @@ snapshots: '@vue/test-utils': 2.4.6 happy-dom: 14.12.0 playwright-core: 1.44.1 - vitest: 1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) + vitest: 1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) transitivePeerDependencies: - magicast @@ -9156,14 +9159,14 @@ snapshots: '@types/clean-css@4.2.11': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 source-map: 0.6.1 '@types/clear@0.1.4': {} '@types/connect@3.4.37': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/debug@4.1.12': dependencies: @@ -9210,7 +9213,7 @@ snapshots: '@types/http-proxy@1.17.14': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/istanbul-lib-coverage@2.0.5': {} @@ -9226,7 +9229,7 @@ snapshots: '@types/jsonfile@6.1.2': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/lodash-es@4.17.12': dependencies: @@ -9242,12 +9245,16 @@ snapshots: '@types/node-sass@4.11.6': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/node@20.14.2': dependencies: undici-types: 5.26.5 + '@types/node@20.14.3': + dependencies: + undici-types: 5.26.5 + '@types/normalize-package-data@2.4.4': {} '@types/pify@5.0.4': {} @@ -9309,13 +9316,13 @@ snapshots: '@types/webpack-sources@3.2.1': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/source-list-map': 0.1.4 source-map: 0.7.4 '@types/webpack@4.41.34': dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 '@types/tapable': 1.0.10 '@types/uglify-js': 3.17.3 '@types/webpack-sources': 3.2.1 @@ -9466,6 +9473,16 @@ snapshots: transitivePeerDependencies: - rollup + '@unocss/astro@0.61.0(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))': + dependencies: + '@unocss/core': 0.61.0 + '@unocss/reset': 0.61.0 + '@unocss/vite': 0.61.0(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0)) + optionalDependencies: + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + transitivePeerDependencies: + - rollup + '@unocss/cli@0.60.4(rollup@4.18.0)': dependencies: '@ampproject/remapping': 2.3.0 @@ -9775,6 +9792,22 @@ snapshots: transitivePeerDependencies: - rollup + '@unocss/vite@0.61.0(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))': + dependencies: + '@ampproject/remapping': 2.3.0 + '@rollup/pluginutils': 5.1.0(rollup@4.18.0) + '@unocss/config': 0.61.0 + '@unocss/core': 0.61.0 + '@unocss/inspector': 0.61.0 + '@unocss/scope': 0.61.0 + '@unocss/transformer-directives': 0.61.0 + chokidar: 3.6.0 + fast-glob: 3.3.2 + magic-string: 0.30.10 + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + transitivePeerDependencies: + - rollup + '@unocss/webpack@0.60.4(rollup@4.18.0)(webpack@5.92.0(esbuild@0.21.5))': dependencies: '@ampproject/remapping': 2.3.0 @@ -9808,12 +9841,12 @@ snapshots: - encoding - supports-color - '@vitejs/plugin-vue-jsx@4.0.0(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5))': + '@vitejs/plugin-vue-jsx@4.0.0(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5))': dependencies: '@babel/core': 7.24.7 '@babel/plugin-transform-typescript': 7.24.7(@babel/core@7.24.7) '@vue/babel-plugin-jsx': 1.2.2(@babel/core@7.24.7) - vite: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vue: 3.4.29(typescript@5.4.5) transitivePeerDependencies: - supports-color @@ -9823,7 +9856,12 @@ snapshots: vite: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) vue: 3.4.29(typescript@5.4.5) - '@vitest/coverage-v8@1.6.0(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))': + '@vitejs/plugin-vue@5.0.4(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue@3.4.29(typescript@5.4.5))': + dependencies: + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + vue: 3.4.29(typescript@5.4.5) + + '@vitest/coverage-v8@1.6.0(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 0.2.3 @@ -9838,7 +9876,7 @@ snapshots: std-env: 3.7.0 strip-literal: 2.1.0 test-exclude: 6.0.0 - vitest: 1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) + vitest: 1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0) transitivePeerDependencies: - supports-color @@ -11165,9 +11203,9 @@ snapshots: es-module-lexer@1.3.1: {} - esbuild-loader@4.1.0(webpack@5.92.0): + esbuild-loader@4.2.0(webpack@5.92.0): dependencies: - esbuild: 0.20.2 + esbuild: 0.21.5 get-tsconfig: 4.7.3 loader-utils: 2.0.4 webpack: 5.92.0 @@ -12314,7 +12352,7 @@ snapshots: jest-util@29.7.0: dependencies: '@jest/types': 29.6.3 - '@types/node': 20.14.2 + '@types/node': 20.14.3 chalk: 4.1.2 ci-info: 3.9.0 graceful-fs: 4.2.11 @@ -12322,13 +12360,13 @@ snapshots: jest-worker@27.5.1: dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 merge-stream: 2.0.0 supports-color: 8.1.1 jest-worker@29.7.0: dependencies: - '@types/node': 20.14.2 + '@types/node': 20.14.3 jest-util: 29.7.0 merge-stream: 2.0.0 supports-color: 8.1.1 @@ -14898,6 +14936,35 @@ snapshots: - rollup - supports-color + unocss@0.61.0(postcss@8.4.38)(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0)): + dependencies: + '@unocss/astro': 0.61.0(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0)) + '@unocss/cli': 0.61.0(rollup@4.18.0) + '@unocss/core': 0.61.0 + '@unocss/extractor-arbitrary-variants': 0.61.0 + '@unocss/postcss': 0.61.0(postcss@8.4.38) + '@unocss/preset-attributify': 0.61.0 + '@unocss/preset-icons': 0.61.0 + '@unocss/preset-mini': 0.61.0 + '@unocss/preset-tagify': 0.61.0 + '@unocss/preset-typography': 0.61.0 + '@unocss/preset-uno': 0.61.0 + '@unocss/preset-web-fonts': 0.61.0 + '@unocss/preset-wind': 0.61.0 + '@unocss/reset': 0.61.0 + '@unocss/transformer-attributify-jsx': 0.61.0 + '@unocss/transformer-attributify-jsx-babel': 0.61.0 + '@unocss/transformer-compile-class': 0.61.0 + '@unocss/transformer-directives': 0.61.0 + '@unocss/transformer-variant-group': 0.61.0 + '@unocss/vite': 0.61.0(rollup@4.18.0)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0)) + optionalDependencies: + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + transitivePeerDependencies: + - postcss + - rollup + - supports-color + unplugin-vue-router@0.7.0(rollup@4.18.0)(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)): dependencies: '@babel/types': 7.24.7 @@ -15051,7 +15118,24 @@ snapshots: - supports-color - terser - vite-plugin-checker@0.6.4(eslint@9.5.0)(optionator@0.9.3)(typescript@5.4.5)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vue-tsc@2.0.21(typescript@5.4.5)): + vite-node@1.6.0(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0): + dependencies: + cac: 6.7.14 + debug: 4.3.4 + pathe: 1.1.2 + picocolors: 1.0.0 + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + transitivePeerDependencies: + - '@types/node' + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + + vite-plugin-checker@0.6.4(eslint@9.5.0)(optionator@0.9.3)(typescript@5.4.5)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vue-tsc@2.0.21(typescript@5.4.5)): dependencies: '@babel/code-frame': 7.24.7 ansi-escapes: 4.3.2 @@ -15064,7 +15148,7 @@ snapshots: semver: 7.6.2 strip-ansi: 6.0.1 tiny-invariant: 1.3.1 - vite: 5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0) + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) vscode-languageclient: 7.0.0 vscode-languageserver: 7.0.0 vscode-languageserver-textdocument: 1.0.11 @@ -15119,9 +15203,20 @@ snapshots: sass: 1.69.4 terser: 5.27.0 - vitest-environment-nuxt@1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)): + vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0): dependencies: - '@nuxt/test-utils': 3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.2)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.2)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) + esbuild: 0.21.5 + postcss: 8.4.38 + rollup: 4.18.0 + optionalDependencies: + '@types/node': 20.14.3 + fsevents: 2.3.3 + sass: 1.69.4 + terser: 5.27.0 + + vitest-environment-nuxt@1.0.0(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)): + dependencies: + '@nuxt/test-utils': 3.13.1(@testing-library/vue@8.1.0(@vue/compiler-sfc@3.4.29)(vue@3.4.29(typescript@5.4.5)))(@vue/test-utils@2.4.6)(h3@1.11.1)(happy-dom@14.12.0)(magicast@0.3.4)(nitropack@2.9.6(encoding@0.1.13)(magicast@0.3.4))(playwright-core@1.44.1)(vite@5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0))(vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0))(vue-router@4.3.3(vue@3.4.29(typescript@5.4.5)))(vue@3.4.29(typescript@5.4.5)) transitivePeerDependencies: - '@cucumber/cucumber' - '@jest/globals' @@ -15174,6 +15269,40 @@ snapshots: - supports-color - terser + vitest@1.6.0(@types/node@20.14.3)(happy-dom@14.12.0)(sass@1.69.4)(terser@5.27.0): + dependencies: + '@vitest/expect': 1.6.0 + '@vitest/runner': 1.6.0 + '@vitest/snapshot': 1.6.0 + '@vitest/spy': 1.6.0 + '@vitest/utils': 1.6.0 + acorn-walk: 8.3.2 + chai: 4.3.10 + debug: 4.3.4 + execa: 8.0.1 + local-pkg: 0.5.0 + magic-string: 0.30.10 + pathe: 1.1.2 + picocolors: 1.0.0 + std-env: 3.7.0 + strip-literal: 2.1.0 + tinybench: 2.5.1 + tinypool: 0.8.4 + vite: 5.3.1(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + vite-node: 1.6.0(@types/node@20.14.3)(sass@1.69.4)(terser@5.27.0) + why-is-node-running: 2.2.2 + optionalDependencies: + '@types/node': 20.14.3 + happy-dom: 14.12.0 + transitivePeerDependencies: + - less + - lightningcss + - sass + - stylus + - sugarss + - supports-color + - terser + void-elements@3.1.0: {} vscode-jsonrpc@6.0.0: {} From 7d942f1b5b0820d37ba1219e3a12312a46d1ccf7 Mon Sep 17 00:00:00 2001 From: Daniel Kelly Date: Mon, 17 Jun 2024 17:35:32 -0500 Subject: [PATCH 3/3] docs: fix variable name (#27675) --- docs/1.getting-started/6.data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1.getting-started/6.data-fetching.md b/docs/1.getting-started/6.data-fetching.md index 2297412b99f2..61d02693efde 100644 --- a/docs/1.getting-started/6.data-fetching.md +++ b/docs/1.getting-started/6.data-fetching.md @@ -227,7 +227,7 @@ Combined with the `lazy` option, this can be useful for data that is not needed const articles = await useFetch('/api/article') /* This call will only be performed on the client */ -const { pending, data: posts } = useFetch('/api/comments', { +const { pending, data: comments } = useFetch('/api/comments', { lazy: true, server: false })