Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/vuefire
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: vuefire@3.2.0
Choose a base ref
...
head repository: vuejs/vuefire
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 25, 2024

  1. chore: type assertion

    posva committed Oct 25, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    posva Eduardo San Martin Morote
    Copy the full SHA
    20fa641 View commit details
  2. chore: up test deps

    posva committed Oct 25, 2024

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    posva Eduardo San Martin Morote
    Copy the full SHA
    3f650f9 View commit details

Commits on Dec 8, 2024

  1. chore(docs): add comma for correct json syntax -> enable easy copy an…

    …d paste (#1591)
    marktlinn authored Dec 8, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    eeadf56 View commit details

Commits on Dec 18, 2024

  1. Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    fcc3253 View commit details
  2. chore: up deps

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    b04b87c View commit details
  3. chore: set project as demo

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    5d20adb View commit details
  4. chore: nuxt compat date

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    0475cb1 View commit details
  5. build: upgrade release script

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    f6970e3 View commit details
  6. release: vuefire@3.2.1-beta.0 nuxt-vuefire@1.0.5-beta.0

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    ab50fa2 View commit details
  7. Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    4cd3475 View commit details
  8. chore: update firebase-admin

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    f16a81c View commit details
  9. style: lint

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    4372234 View commit details
  10. build: up release tools

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    c33617d View commit details
  11. feat: support latest firebase

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    062c044 View commit details
  12. release: nuxt-vuefire@1.0.5-beta.1

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    4087474 View commit details
  13. chore: update eslint

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    3657ba4 View commit details
  14. chore: fix edp

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    33441f7 View commit details
  15. release: vuefire@3.2.1 nuxt-vuefire@1.0.5

    posva committed Dec 18, 2024

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    ef86e44 View commit details

Commits on Jan 22, 2025

  1. build(deps-dev): bump vite from 5.4.11 to 5.4.12 (#1595)

    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Jan 22, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6410213 View commit details

Commits on Jan 27, 2025

  1. docs: fix sidebar link (#1600)

    Fix #1585
    luc122c authored Jan 27, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b32fa09 View commit details

Commits on Jan 29, 2025

  1. Update getting-started.md (#1601)

    When following the documentation to try and implement Firebase for a Nuxt project I stumbled on a typo where the import for a database reference was a written as `import { getDatabase, dbRef } from 'firebase/database'` as opposed to `import { getDatabase, ref as dbRef } from 'firebase/database'` as the rest of the document
    Zadigo authored Jan 29, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6dbe7a8 View commit details

Commits on Feb 25, 2025

  1. chore: todo note

    posva committed Feb 25, 2025

    Verified

    This commit was signed with the committer’s verified signature.
    posva Eduardo San Martin Morote
    Copy the full SHA
    6224165 View commit details

Commits on Mar 19, 2025

  1. build(deps-dev): bump nuxt from 3.14.1592 to 3.16.0 (#1610)

    Bumps [nuxt](https://github.com/nuxt/nuxt/tree/HEAD/packages/nuxt) from 3.14.1592 to 3.16.0.
    - [Release notes](https://github.com/nuxt/nuxt/releases)
    - [Commits](https://github.com/nuxt/nuxt/commits/v3.16.0/packages/nuxt)
    
    ---
    updated-dependencies:
    - dependency-name: nuxt
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 19, 2025
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    eb31a54 View commit details

Commits on Apr 4, 2025

  1. build(deps-dev): bump vite from 5.4.12 to 5.4.17 (#1618)

    Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.4.12 to 5.4.17.
    - [Release notes](https://github.com/vitejs/vite/releases)
    - [Changelog](https://github.com/vitejs/vite/blob/v5.4.17/packages/vite/CHANGELOG.md)
    - [Commits](https://github.com/vitejs/vite/commits/v5.4.17/packages/vite)
    
    ---
    updated-dependencies:
    - dependency-name: vite
      dependency-version: 5.4.17
      dependency-type: direct:development
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Apr 4, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    174515e View commit details
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [3.2.1](https://github.com/vuejs/vuefire/compare/v3.2.1-beta.0...v3.2.1) (2024-12-18)

### Features

- support latest firebase ([062c044](https://github.com/vuejs/vuefire/commit/062c0441903d3b8f9b6467e292a896ff4aed0cd1))

# [3.2.0](https://github.com/vuejs/vuefire/compare/vuefire@3.1.24...vuefire@3.2.0) (2024-08-16)

### Bug Fixes
5 changes: 4 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -280,7 +280,10 @@ function sidebarApi(): SidebarGroup {
text: 'API Reference',
items: [
{ text: 'Package List', link: '/api/' },
{ text: 'nuxt-vuefire', link: '/api/modules/nuxt_vuefire.html' },
{
text: 'nuxt-vuefire',
link: '/api/modules/packages_nuxt_src_module.html',
},
{ text: 'vuefire', link: '/api/modules/vuefire.html' },
],
}
2 changes: 1 addition & 1 deletion docs/guide/getting-started.md
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ Most of the time, you should gather collection references in one of your files a

```js
import { initializeApp } from 'firebase/app'
import { getDatabase, dbRef } from 'firebase/database'
import { getDatabase, ref as dbRef } from 'firebase/database'
// ... other firebase imports

export const firebaseApp = initializeApp({
2 changes: 1 addition & 1 deletion docs/nuxt/auth.md
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ export default defineNuxtConfig({
vuefire: {
// ensures the auth module is enabled
auth: {
enabled: true
enabled: true,
// enables the sessionCookie
sessionCookie: true
},
19 changes: 15 additions & 4 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
"hosting": {
"public": "docs/.vitepress/dist"
},
"extensions": {},
"emulators": {
"auth": {
"port": 9099
@@ -21,9 +22,6 @@
"database": {
"port": 8081
},
"functions": {
"port": 5001
},
"storage": {
"port": 9199
},
@@ -34,5 +32,18 @@
"enabled": true
},
"singleProjectMode": true
}
},
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": [
"node_modules",
".git",
"firebase-debug.log",
"firebase-debug.*.log",
"*.local"
]
}
]
}
2 changes: 2 additions & 0 deletions functions/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
*.local
19 changes: 19 additions & 0 deletions functions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/**
* Import function triggers from their respective submodules:
*
* const {onCall} = require("firebase-functions/v2/https");
* const {onDocumentWritten} = require("firebase-functions/v2/firestore");
*
* See a full list of supported triggers at https://firebase.google.com/docs/functions
*/

const { onRequest } = require('firebase-functions/v2/https')
const logger = require('firebase-functions/logger')

// Create and deploy your first functions
// https://firebase.google.com/docs/functions/get-started

// exports.helloWorld = onRequest((request, response) => {
// logger.info("Hello logs!", {structuredData: true});
// response.send("Hello from Firebase!");
// });
20 changes: 20 additions & 0 deletions functions/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "functions",
"private": true,
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase emulators:start --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"engines": {
"node": "22"
},
"main": "index.js",
"dependencies": {
"firebase-admin": "^13.0.0",
"firebase-functions": "^6.0.1"
}
}
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vuefire",
"version": "3.2.0",
"version": "3.2.1",
"description": "Official Firebase bindings for Vue.js",
"packageManager": "pnpm@9.5.0",
"engines": {
@@ -75,7 +75,7 @@
},
"peerDependencies": {
"consola": "^3.2.3",
"firebase": "^9.0.0 || ^10.0.0",
"firebase": "^9.0.0 || ^10.0.0 || ^11.0.0",
"vue": "^2.7.0 || ^3.2.0"
},
"peerDependenciesMeta": {
@@ -90,21 +90,22 @@
}
},
"devDependencies": {
"@vitest/coverage-v8": "^2.0.5",
"@vitest/ui": "^2.0.5",
"@posva/prompts": "^2.4.4",
"@vitest/coverage-v8": "^2.1.3",
"@vitest/ui": "^2.1.3",
"@vue/test-utils": "^2.4.6",
"chalk": "^5.3.0",
"consola": "^3.2.3",
"conventional-changelog-cli": "^2.0.34",
"conventional-changelog-cli": "~4.1.0",
"enquirer": "^2.4.1",
"execa": "^9.3.1",
"firebase": "^10.13.0",
"firebase-admin": "^12.3.1",
"firebase-tools": "^13.15.2",
"execa": "^9.5.2",
"firebase": "^11.1.0",
"firebase-admin": "^13.0.1",
"firebase-tools": "^13.29.1",
"focus-visible": "^5.2.1",
"globby": "^14.0.0",
"happy-dom": "^14.12.3",
"lint-staged": "^15.2.9",
"happy-dom": "^15.7.4",
"lint-staged": "^15.2.10",
"minimist": "^1.2.8",
"p-series": "^3.0.0",
"prettier": "^3.3.3",
@@ -114,9 +115,9 @@
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "~5.5.4",
"unbuild": "^2.0.0",
"vitepress": "1.3.2",
"vitest": "^2.0.5",
"vue": "^3.4.38"
"vitepress": "1.4.1",
"vitest": "^2.1.3",
"vue": "^3.5.12"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged",
6 changes: 6 additions & 0 deletions packages/nuxt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [1.0.5](https://github.com/vuejs/vuefire/compare/nuxt-vuefire@1.0.5-beta.1...nuxt-vuefire@1.0.5) (2024-12-18)

### Features

- support latest firebase ([062c044](https://github.com/vuejs/vuefire/commit/062c0441903d3b8f9b6467e292a896ff4aed0cd1))

## [1.0.4](https://github.com/vuejs/vuefire/compare/nuxt-vuefire@1.0.3...nuxt-vuefire@1.0.4) (2024-08-16)

### Bug Fixes
19 changes: 19 additions & 0 deletions packages/nuxt/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// @ts-check
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
export default createConfigForNuxt({
features: {
// Rules for module authors
tooling: true,
// Rules for formatting
stylistic: true,
},
dirs: {
src: ['./playground'],
},
}).append({
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
})
32 changes: 16 additions & 16 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nuxt-vuefire",
"description": "Nuxt.js module for VueFire",
"version": "1.0.4",
"version": "1.0.5",
"license": "MIT",
"type": "module",
"exports": {
@@ -37,17 +37,17 @@
"dev:build": "nuxi build playground"
},
"dependencies": {
"@nuxt/kit": "^3.12.4",
"@nuxt/kit": "^3.14.1592",
"@posva/lru-cache": "^10.0.1",
"lodash-es": "^4.17.21",
"strip-json-comments": "^5.0.1"
},
"peerDependencies": {
"@firebase/app-types": ">=0.8.1",
"firebase": "^9.0.0 || ^10.0.0",
"firebase-admin": "^11.3.0 || ^12.2.0",
"firebase-functions": "^4.1.0 || ^5.0.0",
"vuefire": ">=3.2.0"
"firebase": "^9.0.0 || ^10.0.0 || ^11.1.0",
"firebase-admin": "^11.3.0 || ^12.2.0 || ^13.0.1",
"firebase-functions": "^4.1.0 || ^5.0.0 || ^6.1.2",
"vuefire": ">=3.2.1"
},
"peerDependenciesMeta": {
"@firebase/app-types": {
@@ -61,17 +61,17 @@
}
},
"devDependencies": {
"@firebase/app-types": "^0.9.0",
"@nuxt/eslint-config": "^0.5.0",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.12.4",
"@nuxt/test-utils": "^3.14.1",
"@firebase/app-types": "^0.9.3",
"@nuxt/eslint-config": "^0.7.3",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.14.1592",
"@nuxt/test-utils": "^3.15.1",
"@types/lodash-es": "^4.17.12",
"eslint": "^8.56.0",
"firebase": "^10.13.0",
"firebase-admin": "^12.3.1",
"firebase-functions": "^5.0.1",
"nuxt": "^3.12.4",
"eslint": "^9.17.0",
"firebase": "^11.1.0",
"firebase-admin": "^13.0.1",
"firebase-functions": "^6.1.2",
"nuxt": "^3.14.1592",
"vuefire": "workspace:*"
}
}
2 changes: 2 additions & 0 deletions packages/nuxt/playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -76,4 +76,6 @@ export default defineNuxtConfig({
},
],
],

compatibilityDate: '2024-12-18',
})
4 changes: 2 additions & 2 deletions packages/nuxt/playground/package.json
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@
"nuxt": "^3.12.4"
},
"dependencies": {
"@firebase/app-types": "^0.9.0",
"firebase": "^10.13.0",
"@firebase/app-types": "^0.9.3",
"firebase": "^11.1.0",
"nuxt-vuefire": "workspace:*",
"vuefire": "workspace:*"
}
4 changes: 2 additions & 2 deletions packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
// resolve options
const isAuthEnabled =
typeof _options.auth === 'object'
? _options.auth.enabled ?? true // allows user to comment out enabled: false
? (_options.auth.enabled ?? true) // allows user to comment out enabled: false
: !!_options.auth

const options = {
@@ -65,7 +65,7 @@ export default defineNuxtModule<VueFireNuxtModuleOptions>({
emulators: {
enabled:
typeof _options.emulators === 'object'
? _options.emulators.enabled ?? true // allows user to comment out enabled: false
? (_options.emulators.enabled ?? true) // allows user to comment out enabled: false
: !!_options.emulators,
...(typeof _options.emulators === 'object' ? _options.emulators : {}),
},
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ import { defineNuxtPlugin, useRequestEvent } from '#imports'
* Setups the auth state based on the cookie.
*/
export default defineNuxtPlugin(async (nuxtApp) => {
const event = useRequestEvent()
const event = useRequestEvent()!
const firebaseApp = nuxtApp.$firebaseApp as FirebaseApp
const firebaseAdminApp = nuxtApp.$firebaseAdminApp as AdminApp
const adminAuth = getAdminAuth(firebaseAdminApp)
16 changes: 8 additions & 8 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -12,22 +12,22 @@
"type-check": "vue-tsc --noEmit"
},
"dependencies": {
"pinia": "^2.2.2",
"vue": "^3.4.38",
"vue-router": "^4.4.3",
"pinia": "^2.2.4",
"vue": "^3.5.12",
"vue-router": "^4.4.5",
"vuefire": "workspace:*",
"vuex": "^4.1.0"
},
"devDependencies": {
"@firebase/app-types": "^0.9.0",
"@firebase/app-types": "^0.9.3",
"@types/node": "^20.11.20",
"@vitejs/plugin-vue": "^5.1.2",
"@vitejs/plugin-vue": "^5.1.4",
"@vue/tsconfig": "^0.5.1",
"@vueuse/core": "^10.8.0",
"npm-run-all": "^4.1.5",
"typescript": "~5.5.4",
"unplugin-vue-router": "^0.10.6",
"vite": "^5.4.1",
"vue-tsc": "^2.0.29"
"unplugin-vue-router": "^0.10.8",
"vite": "^5.4.10",
"vue-tsc": "^2.1.6"
}
}
Loading