firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥

MIT License

Downloads
26.6K
Stars
642
Committers
49

Bot releases are hidden (Show)

firebase-module - v7.0.2

Published by lupas almost 4 years ago

🐜 Bug Fixes

Thanks to

  • Faizal Luthfi (@faizalluthfi)
firebase-module - v7.0.1

Published by lupas almost 4 years ago

Typescript

  • types: added missing types (emulatorHost etc.) (2a76c6b)

Thanks to @DamianGlowala

firebase-module - v7.0.0

Published by lupas almost 4 years ago

⚠️ BREAKING CHANGES IN VERSION 7.0.0!:
Version 7 brings major breaking changes. Make sure to carefully read through the migration guide when migrate your application.

Version 7 comes with a handful of new features and some breaking changes in the naming of the $fire injections.

Check out the new Lazy mode, which allows you to load the Firebase services only where you need them. See the documentation and try it out yourself.

Version 7 also adds support for Firebase v8+ and adds the option to add the Firebase Auth

Make sure to carefully read through the migration guide when updating to this version.

Changes

✨ New

  • Lazy Mode: add support for lazy service loading (4e96d28)
  • firebase-v8: updated code to work with Firebase v8+ (4ae48b5)
  • auth: Add emulatorPort and emulatorHost options for using a local Authentication Emulator (#356)
  • functions: added emulatorHost option to Firebase Functions (08db302)
  • auth: added initialize.subscribeManually and removed "helper" function (91ad279)
  • analytics: added check whether browser supports Firebase Analytics before init (52ec6ef)

☘️ Small improvements & fixes

  • analytics: Fixed service naming issue (addd317)
  • auth: Fixed initialize (c4b203d)
  • auth-credential: fixed auth-credential import (require) (faeed48)
  • auth-serverlogin: fixed serverLogin issue (ctx.res missing) (edd1a75)
  • fireObj: fireObj was not injected in non-lazy + non-legacy mode (dc66991)
  • initauth: async import of initAuth within auth plugin (36eb8f4)
  • initAuth: Fixed mmissing options in initAuth & small lazy mode fix (8e54384)
  • legacymodeinfo: fixed error 'Cannot use 'in' operator to search for 'legacyMode' in undefined ' (0684e64)
  • loggerinfo: added module name to legyMode info log because it's not clear on multi-line log (cb85c29)
  • naming: Improved readability by consistanly naming services constants (0d62e76)
  • netlify: updated netlify.toml (26f5aa9)
  • packageejson: missing comma (a6669fc)
  • remoteconfig: fixed 'defaultConfig' being child of 'settings' instead of main obj (7e1020c)
  • static: fixed static=true also dynamically importing the modules (cf61833)
  • ts: Added ready() to $fire and added missing 'storage' (bb78d3a)
  • ts: Fixed $fire.database (6bd9df9)
  • make initAuth work again (db8a467)
  • review comments (f5265ae)
  • use existing injection name (a6971ac)
  • use service mapping (33489a1)
  • use service mapping (bd16287)

Thanks to

  • Pim (@pimlie)
  • Alexandra Moreau (@alemoreau)
  • Juan Carlos González Cabrero (@malkomich)
  • Jack Mullen (@jack-mullen)
firebase-module - v6.1.1

Published by lupas about 4 years ago

Bug Fixes

  • types: improve typing of locals (407eb2c)

Thanks a lot for the PR to @aaharu

firebase-module - v6.1.0

Published by lupas over 4 years ago

Features

  • analytics: added collectionEnabled option to analytics (5da8a19)

Thanks to @R3VoLuT1OneR

Bug Fixes

firebase-module - v6.0.0

Published by lupas over 4 years ago

⚠ Breaking Changes

  • messaging: Messaging expects payloads to be delivered according to the new HTTP v1 API, as documented in the Firebase Documentation.

If you are using the messaging.createServiceWorker option with message actions, make sure to read through the documentation again and adapt your message payload accordingly.
See here for example payload.

☘️ Improvements

  • firestore: added memoryOnly option to firestore (efde3fe), closes #135
  • auth: add idToken to user's payload (97d8055), closes #202
  • auth: add 127.0.0.1 support (c8b6114), closes #203
firebase-module - v5.2.0

Published by lupas over 4 years ago

☘️ Small Improvements

  • Auth: Improved SSR support & serverSide login by adding a session manager
  • Helpers: Helpers are now exported as CommonJS modules for compatibility.

Huge thanks to @mentAl-maZe for the changes in auth.

firebase-module - v5.0.7

Published by lupas over 4 years ago

🐜 Bug Fixes

  • SSR Auth: Fixed a regression bug in SSR Auth, where ssr: true did not load the ssrAuth.js plugin if no credentials were set.
firebase-module - v5.0.6

Published by lupas over 4 years ago

🐜 Bug Fixes

  • SSR Auth: move ssrAuth plugin to the bottom of the module

Thanks to @mentAl-maZe for the PR.

firebase-module - v5.0.5

Published by lupas over 4 years ago

🐜 Bug Fixes

  • Auth Server Login: Use plugin instead of middleware for SSR authentication to improve compatibility with custom server setups (Careful: Still experimental)

Thanks to @mentAl-maZe for the PR.

firebase-module - v5.0.3

Published by lupas over 4 years ago

☘️ Small Improvements

  • Service-Worker Firebase Version: The Firebase version used in the generated service-workers (auth & messaging) is now equal to your projects installed Firebase SDK Version. (firebase.SDK_VERSION)

Thanks to @bernessco for the PR https://github.com/nuxt-community/firebase-module/pull/128

firebase-module - v5.0.0

Published by lupas over 4 years ago

Version 5 brings various optimizations in the Auth module.

We moved the Auth initialization functionality out of experimental an introduced a new experimental functionality, SSR Auth Server Login.

‼️ Breaking Changes - Upgrade from v4 to v5 ‼️

Follow the upgrade guide here

Changelog

See changelog here.

firebase-module - v5.0.1

Published by lupas over 4 years ago

🐜 Bug Fixes

  • Service-worker not loaded in all cases: Fix a bug where firebase-auth-sw.js was only loaded when serverLogin === true
firebase-module - v5.0.2

Published by lupas over 4 years ago

🐜 Bug Fixes

  • Cannot access SSR: Fixed a bug introduced with v5.0.0 where a missing auth in nuxt-config lead to an error
firebase-module - v4.0.0

Published by lupas over 4 years ago

With v4, nuxt-fire became an official nuxt-community module. <:o)

With this, the GitHub repository as well as the NPM location package name have changed.

In addition to that, nuxt-fire was renamed to @nuxtjs/firebase, to make it clear that this is the official Firebase module for Nuxt.js.

To make it consistent, we also changed certain namings within the module, so when upgrading from v3 to v4, you will have to change the following in your code:

‼️ Breaking Changes - Upgrade from v3 to v4 ‼️

1 - Rename module import in nuxt.config.js

// Old
modules: ['nuxt-fire'],
// New
modules: ['@nuxtjs/firebase'],

2 - Rename module options key in nuxt.config.js

Only if options are not set directly in the modules-array:

// Old
fire: {
  // all the options
}
// New
firebase: {
  // all the options
}

3 - Rename types in tsconfig.json

Only if using typescript:

// Old
{
  "compilerOptions": {
    "types": ["nuxt-fire"]
  }
}
// New
{
  "compilerOptions": {
    "types": ["@nuxtjs/firebase"]
  }
}

4 - Rename Helpers import path

Only if using helpers:

// Old
import { **helperFunctionName** } from 'nuxt-fire/src/helpers'
// New
import { **helperFunctionName** } from '@nuxtjs/firebase/src/helpers'

After all these changes, don't forget to rerun npm install or yarn and restart your IDE (e.g. VSCODE), then all should be good.

firebase-module - v3.5.5

Published by lupas almost 5 years ago

🐜 Bug Fixes

☘️ Small Improvements

  • onFirebaseHosting: onFirebaseHosting is now a global option which, once yet, is active for both the Firebase Authentication as well as the Messaging service workers.

‼️ Important: If you had onFirebaseHosting defined on messaging.onFirebaseHosting, make sure to delete it there and define it directly on the nuxt-fire option object fire.onFirebaseHosting (see here).

Thanks for @zhuharev and @wandriputra for reporting the Messaging sw issue.

firebase-module - v3.5.4

Published by lupas almost 5 years ago

☘️ Small Improvements

  • SSR User Claims: When using Auth SSR Mode (see here), you can now access the user claims via ctx.res.verifiedFireAuthUserClaims

Thanks to @reskume .

firebase-module - v3.5.3

Published by lupas almost 5 years ago

☘️ Small Improvements

  • Typescript: Improved type augmentations

Thanks to @mentAl-maZe for the PR!

firebase-module - v3.5.2

Published by lupas almost 5 years ago

🐜 Bug Fixes

  • Firestore: enablePersistence = true used to throw an "unsupported" error on server-side. It now does not get triggered on server-side anymore.

☘️ Small Improvements

  • Firestore: enablePersistence can now also take an object which gets passed down as the official enablePersistance options, allowing e.g. to set synchronizeTabs: true

Many thanks to @mentAl-maZe for the pull-request!

firebase-module - v3.5.1

Published by lupas almost 5 years ago

✨ New

  • Added SSR option to Firebase Auth:
    This option automatically creates a service worker and a serverMiddleware that handle token refresh on client side and token validation on server side. The validated authUser object can then be accessed in nuxtServerInit.
// In the nuxt.config.js nuxt-fire settings:
auth: {
  initialize: {
    ssr: true
  }
},

For more information check out the Firebase Auth in SSR/Universal Mode Tutorial.

‼️ Careful: This feature is experimental, feel free to test it out but don't expect it to work perfectly in all cases. Please report an issue if you have question or problems with it.

  • Added SSR option to Firebase Auth:

⚙️ Maintenance

  • Docs: Split up Helpers & Advanced in two categories

🐜 Bug Fixes

  • Fixed bug in error handling of fireStore.enablePersistence()