v3.0.0-rc.7 (#6375)

This commit is contained in:
pooya parsa 2022-08-11 12:40:11 +02:00 committed by GitHub
parent f356d037e5
commit 5ea0474225
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 75 additions and 82 deletions

View File

@ -51,9 +51,6 @@ Now, if you set the title to `My Page` with `useHead` on another page of your si
## Body Meta Tags
::StabilityEdge{title="Body Meta Tags"}
::
You can use the `body: true` option on the `link` and `script` meta tags to append them to the end of the `<body>` tag.
For example:

View File

@ -93,10 +93,6 @@ If you throw an error created with `createError`:
### Example
::StabilityEdge{title="Auto import of createError"}
In the current version, add `import { createError } from 'h3'` in order to use `createError`.
::
```vue [pages/movies/[slug].vue]
<script setup>
const route = useRoute()
@ -109,10 +105,6 @@ if (!data.value) {
### `showError`
::StabilityEdge{title="showError"}
In the current version, use `throwError` or `throw createError` instead.
::
* `function showError (err: string | Error | { statusCode, statusMessage }): Error`
You can call this function at any point on client-side, or (on server side) directly within middleware, plugins or `setup()` functions. It will trigger a full-screen error page which you can clear with `clearError`.

View File

@ -80,10 +80,6 @@ Alternatively, though not recommended, you can register all your components glob
})
```
::StabilityEdge{title="Automatic global components"}
In the current version, components in `~/components/global` are not yet auto-registered.
::
You can also selectively register some components globally by placing them in a `~/components/global` directory.
::alert{type=info}

View File

@ -15,10 +15,6 @@ If you throw an error created with `createError`:
### Example
::StabilityEdge{title="Auto import of createError"}
In the current version, add `import { createError } from 'h3'` in order to use `createError`.
::
```vue [pages/movies/[slug].vue]
<script setup>
const route = useRoute()

View File

@ -103,7 +103,7 @@ Nuxt 3 has been re-architected with a smaller core and optimized for faster perf
::
::section-content-item
---
title: Webpack 5
title: webpack 5
description: 'Faster build time and smaller bundle size, with no configuration required.'
image: IconWebpack
imageClass: w-10 h-10

View File

@ -1,5 +1,5 @@
{
"version": "independent",
"version": "3.0.0-rc.7",
"npmClient": "yarn",
"useWorkspaces": true,
"conventionalCommits": true,

View File

@ -43,7 +43,7 @@
"nuxt": "link:./packages/nuxt",
"nuxt3": "link:./packages/nuxt",
"vite": "~3.0.5",
"unbuild": "^0.8.7"
"unbuild": "^0.8.8"
},
"devDependencies": {
"@nuxtjs/eslint-config-typescript": "^10.0.0",
@ -63,7 +63,7 @@
"pathe": "^0.3.4",
"rimraf": "^3.0.2",
"typescript": "^4.7.4",
"unbuild": "^0.8.7",
"unbuild": "^0.8.8",
"vitest": "~0.19.1",
"vue-tsc": "^0.39.5"
},

View File

@ -1,6 +1,6 @@
{
"name": "@nuxt/kit",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -13,7 +13,7 @@
"prepack": "unbuild"
},
"dependencies": {
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/schema": "3.0.0-rc.7",
"c12": "^0.2.9",
"consola": "^2.15.3",
"defu": "^6.0.0",
@ -23,7 +23,7 @@
"jiti": "^1.14.0",
"knitwork": "^0.1.2",
"lodash.template": "^4.5.0",
"mlly": "^0.5.9",
"mlly": "^0.5.10",
"pathe": "^0.3.4",
"pkg-types": "^0.3.3",
"scule": "^0.3.2",

View File

@ -1,6 +1,6 @@
{
"name": "nuxi",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -18,8 +18,8 @@
"prepack": "unbuild"
},
"devDependencies": {
"@nuxt/kit": "^3.0.0-rc.6",
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/kit": "3.0.0-rc.7",
"@nuxt/schema": "3.0.0-rc.7",
"@types/clear": "^0",
"@types/mri": "^1.1.1",
"@types/semver": "^7",
@ -35,7 +35,7 @@
"flat": "^5.0.2",
"jiti": "^1.14.0",
"listhen": "^0.2.15",
"mlly": "^0.5.9",
"mlly": "^0.5.10",
"mri": "^1.2.0",
"pathe": "^0.3.4",
"perfect-debounce": "^0.1.3",

View File

@ -1,6 +1,6 @@
{
"name": "nuxt",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -31,11 +31,11 @@
},
"dependencies": {
"@nuxt/devalue": "^2.0.0",
"@nuxt/kit": "^3.0.0-rc.6",
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/kit": "3.0.0-rc.7",
"@nuxt/schema": "3.0.0-rc.7",
"@nuxt/telemetry": "^2.1.4",
"@nuxt/ui-templates": "^0.3.0",
"@nuxt/vite-builder": "^3.0.0-rc.6",
"@nuxt/vite-builder": "3.0.0-rc.7",
"@vue/reactivity": "^3.2.37",
"@vue/shared": "^3.2.37",
"@vueuse/head": "^0.7.9",
@ -51,9 +51,9 @@
"hookable": "^5.1.1",
"knitwork": "^0.1.2",
"magic-string": "^0.26.2",
"mlly": "^0.5.9",
"nitropack": "^0.4.19",
"nuxi": "^3.0.0-rc.6",
"mlly": "^0.5.10",
"nitropack": "^0.4.22",
"nuxi": "3.0.0-rc.7",
"ohash": "^0.1.5",
"ohmyfetch": "^0.4.18",
"pathe": "^0.3.4",

View File

@ -2,7 +2,7 @@ import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'pathe'
let _distDir = dirname(fileURLToPath(import.meta.url))
if (_distDir.endsWith('chunks')) { _distDir = dirname(_distDir) }
if (_distDir.match(/(chunks|shared)$/)) { _distDir = dirname(_distDir) }
export const distDir = _distDir
export const pkgDir = resolve(distDir, '..')
export const runtimeDir = resolve(distDir, 'runtime')

View File

@ -1,6 +1,6 @@
{
"name": "@nuxt/schema",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",

View File

@ -1,6 +1,6 @@
{
"name": "@nuxt/test-utils",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -13,8 +13,8 @@
"prepack": "unbuild"
},
"dependencies": {
"@nuxt/kit": "^3.0.0-rc.6",
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/kit": "3.0.0-rc.7",
"@nuxt/schema": "3.0.0-rc.7",
"defu": "^6.0.0",
"execa": "^6.1.0",
"get-port-please": "^2.6.1",

View File

@ -1,6 +1,6 @@
{
"name": "@nuxt/vite-builder",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -13,13 +13,13 @@
"prepack": "unbuild"
},
"devDependencies": {
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/schema": "3.0.0-rc.7",
"@types/cssnano": "^5",
"unbuild": "latest",
"vue": "3.2.37"
},
"dependencies": {
"@nuxt/kit": "^3.0.0-rc.6",
"@nuxt/kit": "3.0.0-rc.7",
"@rollup/plugin-replace": "^4.0.0",
"@vitejs/plugin-vue": "^3.0.1",
"@vitejs/plugin-vue-jsx": "^2.0.0",
@ -36,7 +36,7 @@
"h3": "^0.7.15",
"knitwork": "^0.1.2",
"magic-string": "^0.26.2",
"mlly": "^0.5.9",
"mlly": "^0.5.10",
"ohash": "^0.1.5",
"pathe": "^0.3.4",
"perfect-debounce": "^0.1.3",

View File

@ -2,6 +2,6 @@ import { fileURLToPath } from 'node:url'
import { dirname, resolve } from 'pathe'
let _distDir = dirname(fileURLToPath(import.meta.url))
if (_distDir.endsWith('chunks')) { _distDir = dirname(_distDir) }
if (_distDir.match(/(chunks|shared)$/)) { _distDir = dirname(_distDir) }
export const distDir = _distDir
export const pkgDir = resolve(distDir, '..')

View File

@ -1,6 +1,6 @@
{
"name": "@nuxt/webpack-builder",
"version": "3.0.0-rc.6",
"version": "3.0.0-rc.7",
"repository": "nuxt/framework",
"license": "MIT",
"type": "module",
@ -18,7 +18,7 @@
"dependencies": {
"@babel/core": "^7.18.10",
"@nuxt/friendly-errors-webpack-plugin": "^2.5.2",
"@nuxt/kit": "^3.0.0-rc.6",
"@nuxt/kit": "3.0.0-rc.7",
"autoprefixer": "^10.4.8",
"css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^4.0.0",
@ -34,7 +34,7 @@
"magic-string": "^0.26.2",
"memfs": "^3.4.7",
"mini-css-extract-plugin": "^2.6.1",
"mlly": "^0.5.9",
"mlly": "^0.5.10",
"ohash": "^0.1.5",
"pathe": "^0.3.4",
"pify": "^6.0.0",
@ -57,7 +57,7 @@
"webpackbar": "^5.0.2"
},
"devDependencies": {
"@nuxt/schema": "^3.0.0-rc.6",
"@nuxt/schema": "3.0.0-rc.7",
"@types/pify": "^5.0.1",
"@types/webpack-bundle-analyzer": "^4.4.1",
"@types/webpack-dev-middleware": "^5.0.2",

View File

@ -6,4 +6,4 @@ set -e
git restore -s@ -SW -- packages examples
# Bump versions
yarn lerna version --preid rc --no-changelog --no-git-tag-version --no-push -m "chore: release rc"
yarn lerna version --preid rc --no-changelog --exact --no-git-tag-version --no-push -m "chore: release rc"

View File

@ -1641,7 +1641,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@nuxt/kit@workspace:packages/kit"
dependencies:
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/schema": 3.0.0-rc.7
"@types/lodash.template": ^4
"@types/semver": ^7
c12: ^0.2.9
@ -1653,7 +1653,7 @@ __metadata:
jiti: ^1.14.0
knitwork: ^0.1.2
lodash.template: ^4.5.0
mlly: ^0.5.9
mlly: ^0.5.10
pathe: ^0.3.4
pkg-types: ^0.3.3
scule: ^0.3.2
@ -1726,8 +1726,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "@nuxt/test-utils@workspace:packages/test-utils"
dependencies:
"@nuxt/kit": ^3.0.0-rc.6
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/kit": 3.0.0-rc.7
"@nuxt/schema": 3.0.0-rc.7
defu: ^6.0.0
execa: ^6.1.0
get-port-please: ^2.6.1
@ -1771,12 +1771,12 @@ __metadata:
languageName: node
linkType: hard
"@nuxt/vite-builder@^3.0.0-rc.6, @nuxt/vite-builder@workspace:packages/vite":
"@nuxt/vite-builder@3.0.0-rc.7, @nuxt/vite-builder@workspace:packages/vite":
version: 0.0.0-use.local
resolution: "@nuxt/vite-builder@workspace:packages/vite"
dependencies:
"@nuxt/kit": ^3.0.0-rc.6
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/kit": 3.0.0-rc.7
"@nuxt/schema": 3.0.0-rc.7
"@rollup/plugin-replace": ^4.0.0
"@types/cssnano": ^5
"@vitejs/plugin-vue": ^3.0.1
@ -1794,7 +1794,7 @@ __metadata:
h3: ^0.7.15
knitwork: ^0.1.2
magic-string: ^0.26.2
mlly: ^0.5.9
mlly: ^0.5.10
ohash: ^0.1.5
pathe: ^0.3.4
perfect-debounce: ^0.1.3
@ -1823,8 +1823,8 @@ __metadata:
dependencies:
"@babel/core": ^7.18.10
"@nuxt/friendly-errors-webpack-plugin": ^2.5.2
"@nuxt/kit": ^3.0.0-rc.6
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/kit": 3.0.0-rc.7
"@nuxt/schema": 3.0.0-rc.7
"@types/pify": ^5.0.1
"@types/webpack-bundle-analyzer": ^4.4.1
"@types/webpack-dev-middleware": ^5.0.2
@ -1845,7 +1845,7 @@ __metadata:
magic-string: ^0.26.2
memfs: ^3.4.7
mini-css-extract-plugin: ^2.6.1
mlly: ^0.5.9
mlly: ^0.5.10
ohash: ^0.1.5
pathe: ^0.3.4
pify: ^6.0.0
@ -9316,6 +9316,18 @@ __metadata:
languageName: node
linkType: hard
"mlly@npm:^0.5.10":
version: 0.5.10
resolution: "mlly@npm:0.5.10"
dependencies:
acorn: ^8.8.0
pathe: ^0.3.4
pkg-types: ^0.3.3
ufo: ^0.8.5
checksum: 56c97cee6b9209301688f3e3792e9fa035ec71ebb213f6ab85fe3c9a9e143c4cff15f149253241a3570558e5a32a15b6a09a39e57d99127b19f3422660f0c75f
languageName: node
linkType: hard
"mlly@npm:^0.5.2, mlly@npm:^0.5.3, mlly@npm:^0.5.7, mlly@npm:^0.5.9":
version: 0.5.9
resolution: "mlly@npm:0.5.9"
@ -9436,9 +9448,9 @@ __metadata:
languageName: node
linkType: hard
"nitropack@npm:^0.4.19":
version: 0.4.19
resolution: "nitropack@npm:0.4.19"
"nitropack@npm:^0.4.22":
version: 0.4.22
resolution: "nitropack@npm:0.4.22"
dependencies:
"@cloudflare/kv-asset-handler": ^0.2.0
"@netlify/functions": ^1.0.0
@ -9475,7 +9487,7 @@ __metadata:
klona: ^2.0.5
listhen: ^0.2.15
mime: ^3.0.0
mlly: ^0.5.9
mlly: ^0.5.10
mri: ^1.2.0
node-fetch-native: ^0.1.4
ohash: ^0.1.5
@ -9501,7 +9513,7 @@ __metadata:
bin:
nitro: dist/cli.mjs
nitropack: dist/cli.mjs
checksum: 8cc4ffef51fe670bc44d7744eb985843a32070c86dbc024c1b8e76fccf98ed9f7aa31cae7fe086361fcd064bccd25ff389dc00ca72a7698f9d6fa29933385fd5
checksum: 936e42856f028f981b2a2f2d293157e3f02a66f26f257791e3be44559d488b77cb978e367522ded2637a8c4fbb06ec373e14b4868c911b5cf152a944072a349b
languageName: node
linkType: hard
@ -9823,8 +9835,8 @@ __metadata:
version: 0.0.0-use.local
resolution: "nuxi@workspace:packages/nuxi"
dependencies:
"@nuxt/kit": ^3.0.0-rc.6
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/kit": 3.0.0-rc.7
"@nuxt/schema": 3.0.0-rc.7
"@types/clear": ^0
"@types/mri": ^1.1.1
"@types/semver": ^7
@ -9841,7 +9853,7 @@ __metadata:
fsevents: ~2.3.2
jiti: ^1.14.0
listhen: ^0.2.15
mlly: ^0.5.9
mlly: ^0.5.10
mri: ^1.2.0
pathe: ^0.3.4
perfect-debounce: ^0.1.3
@ -9880,7 +9892,7 @@ __metadata:
pathe: ^0.3.4
rimraf: ^3.0.2
typescript: ^4.7.4
unbuild: ^0.8.7
unbuild: ^0.8.8
vitest: ~0.19.1
vue-tsc: ^0.39.5
languageName: unknown
@ -9905,11 +9917,11 @@ __metadata:
resolution: "nuxt@workspace:packages/nuxt"
dependencies:
"@nuxt/devalue": ^2.0.0
"@nuxt/kit": ^3.0.0-rc.6
"@nuxt/schema": ^3.0.0-rc.6
"@nuxt/kit": 3.0.0-rc.7
"@nuxt/schema": 3.0.0-rc.7
"@nuxt/telemetry": ^2.1.4
"@nuxt/ui-templates": ^0.3.0
"@nuxt/vite-builder": ^3.0.0-rc.6
"@nuxt/vite-builder": 3.0.0-rc.7
"@types/fs-extra": ^9.0.13
"@types/hash-sum": ^1.0.0
"@vue/reactivity": ^3.2.37
@ -9927,9 +9939,9 @@ __metadata:
hookable: ^5.1.1
knitwork: ^0.1.2
magic-string: ^0.26.2
mlly: ^0.5.9
nitropack: ^0.4.19
nuxi: ^3.0.0-rc.6
mlly: ^0.5.10
nitropack: ^0.4.22
nuxi: 3.0.0-rc.7
ohash: ^0.1.5
ohmyfetch: ^0.4.18
pathe: ^0.3.4
@ -12854,9 +12866,9 @@ __metadata:
languageName: node
linkType: hard
"unbuild@npm:^0.8.7":
version: 0.8.7
resolution: "unbuild@npm:0.8.7"
"unbuild@npm:^0.8.8":
version: 0.8.8
resolution: "unbuild@npm:0.8.8"
dependencies:
"@rollup/plugin-alias": ^3.1.9
"@rollup/plugin-commonjs": ^22.0.2
@ -12888,7 +12900,7 @@ __metadata:
untyped: ^0.4.5
bin:
unbuild: dist/cli.mjs
checksum: 4b279caa3dbee752c2ba82e54bb08f2b415f9e4f00046ba0d24853f0b26fad5ae19eb59400460958cee530072822ab56bd5a5f8ab8f7272e8435915b8c771cba
checksum: 892deeca45684c62917b3c84ed4273826e256f69b983042bee06e8a28829661b1c2c5ee554b70c6c3b6b4f0aa26beeaa8adf30e7e97a2be0a65017518ac44830
languageName: node
linkType: hard