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 :

    πŸ”Š nuxt-logs-ssr

    🍱 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.

    nuxt-store-watch

    PS: We also improved the serverMiddleware watch to restart Nuxt.js and clean their cache

    Fixes βœ”οΈ

    • πŸ— builder : corretly detect mode of hashed plugins (#5695)
    • πŸ— builder : call watch:restart after watch: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 in routerViewKey (#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 to pageTransition 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 babel envName (#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 πŸ™