Closed renovate[bot] closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
nuxtjs-woocommerce | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Mar 17, 2024 9:49am |
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code
This PR contains the following updates:
^3.10.3
->^3.11.0
Release Notes
nuxt/nuxt (nuxt)
### [`v3.11.0`](https://togithub.com/nuxt/nuxt/releases/tag/v3.11.0) [Compare Source](https://togithub.com/nuxt/nuxt/compare/v3.10.3...v3.11.0) #### 👀 Highlights This is possibly the last minor release before Nuxt v4, and so we've packed it full of features and improvements we hope will delight you! ✨ ##### 🪵 Better logging When developing a Nuxt application and using `console.log` in your application, you may have noticed that these logs are not displayed in your browser console when refreshing the page (during server-side rendering). This can be frustrating, as it makes it difficult to debug your application. This is now a thing of the past! Now, when you have server logs associated with a request, they will be bundled up and passed to the client and displayed in your browser console. [Asynchronous context](https://nodejs.org/docs/latest-v20.x/api/async_context.html) is used to track and associate these logs with the request that triggered them. ([#25936](https://togithub.com/nuxt/nuxt/pull/25936)). For example, this code: ```vue [pages/index.vue] ``` will now log to your browser console when you refresh the page: ```bash Log from index page [ssr] Log inside useAsyncData at pages/index.vue ``` 👉 We also plan to support streaming of subsequent logs to the Nuxt DevTools in future. We've also added a `dev:ssr-logs` hook (both in Nuxt and Nitro) which is called on server and client, allowing you to handle them yourself if you want to. If you encounter any issues with this, it is possible to disable them - or prevent them from logging to your browser console. ```ts [nuxt.config.ts] export default defineNuxtConfig({ features: { devLogs: false // or 'silent' to allow you to handle yourself with `dev:ssr-logs` hook }, }) ``` ##### 🎨 Preview mode A new `usePreviewMode` composable aims to make it simple to use preview mode in your Nuxt app. ```ts [plugins/test.client.ts] const { enabled, state } = usePreviewMode() ``` When preview mode is enabled, all your data fetching composables, like `useAsyncData` and `useFetch` will rerun, meaning any cached data in the payload will be bypassed. [Read more in the docs](https://nuxt.com/docs/api/composables/use-preview-mode). ##### 💰 Cache-busting payloads We now automatically cache-bust your payloads if you haven't disabled Nuxt's app manifest, meaning you shouldn't be stuck with outdated data after a deployment. ##### 👮♂️ Middleware `routeRules` It's now possible to define middleware for page paths within the Vue app part of your application (that is, not your Nitro routes) ([#25841](https://togithub.com/nuxt/nuxt/pull/25841)). ```ts [nuxt.config.ts] export default defineNuxtConfig({ routeRules: { '/admin/**': { // or appMiddleware: 'auth' appMiddleware: ['auth'] }, '/admin/login': { // You can 'turn off' middleware that would otherwise run for a page appMiddleware: { auth: false } }, }, }) ``` #### ⌫ New `clear` data fetching utility Now, `useAsyncData` and `useFetch` expose a `clear` utility. This is a function that can be used to set `data` to undefined, set `error` to `null`, set `pending` to `false`, set `status` to `idle`, and mark any currently pending requests as cancelled. ([#26259](https://togithub.com/nuxt/nuxt/pull/26259)) ```vue ``` ##### 🕳️ New `#teleports` target Nuxt now includes a new `` element in your app within your `` tag. It supports server-side teleports, meaning you can do this safely on the server: ```vueConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.