Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump nuxt from 3.1.1 to 3.3.1 #1844

Merged
merged 7 commits into from
Mar 21, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 19, 2023

Bumps nuxt from 3.1.1 to 3.3.1.

Release notes

Sourced from nuxt's releases.

v3.3.1

3.3.0 is a minor (feature) release with lots of new features to play with. 3.3.1 was a swiftly following release to patch an issue with nuxi on Windows.

👀 Highlights

✨ Local module development DX

We've landed a raft of changes to enable local modules and improve DX. We now auto-scan your ~/modules folder and register top level files there as modules in your project (nuxt/nuxt#19394). When these files are changed, we'll automatically restart the nuxt server.

  export default defineNuxtConfig({
    modules: [
      '@nuxtjs/tailwindcss',
-     '~/modules/purge-comments'
    ]
  })

We also now expose nuxt/kit for easy access to kit composables in your local project without having to install @nuxt/kit (nuxt/nuxt#19422).

♻️ Restarting Nuxt

You can add files to the watch array to automatically restart the server (nuxt/nuxt#19530). This is likely to be particularly useful for module authors. You can also trigger a restart of the Nuxt server with the new restart hook (nuxt/nuxt#19084). We also landed a couple of fixes on restarting the Nuxt server which should improve your experience when developing.

🔥 Performance improvements

We've increased static asset maxAge to 1yr as a matter of best practice (nuxt/nuxt#19335), and support tree-shaking more of your build (nuxt/nuxt#19508). We also now support preloading <NuxtLink>s with a route in object-syntax (nuxt/nuxt#19120).

CleanShot 2023-03-14 at 12 19 50

We also track how long it takes each module you use to perform its setup, and warn if it takes too long. You can see all these values by running your dev server with DEBUG=1

You can also opt-in to some of Nuxt's internal optimisations by configuring composables to be treeshaken in a particular environment (nuxt/nuxt#19383), or to have magic keys automatically injected (nuxt/nuxt#19490) - primarily useful for module authors.

🐛 Error handling

We now handle chunk errors by default (nuxt/nuxt#19086), meaning if your site updates with a redeploy, we automatically handle reloading it on navigation. You can disable this and handle it yourself with the new reloadNuxtApp composable. You can also set experimental.restoreState to preserve some of your app state across reloads.

We also have a new experimental error handling component: <NuxtClientFallback> (nuxt/framework#8216) which can capture errors rendering on server, replace them with fallback content, and granularly trigger rerendering the part with an error on the client. This can be enabled with experimental.clientFallback - feedback very welcome!

⚡️ Head improvements

We've migrated to use unhead directly (nuxt/nuxt#19519) - and automatically tree-shake server-only head composables like useServerHead from your client build (nuxt/nuxt#19576), meaning you can have great SEO without needing to include meta tag logic that's relevant only for crawlers in your client build.

There's also a new useHeadSafe composable that handles santising untrusted user input (nuxt/nuxt#19548).

🪵 Better logging in browser DevTools

Working with the Chrome DevTools team, we've landed a couple of features across the unjs + Nuxt ecosystem meaning we now have first-class support for hiding Nuxt internal stack traces from logs in your (Chromium-based, for now) browser (nuxt/nuxt#19243). We also landed a couple of improvements with stacktraces involving Nuxt hooks (unjs/hookable#69 and unjs/hookable#68) implementing console.createTask.

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/nuxt-3.3.1 branch 28 times, most recently from b2f9d77 to 23c9b7a Compare March 20, 2023 13:26
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/nuxt-3.3.1 branch 3 times, most recently from 787c5a3 to 830b8aa Compare March 20, 2023 14:17
Bumps [nuxt](https://github.com/nuxt/nuxt) from 3.1.1 to 3.3.1.
- [Release notes](https://github.com/nuxt/nuxt/releases)
- [Commits](nuxt/nuxt@3.1.1...v3.3.1)

---
updated-dependencies:
- dependency-name: nuxt
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/nuxt-3.3.1 branch from 830b8aa to 40a1c73 Compare March 20, 2023 14:36
@tobiasdiez
Copy link
Member

2023-03-20T16:28:45.113 [Error] Executed 'Functions.functions' (Failed, Id=74375bcc-69c9-4a81-8b7e-60aa9281b699, Duration=1ms)Result: FailureException: Worker was unable to load function functions: 'Cannot find package 'uuid' imported from C:\home\site\wwwroot\functions\index.mjs'Stack: Error [ERR_MODULE_NOT_FOUND]: Worker was unable to load function functions: 'Cannot find package 'uuid' imported from C:\home\site\wwwroot\functions\index.mjs'at new NodeError (node:internal/errors:393:5)at packageResolve (node:internal/modules/esm/resolve:860:9)at moduleResolve (node:internal/modules/esm/resolve:909:20)at defaultResolve (node:internal/modules/esm/resolve:1124:11)at nextResolve (node:internal/modules/esm/loader:163:28)at ESMLoader.resolve (node:internal/modules/esm/loader:841:30)at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18)at ModuleWrap. (node:internal/modules/esm/module_job:76:40)at link (node:internal/modules/esm/module_job:75:36)

@tobiasdiez tobiasdiez merged commit ce32cbc into main Mar 21, 2023
@tobiasdiez tobiasdiez deleted the dependabot/npm_and_yarn/nuxt-3.3.1 branch March 21, 2023 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant