github quasarframework/quasar @quasar/app-v2.0.0

3 years ago

Important! Upgrading to "@quasar/app" v2 requires following a 5 minute guide.

What's new in v2

  • Browser compatibility is now more clearly expressed.
  • The JS transpilation (with the help of Babel) has been rethought from the ground up (now using core-js v3). It will now transpile based on the Browser compatibility that you configure. It will no longer go transpiling directly to ES5, but it will look for exactly what JS features need transpiling based on the configured browsers. Be mindful about it though, as it is sufficient to add one "bad apple" in the options list and that will dumb down your code back to ES5.
  • The "modern build" is no longer necessary due to the above. However, if you want to disable transpiling (it's perfectly equivalent), now you can: quasar.conf.js > build > transpile: false.
  • Support for a /public folder which replaces /src/statics. The new folder will allow you to supply static content at the root/app base level, rather than as statics/*. One useful example: robots.txt
  • SSR mode now supports a custom publicPath too
  • The configured publicPath is now applied to dev mode by default
  • Capacitor v2 and Workbox v5 support
  • Simpler quasar.conf.js > build > transpileDependencies; it now supports String (auto transforms it to `/node_modules/...') and Regexes too
  • Simpler quasar.conf.js > build > env; you no longer need to JSON.stringify each value (you now must not!)
  • Simpler quasar.conf.js > framework config Object; "all" prop has been renamed to "importStrategy" and it allows "all" or "auto" (the default) values; "components" and "directives" are no longer taken into account because you don't need them
  • New param for boot files and preFetch (publicPath); the "redirect()" method now fully supports a Vue Router location Object (on all build modes, on server-side or client-side); preFetch hook now also receive "urlPath" param
  • New API method for App Extension's install script: api.renderFile() #6648
  • Upgraded to latest version of Typescript (v3.9.5 as of writing these lines; will also require "quasar" v1.12.6)

Fixes

  • fix(app): Auto-import with TS runtime logic - breaks non-lazy loading routes #7194
  • fix(app): Don't include quasar.client-manifest.json in the PWA precache manifest when on SSR+PWA
  • fix(app): Differentiate ctx for offline.html (SSR + PWA) #7120
  • fix(bex): Don't minify rendered code #7185

Don't miss a new quasar release

NewReleases is sending notifications on new releases.