v3.0.0
Hi there 👋
We made quite some changes to nuxt-fire with this update, mostly under the hood by restructuring the entire repository structure, but also some changes in the config that will affect you and need action from your side.
In the long run, we believe these changes will make life with nuxt-fire easier, so we hope you appreciate the changes.
‼️ Breaking 1
New layout of the options object and addition of new options.
We got rid of the useOnly option. Services must now be enabled via the services object like so:
services: {
auth: true,
firestore: true
// ... and so on
}Make sure to re-configure your nuxt.config.js according to the new layout of the nuxt-fire options as you can see in our beautiful new updated Documentation.
‼️ Breaking 2
Since we updated the folder structure of the entire repository, you might get a Nuxt Fatal error when updating to v3.0.0.
To solve this, simple remove your package.json.lock and node_modules folder and do a clean install of your modules with npm install.
‼️ Breaking 3
Helper functions now need to be imported from 'nuxt-fire/src/helpers' instead of 'nuxt-fire/helpers'
Changes
✨ Improvements
- Improved error handling (#5)
- The helper
movePluginBeforeInitAuthPlugin(plugins, pluginName)now also accepts plugin arrays that contain just plugin name strings, not only the objects. (#55) - The messaging service worker can now load stripts directly from Firebase Hosting via the
onFirebaseHostingflag. - Using a different package.json for our docs and the main module eliminates the need for installing docs dependencies with the main module.
⚙️ Maintenance
- Complete revamp of the folder structure & files of this repository.
- Various small and big updates in documentation and README's.