Nuxt.js v2.7.0 Release Notes
Release Date: 2019-05-14 // almost 5 years ago-
π± DX Improvements π
π± SSR logs in your browser π₯οΈ
π 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 :π± Detecting
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 cacheFixes βοΈ
- π builder : corretly detect mode of hashed plugins (#5695)
- π builder : call
watch:restart
afterwatch:fileChanged
hook (#5620) - utils : node v8 not support dotAll in regex (#5608)
- vue-app : properly catch component loading error (#5687) (#5688) (#5690)
- vue-app : consider
watchQuery
option inrouterViewKey
(#5516) - vue-renderer : await on
spa:templateParams
hook (#5619) - webpack : set log level to warn for
HardSourcePlugin
(#5653) - vue-app : properly catch loading error in component prefetching (#5688) (#5690)
- vue-app : avoid using aliases in templates (#5656)
- π builder : watch store dir and
serverMiddleware
paths (#5681)
π Features π
- vue-app : rename
transition
topageTransition
and deprecate it (#5558) - vue-renderer/vue-app : report SSR console logs to the browser with consola (#5673)
- webpack : suppress not found typescript warnings (#5635)
- webpack : extendable
babel.presets
and babelenvName
(#5637) - π§ configurable aliases (#5655)
π¨ Refactors π§Ή
- server : exclude dist files request from browser detection (#5571)
- vue-renderer : remove chalk in renderer (#5609)
- vue-renderer : split renderer into ssr, spa and modern (#5559)
- π move modern detection from server to utils (#5584)
π± Examples π
- auth-routes: fix typo (#5651)
- babel-preset-app: add
core-js@3
example in the readme (#5633) - π³ docker : fix Dockerfile casing (#5705)
π· Typescript π·
β¬οΈ Only for typescript users, Nuxt.js v2.7 dropped support for node < 8.6 relate to
ts-loader v6
- β add babel config types (#5666)
- β¬οΈ upgrade ts-loader to v6 (#5691)
- π fix
context.app
type (#5701) - π fix
extendRoutes
method type (#5700) - prevent
ts-node
to register twice (#5699)
π± Thanks to π
- Christian Lehr (@clehr)
- Hyunje Jun (@utatti)
- RafaΕ ChΕodnicki (@rchl)
- Yama-Tomo (@Yama-Tomo)
- RenΓ© Stalder (@renestalder)
- Kohei Ota (@inductor)