@vueuse/firebase 13.5.0 → 13.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.mts CHANGED
@@ -12,6 +12,8 @@ interface UseFirebaseAuthOptions {
12
12
  * Reactive Firebase Auth binding
13
13
  *
14
14
  * @see https://vueuse.org/useAuth
15
+ *
16
+ * @__NO_SIDE_EFFECTS__
15
17
  */
16
18
  declare function useAuth(auth: Auth): {
17
19
  isAuthenticated: ComputedRef<boolean>;
package/index.iife.js CHANGED
@@ -1,6 +1,7 @@
1
1
  (function (exports, vue, shared, firestore, database) {
2
2
  'use strict';
3
3
 
4
+ // @__NO_SIDE_EFFECTS__
4
5
  function useAuth(auth) {
5
6
  const user = vue.ref(auth.currentUser);
6
7
  const isAuthenticated = vue.computed(() => !!user.value);
package/index.mjs CHANGED
@@ -3,6 +3,7 @@ import { isDef, tryOnScopeDispose, useTimeoutFn } from '@vueuse/shared';
3
3
  import { onSnapshot } from 'firebase/firestore';
4
4
  import { onValue } from 'firebase/database';
5
5
 
6
+ // @__NO_SIDE_EFFECTS__
6
7
  function useAuth(auth) {
7
8
  const user = ref(auth.currentUser);
8
9
  const isAuthenticated = computed(() => !!user.value);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vueuse/firebase",
3
3
  "type": "module",
4
- "version": "13.5.0",
4
+ "version": "13.7.0",
5
5
  "description": "Enables realtime bindings for Firebase",
6
6
  "author": "Anthony Fu <https://github.com/antfu>",
7
7
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "vue": "^3.5.0"
46
46
  },
47
47
  "dependencies": {
48
- "@vueuse/shared": "13.5.0"
48
+ "@vueuse/shared": "13.7.0"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "rollup --config=rollup.config.ts --configPlugin=rollup-plugin-esbuild",
package/useAuth.d.mts CHANGED
@@ -10,6 +10,8 @@ interface UseFirebaseAuthOptions {
10
10
  * Reactive Firebase Auth binding
11
11
  *
12
12
  * @see https://vueuse.org/useAuth
13
+ *
14
+ * @__NO_SIDE_EFFECTS__
13
15
  */
14
16
  declare function useAuth(auth: Auth): {
15
17
  isAuthenticated: ComputedRef<boolean>;
package/useAuth.iife.js CHANGED
@@ -1,6 +1,7 @@
1
1
  (function (exports, vue) {
2
2
  'use strict';
3
3
 
4
+ // @__NO_SIDE_EFFECTS__
4
5
  function useAuth(auth) {
5
6
  const user = vue.ref(auth.currentUser);
6
7
  const isAuthenticated = vue.computed(() => !!user.value);
package/useAuth.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  import { ref, computed } from 'vue';
2
2
 
3
+ // @__NO_SIDE_EFFECTS__
3
4
  function useAuth(auth) {
4
5
  const user = ref(auth.currentUser);
5
6
  const isAuthenticated = computed(() => !!user.value);