Bot releases are visible (Hide)
Published by danielroe over 1 year ago
Originally published at https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.4
See all changes: https://github.com/nuxt/framework/compare/v3.0.0-rc.3...v3.0.0-rc.4
This release contains commutative enhancements from RC.3. Thanks to all of the contributors to the code and documentation π
global
with globalThis
(#4958)<template>
(#4904)file://
protocol to vite-node
entry file path (#4966)titleTemplate
(#5064)navigateTo
from 301
to 302
(#5173)title
, bodyAttrs
and htmlAttrs
(#5184)navigateTo
options using server middleware in server-side (#5145)RouterView
props in NuxtPage
(#5272)mode
config correctly (#5255)ssrContext
types on NuxtApp
(#5333)useAsyncData
(#5340)isIgnored
(#5375)build.transpile
(#5043)node_modules
(#5042)resolveComponent
(#5428)NODE_ENV
value with a warning (#5417)extractCSS
by default (#4388)vue
peer dependency (#5190)alias
example (#4995)useFetch
and useAsyncData
(#4974)useFetch
docs for body type and additional ohmyfetch
options (#4985)navigateTo
options (#5044)useState
with same key (#5059)NUXT_APP_CDN_URL
environment variable (#5032)--prerender
flag to nuxi build
command (#5112)key
option for useFetch
(#5089)--no-clear
flag in the documentation of development server (#5197)NuxtLayout
in app.vue
with pages (#5225)titleTemplate
(#5093)useRequestEvent
(#5326)useRouter
composable (#4949)defineEventHandler
(#5405)Originally published at https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.3
serverHandlers
/devServerHandlers
shortcuts to register custom handlersnitropack
to 0.4.x
router.resolve
to resolve initial urlssr: false
vite
from DeepPartial
PublicRuntimeConfig
interface for augmentationbuildAssetsURL
for dynamic importsuseRoute
composableOriginally published at https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.2
router.push
on ssruseFetch
with transform
optionuseAsyncData
and useFetch
error.data
in responsetsconfig
nuxi init
outputDeepPartial
nitro:build:before
hook[[
default
optioncomposables/
directory.env
is not read in productionuseFetch
example consistent with othersruntimeConfig
useAsyncData
example[[
If you are relying on [slug]
at the end of a route to generate an optional parameter, you will need to rewrite it as [[slug]]
.
Originally published at https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.1
3.0.0-rc.1
"Mount Hope"
π Check out the Announcing Nuxt 3 Release Candidate for more information about this release!
nuxt3
edge releasesIf you are already a beta tester of nuxt using nuxt3
package, please follow the steps below to use RC.1:
Check out Breaking changes tracker to apply any of the previous possible breaking changes on edge-channel.
Remove .nuxt
, package.lock.json
, yarn.lock
and node_modules
Update nuxt.config
to import defineNuxtConfig
from nuxt
instead of nuxt3
:
- import { defineNuxtConfig } from 'nuxt3'
+ import { defineNuxtConfig } from 'nuxt'
export default defineNuxtConfig({ ... })
package.json
{
"devDependencies": {
- "nuxt3": "latest"
+ "nuxt": "^3.0.0-rc.1"
}
}
Alternatively, you can use "nuxt": "npm:nuxt3@latest"
to keep using the latest edge releases of Nuxt 3.
For Nuxt 3 modules created by new module-builder toolchain, also update @nuxt/kit
dependency to use RC.1 in package.json
:
{
"dependencies": {
- "@nuxt/kit": "npm:@nuxt/kit-edge@latest"
+ "@nuxt/kit": "^3.0.0-rc.1"
}
}
Please upgrade to nuxt@^2.15.7
if using [email protected]
or [email protected]
vue-app
types
@types/[email protected]
(resolves #9268)babel
class-properties
and private-methods
(resolves #9224)vue-app
route.replace
instead of router.push
to trigger navigation guards (resolves #9111)builder
build.watch
paths (resolves #9045)cli
css-loader < 4.2
(resolves #9117)vue-app
$root
is not available (resolves #8995)app.context.route
to match components in server (resolves #9009)$fetch
if data is missing in payload (resolves #9016)app.context.route
for resolving components (resolves #9049)_app
namespace (resolves #9074)config
compileType
to icss
for css-loader
v4server
.js
assets in development to fix HMR in safari (resolves #3828)cli
@types/terser-webpack-plugin
sass-loader
rather than sass
(resolves #9085)@nuxt/types
(resolves #9030)types
NuxtConfig
instead of typewebpack
extract-css-chunks-webpack-plugin
general
@babel/preset-env
to 2.13.xvue-renderer
injectScripts
for static
targetrenderer
webpack
ufo
(resolves #8838)cli
types
build.html.minify
can be falsebuilder
path.resolve
for pages dirβ οΈThis release introduces behavior changes. Update with caution β οΈ
Minimum supported Node.js version is 12.0.0 (See https://github.com/nuxt/nuxt.js/issues/8327 for why)
Using jiti as new require engine with typescript support
Plug and play works out of the box
Allow opting-in to use postcss@8
(See https://github.com/nuxt/nuxt.js/issues/8546)
NOTE: postcss-preset-env is disabled in v8 config as it doesn't support postcss v8 for now, so please install all below dependencies explicitly.
yarn add --dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
# or
npm i --save-dev css-loader@^5.0.0 postcss@^8.1.10 postcss-import@^13.0.0 postcss-loader@^4.1.0 postcss-url@^10.1.1
Several encoding issues resolved by consistently using ufo
Components updated to v2 (please read migration guide)
[Modules] When matching a webpack loader by name or query, should use includes
instead of exact match (example)
general
trailingSlash
and child routes not workingconfig
utils
serializeFunction
fails with certain functionsvue-app
publicPath
on server-sidePage.options
before looking withinreq
, res
and query
from context unless in full static modelink.__prefetch
exists before calling itid
attribute to noopApp
push
on router instance rather than prototypeserver, vue-app
dev
cli
webpack
server
router.base
is setbabel
vue-app, vue-renderer, utils
trailingSlash
setting for payloadsgenerator
extendRoutes
cli
postcss
config, vue-app, vue-renderer
base
and publicPath
general
vue-app
fetchKey
for full static generationvue-renderer
<script>
tagsutils, vue-app
ufo
to parse queries and join urlsvue-app
general
general
cli
types
builder
readme
vue.config
types should be optionalredirect
overload to Context
interfaceenablePreview
to contextloadingScreen
type definitionAnd all nuxters helping everyday with valuable feedbacks π
@nuxt/components
v1.2.2 (notes)webpack
node_modules
general
vue-router
vue-router
cli
router.trailingSlash
when serving static files (resolves #8350)generate.cache.ignore
as a function in ensureBuild
generator
csp
vue-app
nuxt-link
and fetch mixin (resolves #8118)types
isFetching
and nbFetching to NuxtApp
interfaceNuxtOptionsHead
can be a functionssrContext
and next
typings to Context
(resolves #8296)server
router.base
specified in developmentgeneral
cli
general
babel-preset-app
cli
process.env
changes in nuxt.config
nuxt-edge
if installed in parent node_modules
vue-app
this.$nuxt
types
serverMiddleware
object formatNuxtConfig
an interfacegenerator
routes.json
definedgeneral
babel-preset-app
corejs.version
as stringvue-app
$fetch
function for SSR with static target (resolves #8043)