Open greenkeeper[bot] opened 5 years ago
dependency
nuxt-start was updated from 2.4.0
to 2.4.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
dependency
nuxt-start was updated from 2.4.1
to 2.4.2
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
dependency
nuxt-start was updated from 2.4.2
to 2.4.3
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
terser-webpack-plugin
to ^1.2.2
.webpack
to ^4.29.2
serializeFunction
for external imports (#4916)dependency
nuxt-start was updated from 2.4.3
to 2.4.5
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
v2.4.5 (2019-02-26)
asyncData
memory leak on client-side (#4966) (4086800)getNuxtChildComponents
method (#4969) (dbf7099)dependency
nuxt-start was updated from 2.5.0
to 2.5.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
dependency
nuxt-start was updated from 2.5.1
to 2.6.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
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.
yarn.lock
, package-lock.json
and node_modules
yarn outdated
command can be used.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.
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 add -D core-js@2 @babel/runtime-corejs2
npm i -D core-js@2 @babel/runtime-corejs2
core-js@3
yarn add -D core-js@3 @babel/runtime-corejs3
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 }
}
]
]
}
}
}
}
Nuxt 2.5 users may only require to add ts-node
to the dependencies
Beta Testers : Replace
nuxt
bynuxt-edge
, and@nuxt/typescript
by@nuxt/typescript-edge
in the following instructions.
nuxt-ts
dependency (2.4 users only)
yarn remove nuxt-ts
npm remove nuxt-ts
nuxt
and ts-node
to dependencies
:
yarn add nuxt ts-node
npm i nuxt ts-node
@nuxt/typescript
to devDependencies
:
yarn add -D @nuxt/typescript
npm i -D @nuxt/typescript
tsconfig.json
file. Nuxt will automatically generate it with defaults at first run, then you can edit it to fit your needs--quiet
option to nuxt generate
command (#5357) (Franck Abgrall) (91f4eb0)tsconfig.json
(#5412) (Pooya Parsa) (6ffc5c5)babel.config.js
by default (#5365) (Xin Du (Clark)) (64fa424)getlocation
(#5337) (Johan Roxendal) (77dcfe6)unsafe-inline
hasn't been specified (#5387) (Sam Bowler) (97db6a4)dependency
nuxt-start was updated from 2.6.0
to 2.6.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
dependency
nuxt-start was updated from 2.6.1
to 2.6.2
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
nuxt.config.js
changes and watch for all imported files (#5500)tsconfig.json
but do not use typescript (#5478)nuxt dev
(#5514)modulepreload
for modern mode when using spa generate (#5489)@nuxtjs/style-resources
package (#5499)router.base
support for banner url and loading screen (#5470) (nuxt/loading-screen#8)vuex-router-sync
(nuxt/devalue#8) (vuejs/vuex-router-sync#89)dependency
nuxt-start was updated from 2.6.2
to 2.6.3
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
dependency
nuxt-start was updated from 2.6.3
to 2.7.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
We all know the console.log
debugging method, but when working with universal applications, you have to remember that sometimes, your logs are in your terminal and not in your browser console.
This can be really annoying when developing a Nuxt.js application, starting with this version and running nuxt dev
, the ssr logs are now reported to your browser console:
store/
creation Nuxt.js now detects when you created a store/
directory and will reload himself auto-magically so you don't have to restart it anymore.
PS: We also improved the serverMiddleware
watch to restart Nuxt.js and clean their cache
watch:restart
after watch:fileChanged
hook (#5620)watchQuery
option in routerViewKey
(#5516)spa:templateParams
hook (#5619)HardSourcePlugin
(#5653)serverMiddleware
paths (#5681)transition
to pageTransition
and deprecate it (#5558)babel.presets
and babel envName
(#5637)core-js@3
example in the readme (#5633)Only for typescript users, Nuxt.js v2.7 dropped support for node < 8.6 relate to ts-loader v6
context.app
type (#5701)extendRoutes
method type (#5700)ts-node
to register twice (#5699)dependency
nuxt-start was updated from 2.7.0
to 2.7.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
style
property when resolving (jsless/postcss-import-resolver#2)dependency
nuxt-start was updated from 2.7.1
to 2.8.0
.Your tests are still failing with this version. Compare changes
pages/
creation when default page displayedvue-renderer
server
builder
generator
types
babel.presets
vue-app
utils
serializeFunction
edge casevue-renderer
core
require.resolve
instead of Module
internalsbuilder
nuxtOptions
vue-app
general
auth-jwt
typescript
ci
general
general
dependency
nuxt-start was updated from 2.8.0
to 2.8.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
vue-renderer
vue-app
console.log
cli
typescript
dependency
nuxt-start was updated from 2.8.1
to 2.9.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
8.9.0
vue-meta
upgraded to 2.0.0. Please refer to the changelog to review notable changes.scrollBehavior
option is deprecated in favor of app/router.scrollBehavior.js
(#6055)devModules
option is deprecated in favor of buildModules
(#6203)general
renderer
nomodule
scripts in safari 10cli
nuxt
& nuxt-edge
being installedvue-app
vue-renderer
webpack
cli
server
loadingTimeout
and other arguments to renderAndGetWindow
webpack
build.transpile
vue-app
$nuxt.refresh
app/router.scrollBehavior.js
and deprecate scrollBehavior
<client-only
> alias for <no-ssr>
$nuxt.refresh()
method or refresh the actual page asyncData
and fetch
watchQuery
vue-renderer
typescript
config
devModules
to buildModules
babel-preset-app
babel-plugin-dynamic-import-node
webpack
general
general
babel-preset-app
dependency
nuxt-start was updated from 2.9.0
to 2.9.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
vue-app
loading-screen
Content-Type
for index pageCoffeeScript
additionalExtensions
dependency
nuxt-start was updated from 2.9.1
to 2.9.2
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
general
builder
server
https: null
as https: undefined
nuxt-start
vue-client-only
dependencyvue-app
config
core
dependency
nuxt-start was updated from 2.9.2
to 2.10.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
loading-screen
. No more endless loops (nuxt/loading-screen#44) and show fatal errors (nuxt/loading-screen#45) for the initial buildcore
vue-app
webpack
cli
babel-preset-app
vue-renderer
options.head
config
server.timing
is enabledconfig, vue-app
config
and vue-app
cli, config
cli.bannerColor
optionconfig
serverMiddleware
as a simple key/value objectbuilder
cli
cli:buildError
hookwebpack
server
etag
hash functionvue-app
general
vue-meta
options by userutils
builder, router
cli
builder
build.createRoutes
to allow async functions inside itbabel-preset-app
with-sockets
general
dependency
nuxt-start was updated from 2.10.0
to 2.10.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
vue-app, webpack
utils
router.trailingSlash
is false
generator
webpack
chunkhash
and contenthash
not work with extractCSS
cli
nuxt build
when pages should be generatedreadme
vue-meta
: Upgraded to v2.3
which fixes duplicated tags in SPA modedependency
nuxt-start was updated from 2.10.2
to 2.11.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
utils
vue-app
general
webpack
config
unsafeInlineCompatibility
namevue-app
vue-router
to 3.1.x
general
vue-renderer
config
ignoreOptions
for node-ignore
server
webpack
contenthash
with-sockets
general
docs
ci
github
general
dependency
nuxt-start was updated from 2.11.0
to 2.12.0
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
general
wepack
vue-app
cli
nuxt.config
exports a functionbuilder
general
generator
cli
vue-app
core
vue-renderer
core
render:context
and render:routeContext
hooks was not being calledbabel-preset-app
vue-app
webpack
URL
and URLSearchParams
general
utils
cached-components
general
dependency
nuxt-start was updated from 2.12.0
to 2.12.1
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
vue-app
builder
readme
examples
postcss.config.js
dependency
nuxt-start was updated from 2.12.1
to 2.12.2
.Your tests for group default are passing again with this update. Explicitly upgrade default to this version π
The dependency nuxt-start was updated from
2.3.4
to2.4.0
.π¨ View failing branch.
This version is covered by your current version range and after updating it in your project the build failed.
nuxt-start is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
Status Details
- β **ci/circleci: test:** Your tests failed on CircleCI ([Details](https://circleci.com/gh/likecoin/likecoin-button/707?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link)).Release Notes for v2.4.0
Important newsπ
New core team memberπ€
We are really proud to announce Kevin Marrec (@kevinmarrec) as a new core team member of Nuxt.js. He is Frenchπ«π· and responsible for the TypeScript integration π
Official Consultingβ
We now offer official support & consulting from the core team. We partnered with Otechie for the process and already did some beta-tests with selected companies.
Are you interested or curious?π
Learn more on https://otechie.com/nuxt
RFC Processπ
We invite you to take a look at our nuxt/rfcs repository where we discuss the future of Nuxt and its vision.
Here are some interesting proposals if you want to learn more about the upcoming changes of Nuxt:
config/
directory and autocompleteRelease Planπ’
Starting with this release, Nuxt will adhere to a formalized release plan (as good as possible). Also, an end of life for older major versions is defined within RELEASE_PLAN.md.
Quick summary:
We strongly invite you to read the RELEASE_PLAN.md for further details.
Thank youβ€οΈ
We want to specially thanks:
New Featuresβ¨
Speaking of TypeScript...
In order to run Nuxt with TypeScript, we created a new distribution, called nuxt-ts (we also have nuxt-ts-edge).β€οΈ
We want to thank @hmsk for his donation of the package name on npm
You can explore Nuxt TypeScript example or play with it directly in our Nuxt TS CodeSandBox.
For a more advanced example, you can look at the HackerNews-TS repo or play with it on CodeSandBox, made by @husayt & @kevinmarrec.
This work has been made by @kevinmarrec with the help of @pi0 & @Atinux.
Smart prefetchingβ‘οΈ
Nuxt.js will automagically prefetch the code-splitted pages linked with
<nuxt-link>
when visible in the viewport by default. This hugely improves the end user performances, inspired by quicklink.Demos are online and we recommend you to try it out to feel the difference:
Bonus: we added
$nuxt.isOnline
and$nuxt.isOffline
which is reactive, so you can use it directly inside your components (see this example).You can learn more about this feature in the associated PR #4574 and in the documentation.
HMR & best practices forπ
store/
This feature has been implemented by @manniL & @Atinux on PRs #4589, #4582 and #4791
Autocomplete for VS Code (via. Vetur extension)β
If you are using VS Code, with this version, you will now have autocomplete for Nuxt.js components:
This feature has been implemented by @octref & @Atinux on PR #4524
Port taken? Nuxt got your back!πͺ
If Nuxt wants to listen on a port which is already used, it will warn you in development and listen to a free port instead:
In production it will throw an error instead to avoid unwanted behavior:
This feature has been implemented by @ricardogobbosouza on PR #4428 with the help of @pi0 and @manniL.
Suggest installing missing dependencies or mismatchesπ―
Nuxt requires all peer like dependencies as a dependency for easier usage. Sometimes this causes unwanted behaviors when users explicitly add a specific version in their package.json which is incompatible with nuxt. This could also help to resolve popular Vue packages version mismatch error (#198, #669, #1084, #1414, #1851, #2079, #2406, #3454).
Nuxt is now able to automatically self-verify installed dependencies and warn with a proper message in case of detecting problems.
This feature has been implemented by @pi0 in PR #4669
Auto-detection of modern bundlesπ₯
When runningπ
nuxt start
, Nuxt will automatically detect if you built your app modern mode enabled. No need to runnuxt start --modern
explicitly anymoreThis detection was created by @clarkdo on PR #4422
Plugin modes and file extensionsπ
Until now, you used
ssr: false
in your plugin declarations to disable server-side rendering. We decided to deprecate that option and introduce amode
instead, which can be'all'
,'client'
or'server'
. No worries,ssr
is still working (until Nuxt 3).The new feature coming with the
mode
is that you can define it by using the file suffix:plugins/plugin.server.js
plugins/plugin.client.js
plugins/plugin.js
By adding the plugins to your
nuxt.config.js
:The declaration will be internally transformed to:
(If you specify the
mode
manually, it will overwrite the suffix detection)This feature has been implemented by @clarkdo on PR #4592
Module commandsπ₯
Nuxt modules can now include
bin
scripts that are recognized by Nuxt's CLI.Here's an example of
my-module/bin/command.js
:The command could be run with:
npx nuxt command arg1 arg2
You can learn more about that in the modules command documentation.
This feature has been implemented by @galvez on PR #4314 with the help of @pi0.
PostCSS in Vue Componentsπ
You can now use
lang="postcss"
in your Vue components. Postcss has applied to all your styles anyway (e.g. to resolve aliases like~
) but thelang
attribute enables autocomplete and syntax highlighting for some IDEs.This feature has been implemented by @manniL on PR #4417.
No more extensions for Stylesheets neededπ¦
We are concerned to improve the Developer Experience ("DX") with each release. This small change allows you to omit the file extension for CSS/SCSS/Postcss/Less/Stylus/... files listed in the
css
array inside yournuxt.config.js
. For theplugins
orserverMiddleware
key, this is already possible.This feature has been implemented by @manniL on PR #4671.
SSR Bundle improvementsπΉ
We made a full rewrite of how SSR bundle is packaged.
This means better performance, less memory overhead, fewer OOM crashes and easier SSR bundle debugging.
This feature has been implemented by @pi0 on PR #4439.
Other changesπ
process.modern
can be used for distinguishing modern environment.server.timing
to give Server-Timing header, useful for monitoring and performances overview (PR #4800)HardSourceWebpackPlugin
byhardSource: true
inhardSource
ofnuxt.config.js
scrollToTop
tofalse
in pages (PR #4564)nuxt-link
andnuxt-child
(n-link
andn-child
) are available now (PR #4525)PascalCase
as recommended by the Vue styleguide (PR #4396)headAttrs
are now supported for the appTemplate (PR #4536)crossorigin
attribute (PR #4472)compression
middleware (PR #4381)FriendlyErrorsWebpackPlugin
overlay (PR #4381)exclude
option to exclude pages from beinggenerated
(in static mode) but still get rendered via fallback/SPA (PR #4754)build.hotMiddleware.client
(PR #4796)runInNewContext: true
for nuxt dev (#4508)Further Patches (30+)π
middleware
correctly when usingVue.extend
in layout (fix #4724)undefined
script in modern mode & generated (0a21d4b)publicPath
is falsy (PR #4365)$nuxt.$loading
typedefs (#4778)loading
property to Component options (#4786)FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those donβt help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper Bot :palm_tree: