NuxtJS
v3.10.0
#nuxt3.10.0 is the next minor/feature release.
π Highlights
v3.10 comes quite close on the heels of v3.9, but it's packed with features and fixes. Here are a few highlights.
β¨ Experimental shared
When prerendering routes, we can end up refetching the same data over and over again. In Nuxt 2 it was possible to create a 'payload' which could be fetched once and then accessed in every page (and this is of course possible to do manually in Nuxt 3 - see this article).
With #24894, we are now able to do this automatically for you when prerendering. Your
Important
v3.10.0
#nuxt3.10.0 is the next minor/feature release.
π Highlights
v3.10 comes quite close on the heels of v3.9, but it's packed with features and fixes. Here are a few highlights.
β¨ Experimental shared
asyncData
when prerenderingWhen prerendering routes, we can end up refetching the same data over and over again. In Nuxt 2 it was possible to create a 'payload' which could be fetched once and then accessed in every page (and this is of course possible to do manually in Nuxt 3 - see this article).
With #24894, we are now able to do this automatically for you when prerendering. Your
useAsyncData
and useFetch
calls will be deduplicated and cached between renders of your site.export defineNuxtConfig({
experimental: {
sharedPrerenderData: true
}
})
Important
Vue Updates
NuxtJS v3.10.0 #nuxt3.10.0 is the next minor/feature release. π Highlights v3.10 comes quite close on the heels of v3.9, but it's packed with features and fixes. Here are a few highlights. β¨ Experimental shared asyncData when prerendering When prerenderingβ¦
It is particularly important to make sure that any unique key of your data is always resolvable to the same data. For example, if you are using
π See full documentation.
π SSR-safe accessible unique ID creation
We now ship a
">
βοΈ Extending
It's now possible for module authors to inject their own
π See full documentation.
Client-side Node.js support
We now support (experimentally) polyfilling key Node.js built-ins (#25028), just as we already do via Nitro on the server when deploying to non-Node environments.
That means that, within your client-side code, you can import directly from Node built-ins (
Or provide your own polyfill, for example, inside a Nuxt plugin.
This should make life easier for users who are working with libraries without proper browser support. However, because of the risk in increasing your bundle unnecessarily, we would strongly urge users to choose other alternatives if at all possible.
πͺ Better cookie reactivity
We now allow you to opt-in to using the CookieStore. If browser support is present, this will then be used instead of a BroadcastChannel to update
This also comes paired with a new composable,
π₯ Detecting anti-patterns
In this release, we've also shipped a range of features to detect potential bugs and performance problems.
β We now will throw an error if
β We warn (in development only) if data fetch composables are used wrongly (#25071), such as outside of a plugin or setup context.
β We warn (in development only) if you are not using but have the
π§ Granular view transitions support
It's now possible to control view transitions support on a per-page basis, using
You need to have experimental view transitions support enabled first:
And you can opt in/out granularly:
definePageMeta({ viewTransition: false }) ">
Finally, Nuxt will not apply View Transitions if the user's browser matches
ποΈ Build-time route metadata
useAsyncData
to fetch data related to a particular page, you should provide a key that uniquely matches that data. (useFetch
should do this automatically.)π See full documentation.
π SSR-safe accessible unique ID creation
We now ship a
useId
composable for generating SSR-safe unique IDs (#23368). This allows creating more accessible interfaces in your app. For example:">
<script setup>
const emailId = useId()
const passwordId = useId()
>script>
<template>
<form>
<label :for="emailId">Email>label>
<input
:id="emailId"
name="email"
type="email"
>
<label :for="passwordId">Password>label>
<input
:id="passwordId"
name="password"
type="password"
>
>form>
>template>
βοΈ Extending
app/router.options
It's now possible for module authors to inject their own
router.options
files (#24922). The new pages:routerOptions
hook allows module authors to do things like add custom scrollBehavior
or add runtime augmenting of routes.π See full documentation.
Client-side Node.js support
We now support (experimentally) polyfilling key Node.js built-ins (#25028), just as we already do via Nitro on the server when deploying to non-Node environments.
That means that, within your client-side code, you can import directly from Node built-ins (
node:
and node imports are supported). However, nothing is globally injected for you, to avoid increasing your bundle size unnecessarily. You can either import them where needed.import { Buffer } from 'node:buffer'
import process from 'node:process'
Or provide your own polyfill, for example, inside a Nuxt plugin.
// ~/plugins/node.client.ts
import { Buffer } from 'node:buffer'
import process from 'node:process'
globalThis.Buffer = Buffer
globalThis.process = process
export default defineNuxtPlugin({})
This should make life easier for users who are working with libraries without proper browser support. However, because of the risk in increasing your bundle unnecessarily, we would strongly urge users to choose other alternatives if at all possible.
πͺ Better cookie reactivity
We now allow you to opt-in to using the CookieStore. If browser support is present, this will then be used instead of a BroadcastChannel to update
useCookie
values reactively when the cookies are updated (#25198).This also comes paired with a new composable,
refreshCookie
which allows manually refreshing cookie values, such as after performing a request. See full documentation.π₯ Detecting anti-patterns
In this release, we've also shipped a range of features to detect potential bugs and performance problems.
β We now will throw an error if
setInterval
is used on server (#25259).β We warn (in development only) if data fetch composables are used wrongly (#25071), such as outside of a plugin or setup context.
β We warn (in development only) if you are not using but have the
vue-router
integration enabled (#25490). ( should not be used on its own.)π§ Granular view transitions support
It's now possible to control view transitions support on a per-page basis, using
definePageMeta
(#25264).You need to have experimental view transitions support enabled first:
export default defineNuxtConfig({
experimental: {
viewTransition: true
},
app: {
// you can disable them globally if necessary (they are enabled by default)
viewTransition: false
}
})
And you can opt in/out granularly:
definePageMeta({ viewTransition: false }) ">
// ~/pages/index.vue
<script setup lang="ts">
definePageMeta({
viewTransition: false
})
script>
Finally, Nuxt will not apply View Transitions if the user's browser matches
prefers-reduced-motion: reduce
(#22292). You can set viewTransition: 'always'
; it will then be up to you to respect the user's preference.ποΈ Build-time route metadata
Vue Updates
It is particularly important to make sure that any unique key of your data is always resolvable to the same data. For example, if you are using useAsyncData to fetch data related to a particular page, you should provide a key that uniquely matches that data.β¦
It's now possible to access routing metadata defined in
Please, experiment with this and let us know how it works for you. We hope to improve performance and enable this by default in a future release so modules like
π¦ Bundler module resolution
With #24837, we are now opting in to the TypeScript
'Bundler' module resolution is recommended by Vue and by Vite, but unfortunately there are still many packages that do not have the correct entries in their
As part of this, we opened 85 PRs across the ecosystem to test switching the default, and identified and fixed some issues.
If you need to switch off this behaviour, you can do so. However, please consider raising an issue (feel free to tag me in it) in the library or module's repo so it can be resolved at source.
β Upgrading
As usual, our recommendation for upgrading is to run:
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.
-->
π Changelog
compare changes
π Enhancements
β nuxt:
β nuxt: Add experimental sharedPrerenderData option (#24894)
β schema: Default to
β nuxt: Warn if data fetch composables are used wrongly (#25071)
β nuxt: Add
β Experimental client-side Node.js compatibility (#25028)
β nuxt: Throw error if
β nuxt:
β nuxt: Allow controlling view transitions in page meta (#25264)
β nuxt: Slow down loading indicator when approaching 100% (#25119)
β nuxt: Experimentally extract route metadata at build time (#25210)
β nuxt:
π₯ Performance
β vite: Avoid
π©Ή Fixes
β nuxt: Disable View Transitions if
β nuxt: Add declaration file with correct node16 imports (#25266)
β nuxt: Allow omitting
β schema: Remove
β nuxt: Overwrite island payload instead of merging (#25299)
β vite: Pass
β nuxt: ...
definePageMeta
at build-time, allowing modules and hooks to modify and change these values (#25210).export default defineNuxtConfig({
experimental: {
scanPageMeta: true
}
})
Please, experiment with this and let us know how it works for you. We hope to improve performance and enable this by default in a future release so modules like
@nuxtjs/i18n
and others can provide a deeper integration with routing options set in definePageMeta
.π¦ Bundler module resolution
With #24837, we are now opting in to the TypeScript
bundler
resolution which should more closely resemble the actual way that we resolve subpath imports for modules in Nuxt projects.'Bundler' module resolution is recommended by Vue and by Vite, but unfortunately there are still many packages that do not have the correct entries in their
package.json
.As part of this, we opened 85 PRs across the ecosystem to test switching the default, and identified and fixed some issues.
If you need to switch off this behaviour, you can do so. However, please consider raising an issue (feel free to tag me in it) in the library or module's repo so it can be resolved at source.
export default defineNuxtConfig({
future: {
typescriptBundlerResolution: false
}
})
β Upgrading
As usual, our recommendation for upgrading is to run:
nuxi upgrade --force
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.
-->
π Changelog
compare changes
π Enhancements
β nuxt:
tryUseNuxtApp
composable (#25031)β nuxt: Add experimental sharedPrerenderData option (#24894)
β schema: Default to
bundler
module resolution (#24837)β nuxt: Warn if data fetch composables are used wrongly (#25071)
β nuxt: Add
pages:routerOptions
hook (#24922)β Experimental client-side Node.js compatibility (#25028)
β nuxt: Throw error if
setInterval
is used on server (#25259)β nuxt:
refreshCookie
+ experimental CookieStore support (#25198)β nuxt: Allow controlling view transitions in page meta (#25264)
β nuxt: Slow down loading indicator when approaching 100% (#25119)
β nuxt: Experimentally extract route metadata at build time (#25210)
β nuxt:
useId
composable (#23368)π₯ Performance
β vite: Avoid
endsWith
when checking for whitespace (#24746)π©Ή Fixes
β nuxt: Disable View Transitions if
prefers-reduced-motion
(#22292)β nuxt: Add declaration file with correct node16 imports (#25266)
β nuxt: Allow omitting
fallback
in island response (#25296)β schema: Remove
defineModel
option as it is now stable (#25306)β nuxt: Overwrite island payload instead of merging (#25299)
β vite: Pass
hidden
sourcemap values to vite (#25329)β nuxt: ...
This is fine.
I will try fix it. In my configuration this should create a post on telegra.ph by length limit.
Idk why this isn't work π€‘.
I will try fix it. In my configuration this should create a post on telegra.ph by length limit.
Idk why this isn't work π€‘.
π1
vue-i18n-next
v9.9.1
#vue_i18n #i18n #vue_i18n_next
What's Changed
π Bug Fixes
β fix: key-value style messages broken after merging (#1717) by @chojnicki in #1718
ποΈ Documentations
β chore(typo): update injection.md by @quentinmcq in #1716
β Update syntax.md by @hinogi in #1701
New Contributors
β @chojnicki made their first contribution in #1718
β @quentinmcq made their first contribution in #1716
β @hinogi made their first contribution in #1701
Full Changelog: v9.9.0...v9.9.1
v9.9.1
#vue_i18n #i18n #vue_i18n_next
What's Changed
π Bug Fixes
β fix: key-value style messages broken after merging (#1717) by @chojnicki in #1718
ποΈ Documentations
β chore(typo): update injection.md by @quentinmcq in #1716
β Update syntax.md by @hinogi in #1701
New Contributors
β @chojnicki made their first contribution in #1718
β @quentinmcq made their first contribution in #1716
β @hinogi made their first contribution in #1701
Full Changelog: v9.9.0...v9.9.1
Vuetify
v3.5.2
#vuetify
π§ Bug Fixes
β date: format dayOfMonth with NumberFormat instead of DateTimeFormat (d0136e0), closes #18093
β group: use index as value if not provided (#19119) (1a23d47), closes #19107
β VColorPicker: parse partial input in the current mode (8c01536), closes #18977
β VDataTable: use header height from density (f23bcb0), closes #18795
β VDatePicker: use start of month for month model (9eb82db), closes #19087 #19116
β VDatePicker: don't truncate day names in other locales (9ceade2), closes #19013
β VDatePicker: correct generic model type when multiple (c48c2a7)
β VForm: always update errors in slot (c0c28d1)
β VMenu: set aria-owns id on overlay element (916c9ef), closes #19054
β VOverlay: override scroll-behavior when restoring scroll position (2ddc9c5), closes #19109
β VWindow: increase pointer-event specificity (b560ead)
π¬ Code Refactoring
β fix CalendarProps types (adba173)
Other Commmits
β chore(release): publish v3.5.2 (0f5ba93)
v3.5.2
#vuetify
π§ Bug Fixes
β date: format dayOfMonth with NumberFormat instead of DateTimeFormat (d0136e0), closes #18093
β group: use index as value if not provided (#19119) (1a23d47), closes #19107
β VColorPicker: parse partial input in the current mode (8c01536), closes #18977
β VDataTable: use header height from density (f23bcb0), closes #18795
β VDatePicker: use start of month for month model (9eb82db), closes #19087 #19116
β VDatePicker: don't truncate day names in other locales (9ceade2), closes #19013
β VDatePicker: correct generic model type when multiple (c48c2a7)
β VForm: always update errors in slot (c0c28d1)
β VMenu: set aria-owns id on overlay element (916c9ef), closes #19054
β VOverlay: override scroll-behavior when restoring scroll position (2ddc9c5), closes #19109
β VWindow: increase pointer-event specificity (b560ead)
π¬ Code Refactoring
β fix CalendarProps types (adba173)
Other Commmits
β chore(release): publish v3.5.2 (0f5ba93)
Vue Updates
Vuetify v3.5.2 #vuetify π§ Bug Fixes β date: format dayOfMonth with NumberFormat instead of DateTimeFormat (d0136e0), closes #18093 β group: use index as value if not provided (#19119) (1a23d47), closes #19107 β VColorPicker: parse partial input in the currentβ¦
β chore(VSelectionControl/VLabel): update click implementation (3095220)
β docs(OneSubCard): update styling (79ae722)
β docs(OneSubscription): add billing management link (a7e07b7)
β docs(PinnedItems): sort pinned items before save (6da78af)
β docs(why-vuetify): update page title (05c3a23)
β docs(roadmap): update 2024 roadmap (dfbe631)
β test(VDatePicker): add range test (dd32fc6)
β docs(components/all): remove duplicated Bottom Sheet Component (#19082) (594b61c)
β docs(text-decoration): fix example format issue (#19075) (b9fa960)
β docs: update various page's emphasize status (6af93f8)
β docs(Banner): update display logic (2d70c07)
β docs(sass-variables): make example more clear (416a9a5)
β docs(VAppBar): add icon and title to usage example (e6ec41c), closes #18922 #18930
β docs(VDatePicker): remove range from props (3fad1e3)
β docs(roadmap): update roadmap (132dce2)
β docs(scrolling): add version alert (b64e53d)
β docs(OneSubCard): update styling (79ae722)
β docs(OneSubscription): add billing management link (a7e07b7)
β docs(PinnedItems): sort pinned items before save (6da78af)
β docs(why-vuetify): update page title (05c3a23)
β docs(roadmap): update 2024 roadmap (dfbe631)
β test(VDatePicker): add range test (dd32fc6)
β docs(components/all): remove duplicated Bottom Sheet Component (#19082) (594b61c)
β docs(text-decoration): fix example format issue (#19075) (b9fa960)
β docs: update various page's emphasize status (6af93f8)
β docs(Banner): update display logic (2d70c07)
β docs(sass-variables): make example more clear (416a9a5)
β docs(VAppBar): add icon and title to usage example (e6ec41c), closes #18922 #18930
β docs(VDatePicker): remove range from props (3fad1e3)
β docs(roadmap): update roadmap (132dce2)
β docs(scrolling): add version alert (b64e53d)
Vite
v5.1.0-beta.6
#vite
5.1.0-beta.6 (2024-02-01)
β feat: experimental Vite Runtime API (#12165) (8b3ab07), closes #12165
β fix: add ref() and unref() to chokidar.d.ts for typescript build to work (#15706) (6b45037), closes #15706
β perf: simplify explicit import mark in import analysis (#15724) (2805b2d), closes #15724
v5.1.0-beta.6
#vite
5.1.0-beta.6 (2024-02-01)
β feat: experimental Vite Runtime API (#12165) (8b3ab07), closes #12165
β fix: add ref() and unref() to chokidar.d.ts for typescript build to work (#15706) (6b45037), closes #15706
β perf: simplify explicit import mark in import analysis (#15724) (2805b2d), closes #15724
NuxtJS
v3.10.1
#nuxt3.10.1 is a regularly-scheduled patch release.
β Upgrading
As usual, our recommendation for upgrading is to run:
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the vue and unjs ecosystems.
π Changelog
compare changes
π₯ Performance
β nuxt: Clear route meta build cache when pages change (#25514)
π©Ή Fixes
β nuxt: Fix syntax error when serializing route meta (#25515)
β nuxt: Only request animation frame on client (#25569)
β schema: Correctly set value for app.viewTransition (#25581)
β nuxt: Correct return type of
β nuxt: Broadcast cookie change in correct format (#25598)
β nuxt: Generate typed route declarations when building (#25593)
β nuxt: Remove key from
β nuxt: Remove
β nuxt: Don't set default
v3.10.1
#nuxt3.10.1 is a regularly-scheduled patch release.
β Upgrading
As usual, our recommendation for upgrading is to run:
nuxi upgrade --force
This will refresh your lockfile as well, and ensures that you pull in updates from other dependencies that Nuxt relies on, particularly in the vue and unjs ecosystems.
π Changelog
compare changes
π₯ Performance
β nuxt: Clear route meta build cache when pages change (#25514)
π©Ή Fixes
β nuxt: Fix syntax error when serializing route meta (#25515)
β nuxt: Only request animation frame on client (#25569)
β schema: Correctly set value for app.viewTransition (#25581)
β nuxt: Correct return type of
refresh
functions (#25568)β nuxt: Broadcast cookie change in correct format (#25598)
β nuxt: Generate typed route declarations when building (#25593)
β nuxt: Remove key from
useId
type signature (#25614)β nuxt: Remove
$
from generated id in useId
(#25615)β nuxt: Don't set default
rel
for same-site external links (#25600)
Vue Updates
NuxtJS v3.10.1 #nuxt3.10.1 is a regularly-scheduled patch release. β
Upgrading As usual, our recommendation for upgrading is to run: nuxi upgrade --force This will refresh your lockfile as well, and ensures that you pull in updates from other dependenciesβ¦
β nuxt: Warn if
β nuxt: Fetch non-server rendered islands when hydrating (#25613)
β nuxt: Don't check page/layout usage when redirecting (#25628)
π Refactors
β nuxt: Improve
π Documentation
β Correct typo (#25523)
β Add and link to a section on Nuxt context (#23546)
β Explain how to set defaults in nuxt config (#25610)
π‘ Chore
β Use
β nuxt: Rename
π€ CI
β Fix playwright cache (#25527)
β Retry flaky test when running in Windows with Webpack (#25536)
β Retry flaky test when running in Windows with Webpack (#25543)
β Retry flaky test when using Webpack (#25550)
β Simplify label PR workflow (#25579)
β€οΈ Contributors
β Daniel Roe (@danielroe)
β Julien Huang (@huang-julien)
β Harlan Wilton (@harlan-zw)
β Bobbie Goede (@BobbieGoede)
β xjccc (@xjccc)
β Ryan Clements (@RyanClementsHax)
β Enkot (@enkot)
β Damian GΕowala (@DamianGlowala)
β Ted de Koning (@tdekoning)
β Troy Ciesco (@troyciesco)
β Michael Brevard (@GalacticHypernova)
β Arslan Ali (@warlock1996)
inheritAttrs: false
when using useId
(#25616)β nuxt: Fetch non-server rendered islands when hydrating (#25613)
β nuxt: Don't check page/layout usage when redirecting (#25628)
π Refactors
β nuxt: Improve
NuxtLink
types (#25599)π Documentation
β Correct typo (#25523)
β Add and link to a section on Nuxt context (#23546)
β Explain how to set defaults in nuxt config (#25610)
π‘ Chore
β Use
pathe
in internal tests (e33cec958)β nuxt: Rename
nuxt
-> nuxtApp
internally for consistency (c5d5932f5)π€ CI
β Fix playwright cache (#25527)
β Retry flaky test when running in Windows with Webpack (#25536)
β Retry flaky test when running in Windows with Webpack (#25543)
β Retry flaky test when using Webpack (#25550)
β Simplify label PR workflow (#25579)
β€οΈ Contributors
β Daniel Roe (@danielroe)
β Julien Huang (@huang-julien)
β Harlan Wilton (@harlan-zw)
β Bobbie Goede (@BobbieGoede)
β xjccc (@xjccc)
β Ryan Clements (@RyanClementsHax)
β Enkot (@enkot)
β Damian GΕowala (@DamianGlowala)
β Ted de Koning (@tdekoning)
β Troy Ciesco (@troyciesco)
β Michael Brevard (@GalacticHypernova)
β Arslan Ali (@warlock1996)
Vite
v5.1.0-beta.7
#vite
5.1.0-beta.7 (2024-02-07)
β fix: disable fs.cachedChecks for custom watch ignore patterns (#15828) (9070be3), closes #15828
β fix: judge next dirent cache type (#15787) (5fbeba3), closes #15787
β fix: scan entries when the root is in node_modules (#15746) (c3e83bb), closes #15746
β fix(config): improved warning when root path includes bad characters (#15761) (1c0dc3d), closes #15761
β docs: fix typos in CHANGELOG (#15825) (3ee4e7b), closes #15825
β perf: use transform cache by resolved id (#15785) (78d838a), closes #15785
β chore: release notes (#15777) (775bb50), closes #15777
v5.1.0-beta.7
#vite
5.1.0-beta.7 (2024-02-07)
β fix: disable fs.cachedChecks for custom watch ignore patterns (#15828) (9070be3), closes #15828
β fix: judge next dirent cache type (#15787) (5fbeba3), closes #15787
β fix: scan entries when the root is in node_modules (#15746) (c3e83bb), closes #15746
β fix(config): improved warning when root path includes bad characters (#15761) (1c0dc3d), closes #15761
β docs: fix typos in CHANGELOG (#15825) (3ee4e7b), closes #15825
β perf: use transform cache by resolved id (#15785) (78d838a), closes #15785
β chore: release notes (#15777) (775bb50), closes #15777
Vuetify
v3.5.3
#vuetify
π§ Bug Fixes
β VAvatar: provide component defaults to default slot (a765a6b)
β VCheckbox/VSwitch: incorrect default flex inherited from VInput (de501c3)
β VChip: prevent content div from taking activator target (e9a5a4a)
β VColorPicker: correct value gradient (d1251f5), closes #19187
β VListItemAction: adjust spacing when using the start/end props (1f63ca8)
β VOverlay: add missing opacity property (a27026f), closes #19182
π Reverts
β Revert "fix(VOverlay): don't render if disabled" (0b79317), closes #19144
Other Commmits
β chore(release): publish v3.5.3 (5db19eb)
β docs(upgrade-guide): add v-navigation-drawer section (b5ba4a5), closes #19162
β docs(one): fix re-sub after billing failure (d8c2943)
β docs(AvatarOption): add new images (46f1b0e)
β chore(PerkOptions): update displayed pricing (b0543e7)
β chore(README): update sponsors (0f6c173)
β chore(package): update @vuetify/one (29a8e11)
v3.5.3
#vuetify
π§ Bug Fixes
β VAvatar: provide component defaults to default slot (a765a6b)
β VCheckbox/VSwitch: incorrect default flex inherited from VInput (de501c3)
β VChip: prevent content div from taking activator target (e9a5a4a)
β VColorPicker: correct value gradient (d1251f5), closes #19187
β VListItemAction: adjust spacing when using the start/end props (1f63ca8)
β VOverlay: add missing opacity property (a27026f), closes #19182
π Reverts
β Revert "fix(VOverlay): don't render if disabled" (0b79317), closes #19144
Other Commmits
β chore(release): publish v3.5.3 (5db19eb)
β docs(upgrade-guide): add v-navigation-drawer section (b5ba4a5), closes #19162
β docs(one): fix re-sub after billing failure (d8c2943)
β docs(AvatarOption): add new images (46f1b0e)
β chore(PerkOptions): update displayed pricing (b0543e7)
β chore(README): update sponsors (0f6c173)
β chore(package): update @vuetify/one (29a8e11)
Vue 3
v3.4.16
#vue #vue3
3.4.16 (2024-02-08)
Bug Fixes
β compiler-core: handle same-name shorthand edge case for in-DOM templates (cb87b62), closes #10280
β compiler-core: support v-bind shorthand syntax for dynamic slot name (#10218) (91f058a), closes #10213
β deps: update compiler (#10269) (336bb65)
β hydration: fix SFC style v-bind hydration mismatch warnings (#10250) (f0b5f7e), closes #10215
β reactivity: avoid infinite recursion from side effects in computed getter (#10232) (0bced13), closes #10214
β reactivity: handle
β reactivity: skip non-extensible objects when using
β runtime-core: avoid inlining isShallow (#10238) (53eee72)
β runtime-core: support for nested calls to runWithContext (#10261) (75e02b5), closes #10260
β runtime-dom: ensure v-show respects display value set via v-bind (#10161) (9b19f09), closes #10151
v3.4.16
#vue #vue3
3.4.16 (2024-02-08)
Bug Fixes
β compiler-core: handle same-name shorthand edge case for in-DOM templates (cb87b62), closes #10280
β compiler-core: support v-bind shorthand syntax for dynamic slot name (#10218) (91f058a), closes #10213
β deps: update compiler (#10269) (336bb65)
β hydration: fix SFC style v-bind hydration mismatch warnings (#10250) (f0b5f7e), closes #10215
β reactivity: avoid infinite recursion from side effects in computed getter (#10232) (0bced13), closes #10214
β reactivity: handle
MaybeDirty
recurse (#10187) (6c7e0bd), closes #10185β reactivity: skip non-extensible objects when using
markRaw
(#10289) (2312184), closes #10288β runtime-core: avoid inlining isShallow (#10238) (53eee72)
β runtime-core: support for nested calls to runWithContext (#10261) (75e02b5), closes #10260
β runtime-dom: ensure v-show respects display value set via v-bind (#10161) (9b19f09), closes #10151
Vue Updates
Vue 3 v3.4.16 #vue #vue3 3.4.16 (2024-02-08) Bug Fixes β compiler-core: handle same-name shorthand edge case for in-DOM templates (cb87b62), closes #10280 β compiler-core: support v-bind shorthand syntax for dynamic slot name (#10218) (91f058a), closesβ¦
Vite
v5.1.0
#vite
5.1.0 (2024-02-08)
β chore: revert #15746 (#15839) (ed875f8), closes #15746 #15839
β fix: pass
β fix(deps): update all non-major dependencies (#15803) (e0a6ef2), closes #15803
β refactor: remove
v5.1.0
#vite
5.1.0 (2024-02-08)
β chore: revert #15746 (#15839) (ed875f8), closes #15746 #15839
β fix: pass
customLogger
to loadConfigFromFile
(fix #15824) (#15831) (55a3427), closes #15824 #15831β fix(deps): update all non-major dependencies (#15803) (e0a6ef2), closes #15803
β refactor: remove
vite build --force
(#15837) (f1a4242), closes #15837Quasar
@quasar/app-vite-v2.0.0-beta.1
#quasar
Important! There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section in the docs. Please read it top to bottom before proceeding with the upgrade.
Notable breaking changes
β Minimum Node.js version is now 18 (mainly due to Vite 5)
β We have shifted towards an ESM style for the whole Quasar project folder, so many default project files now require ESM code (although using
β The "test" cmd was removed due to latest updates for @quasar/testing-* packages. See here
β The "clean" cmd has been re-designed. Type "quasar clean -h" in your upgraded Quasar project folder for more info.
@quasar/app-vite-v2.0.0-beta.1
#quasar
Important! There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section in the docs. Please read it top to bottom before proceeding with the upgrade.
Notable breaking changes
β Minimum Node.js version is now 18 (mainly due to Vite 5)
β We have shifted towards an ESM style for the whole Quasar project folder, so many default project files now require ESM code (although using
.cjs
as an extension for these files is supported, but you will most likely need to rename the extension should you not wish to change anything). One example is the /quasar.config.js
file which now it's assumed to be ESM too (so change from .js
to .cjs
should you still want a CommonJs file).β The "test" cmd was removed due to latest updates for @quasar/testing-* packages. See here
β The "clean" cmd has been re-designed. Type "quasar clean -h" in your upgraded Quasar project folder for more info.
Vue Updates
Quasar @quasar/app-vite-v2.0.0-beta.1 #quasar Important! There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section in the docs. Please read it top to bottom before proceeding with the upgrade. Notable breaking changes β Minimum Node.jsβ¦
β Typescript detection is based on the quasar.config file being in TS form (quasar.config.ts) and tsconfig.json file presence.
β feat+refactor(app-vite): ability to run multiple modes + dev/build simultaneously (huge effort!)
β SSR and Electron modes now build in ESM format.
β We will detail more breaking changes for each of the Quasar modes in the docs. There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section.
Highlights on what's new
Some of the work below has already been backported to the old @quasar/app-vite v1, but posting here for reader's awareness.
β feat(app-vite): upgrade to Vite 5
β feat(app-vite): ability to run multiple quasar dev/build commands simultaneously (example: can run "quasar dev -m capacitor" and "quasar dev -m ssr" and "quasar dev -m capacitor -T ios" simultaneously)
β feat(app-vite): Better TS typings overall
β refactor(app-vite): port CLI to ESM format (major effort! especially to support Vite 5 and SSR)
β feat(app-vite): support for quasar.config file in multiple formats (.js, .mjs, .ts, .cjs)
β feat(app-vite): Improve quasarConfOptions, generate types for it, improve docs (fix: #14069) (#15945)
β feat(app-vite): reload app if one of the imports from quasar.config file changes
β feat(app-vite): TS detection should keep account of quasar.config file format too (quasar.config.ts)
β feat(app-vite): support for SSR development with HTTPS
β feat(app-vite): env dotfiles support #15303
β feat(app-vite): New quasar.config file props: build > envFolder (string) and envFiles (string[])
β feat(app-vite): reopen browser (if configured so) when changing app url through quasar.config file
β feat&perf(app-vite): faster & more accurate algorithm for determining node package manager to use
β feat(app-vite): upgrade deps
β feat(app-vite): remove workaround for bug in Electron 6-8 in cli templates (#15845)
β feat(app-vite): remove bundleWebRuntime config for Capacitor v5+
β feat(app-vite): use workbox v7 by default
β feat(app-vite): quasar.config > pwa > injectPwaMetaTags can now also be a function: (({ pwaManifest, publicPath }) => string);
β feat(app-vite): quasar.config > build > htmlMinifyOptions
β feat(app-vite): lookup open port for vue devtools when being used; ability to run multiple cli instances with vue devtools
β perf(app-vite): SSR render-template in specific esm or cjs form, according to host project; interpolation by variable
β perf(app-vite): only verify quasar.conf server address for "dev" cmd
β feat(app-vite): pick new electron inspect port for each instance
β feat(app-vite): Electron - can now load multiple preload scripts
β refactor(app-vite): AE support - better and more efficient algorithms
β feat(app-vite): AE support for ESM format
β feat(app-vite): AE support for TS format (through a build step)
β feat(app-vite): AE API new methods -> hasTypescript() / hasLint() / getStorePackageName() / getNodePackagerName()
β feat(app-vite): AE -> Prompts API (and ability for prompts default exported fn to be async)
β refactor(app-vite): the "clean" cmd now works different, since the CLI can be run in multiple instances on the same project folder (multiple modes on dev or build)
β feat(app-vite): Support for Bun as package manager #16335
β feat(app-vite): for default /src-ssr template -> prod ssr -> on error, print err stack if built with debugging enabled
Env dotfiles support
Expanding a bit on the env dotfiles support. These files will be detected and used (the order matters):
β feat+refactor(app-vite): ability to run multiple modes + dev/build simultaneously (huge effort!)
β SSR and Electron modes now build in ESM format.
β We will detail more breaking changes for each of the Quasar modes in the docs. There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section.
Highlights on what's new
Some of the work below has already been backported to the old @quasar/app-vite v1, but posting here for reader's awareness.
β feat(app-vite): upgrade to Vite 5
β feat(app-vite): ability to run multiple quasar dev/build commands simultaneously (example: can run "quasar dev -m capacitor" and "quasar dev -m ssr" and "quasar dev -m capacitor -T ios" simultaneously)
β feat(app-vite): Better TS typings overall
β refactor(app-vite): port CLI to ESM format (major effort! especially to support Vite 5 and SSR)
β feat(app-vite): support for quasar.config file in multiple formats (.js, .mjs, .ts, .cjs)
β feat(app-vite): Improve quasarConfOptions, generate types for it, improve docs (fix: #14069) (#15945)
β feat(app-vite): reload app if one of the imports from quasar.config file changes
β feat(app-vite): TS detection should keep account of quasar.config file format too (quasar.config.ts)
β feat(app-vite): support for SSR development with HTTPS
β feat(app-vite): env dotfiles support #15303
β feat(app-vite): New quasar.config file props: build > envFolder (string) and envFiles (string[])
β feat(app-vite): reopen browser (if configured so) when changing app url through quasar.config file
β feat&perf(app-vite): faster & more accurate algorithm for determining node package manager to use
β feat(app-vite): upgrade deps
β feat(app-vite): remove workaround for bug in Electron 6-8 in cli templates (#15845)
β feat(app-vite): remove bundleWebRuntime config for Capacitor v5+
β feat(app-vite): use workbox v7 by default
β feat(app-vite): quasar.config > pwa > injectPwaMetaTags can now also be a function: (({ pwaManifest, publicPath }) => string);
β feat(app-vite): quasar.config > build > htmlMinifyOptions
β feat(app-vite): lookup open port for vue devtools when being used; ability to run multiple cli instances with vue devtools
β perf(app-vite): SSR render-template in specific esm or cjs form, according to host project; interpolation by variable
β perf(app-vite): only verify quasar.conf server address for "dev" cmd
β feat(app-vite): pick new electron inspect port for each instance
β feat(app-vite): Electron - can now load multiple preload scripts
β refactor(app-vite): AE support - better and more efficient algorithms
β feat(app-vite): AE support for ESM format
β feat(app-vite): AE support for TS format (through a build step)
β feat(app-vite): AE API new methods -> hasTypescript() / hasLint() / getStorePackageName() / getNodePackagerName()
β feat(app-vite): AE -> Prompts API (and ability for prompts default exported fn to be async)
β refactor(app-vite): the "clean" cmd now works different, since the CLI can be run in multiple instances on the same project folder (multiple modes on dev or build)
β feat(app-vite): Support for Bun as package manager #16335
β feat(app-vite): for default /src-ssr template -> prod ssr -> on error, print err stack if built with debugging enabled
Env dotfiles support
Expanding a bit on the env dotfiles support. These files will be detected and used (the order matters):
.env # loaded in all cases
.env.local # loaded in all cases, ignored by git
.env.[dev|prod] # loaded for dev or prod only
.env.local.[dev|prod] # loaded for dev or prod only, ignored by git
.env.[quasarMode] # loaded for specific Quasar CLI mode only
.env.local.[quasarMode] # loaded for specific Quasar CLI mode only, ignored by git
.env.[dev|prod].[quasarMode] # loaded for specific Quasar CLI mode and dev|prod only
Vue Updates
β Typescript detection is based on the quasar.config file being in TS form (quasar.config.ts) and tsconfig.json file presence. β feat+refactor(app-vite): ability to run multiple modes + dev/build simultaneously (huge effort!) β SSR and Electron modes now buildβ¦
.env.local.[dev|prod].[quasarMode] # loaded for specific Quasar CLI mode and dev|prod only, ignored by git
...where "ignored by git" assumes a default project folder created after releasing this package, otherwise add
.env.local*
to your /.gitignore
file.You can also configure the files above to be picked up from a different folder or even add more files to the list:
// quasar.config file
build: {
envFolder: '../' // absolute or relative path to root project folder
envFiles: [
// Path strings to your custom files --- absolute or relative path to root project folder
]
}
Donations
Quasar Framework is an open-source MIT-licensed project made possible due to the generous contributions by sponsors and backers. If you are interested in supporting this project, please consider the following:
β Becoming a sponsor on Github
β One-off donation via PayPal
Quasar
@quasar/app-webpack-v4.0.0-beta.1
#quasar
Important! There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section in the docs. Please read it top to bottom before proceeding with the upgrade.
Notable breaking changes
β Minimum Node.js version is now 16
β We have shifted towards an ESM style for the whole Quasar project folder, so many default project files now require ESM code (although using
β Ported and adapted the superior devserver implementation from @quasar/app-vite for all Quasar modes. The benefits are huge.
@quasar/app-webpack-v4.0.0-beta.1
#quasar
Important! There is an "Upgrade guide" page under the "Quasar CLI with Vite" menu section in the docs. Please read it top to bottom before proceeding with the upgrade.
Notable breaking changes
β Minimum Node.js version is now 16
β We have shifted towards an ESM style for the whole Quasar project folder, so many default project files now require ESM code (although using
.cjs
as an extension for these files is supported, but you will most likely need to rename the extension should you not wish to change anything). One example is the /quasar.config.js
file which now it's assumed to be ESM too (so change from .js
to .cjs
should you still want a CommonJs file).β Ported and adapted the superior devserver implementation from @quasar/app-vite for all Quasar modes. The benefits are huge.