Skip to content

Bump nuxt from 2.4.5 to 2.6.1 in /webapp

Hannes Heine requested to merge pr416head into pr416base

Created by: Tirokk

dependabot-preview[bot] Authored by dependabot-preview[bot] Merged


Bumps nuxt from 2.4.5 to 2.6.1.

Release notes

Sourced from nuxt's releases.

v2.6.0

Migration Guide

This version is addressing most of the problems of 2.5 and is without any breaking changes. For most of the users, a normal version upgrade would be enough. However, reading this guide can help to have a smooth upgrade.

General Tips

  • Using yarn as the package manager is more preferred as Nuxt is internally being tested against yarn
  • Before upgrade ensure to remove yarn.lock, package-lock.json and node_modules
  • After full install and testing, also consider upgrading other dependencies. The yarn outdated command can be used.

Missing App Dependencies

Because of how package managers (yarn, npm) work, a wrong version of a dependency from one of the other dependencies may be hoisted into node_modules. Nuxt is strict about this and provides instructions for dependency resolution so please follow it.

The well-known problem is with firebase package that requires to manually install node-fetch dependency in your project.

Core-js

Since core-js@2 and core-js@3 are both supported from babel 7.4.0, Starting from 2.6 Nuxt supports both versions (#5411). It is highly advised to stick with 2 (default) unless having a special dependency that needs 3. (Instructions for core-js@2 are not required but recommended)

core-js@2

  • yarn: yarn add -D core-js@2 @babel/runtime-corejs2
  • npm: npm i -D core-js@2 @babel/runtime-corejs2

core-js@3

  • yarn: yarn add -D core-js@3 @babel/runtime-corejs3
  • npm: npm i -D core-js@3 @babel/runtime-corejs3

Edit nuxt.config.js:

export default {
  build: {
    babel: {
      presets({ isServer }) {
        return [
          [
            require.resolve('@nuxt/babel-preset-app'),
            // require.resolve('@nuxt/babel-preset-app-edge'), // For nuxt-edge users
            {
              targets: isServer ? { node: '10' } : { ie: '11' },
              corejs: { version: 3 }
            }
          ]
        ]
      }
    }
</tr></table> ... (truncated)
Changelog

Sourced from nuxt's changelog.

2.6.1 (2019-04-04)

Bug Fixes

2.6.0 (2019-04-04)

Bug Fixes

  • revert node-externals disabling in dev mode (#5452) (6ce99d2)
  • webpack: prefer main over module field for server config (#5446) (e155ea4)
  • disable node-externals for dev mode (#5414) (a5a1657)
  • not override externals set by build.extend (#5444) (1ae4333)
  • build: disable loading babel.config.js by default (#5365) (64fa424)
  • builder: await for renderer to load resources (#5341) (caf5198)
  • cli: catch all possible errors thrown from proper-filelock (#5347) (39bbe46)
  • renderer: retry render if renderer is in loading or created state (#5417) (8b99695)
  • vue-app: prevent mounting page twice on redirect (#5361) (2d73e8a)
  • vue-renderer: add the csp hash if unsafe-inline hasn't been specified (#5387) (97db6a4)
  • add type definition for configuring forkTsChecker (2c1444d)
  • fail in case of missing core-js dependency (#5342) (439b914)
  • memory leak in dev mode (#5399) (04ddcac)
  • SyntaxError Unexpected token export in importing babel runtime helper (#5401) (3b85dd9)
  • vue-app: decode uri in getlocation (#5337) (77dcfe6)

Features

  • babel-preset-app: support specifying core-js version (#5411) (159123f)
  • cli: add --quiet option to nuxt generate command (#5357) (91f4eb0)
  • cli: add internal _generate and _build options (#5434) (516aea3)
  • typescript: detect typescript based on tsconfig.json (#5412) (6ffc5c5)
  • vue-renderer: add csp meta tags (#5354) (b978a37)

Reverts

  • core: call ready to prevent breaking changes (#5413) (001ba77)
... (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 ignore this [patch|minor|major] version will close this PR and stop Dependabot creating any more for this minor/major 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 use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

Merge request reports