Skip to content

Commit 4849006

Browse files
committed
1 parent 0d132af commit 4849006

File tree

2 files changed

+43
-1
lines changed

2 files changed

+43
-1
lines changed

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
# [3.0.0-alpha.5](https://github.com/vuejs/vuefire/compare/v3.0.0-alpha.4...v3.0.0-alpha.5) (2022-11-08)
2+
3+
### Bug Fixes
4+
5+
- **firestore:** pass the id as a value ([d0afc0a](https://github.com/vuejs/vuefire/commit/d0afc0aa70cd5dd1d05c17b6f266fad81dd0d341))
6+
- pass options when unbinding documents ([6d4f151](https://github.com/vuejs/vuefire/commit/6d4f1512e26ddcfb0f208abc11feab8ef6e38804))
7+
8+
### Features
9+
10+
- better defaults for wait and reset ([872bd1c](https://github.com/vuejs/vuefire/commit/872bd1cf65d5df3d28c75e03e42c94d7f897926e))
11+
- **database:** allow passing a vue ref ([df66d6e](https://github.com/vuejs/vuefire/commit/df66d6ebd31ce4e3df96a798225677f8d2b1ed8d))
12+
- **database:** rename `.key` property to `id` to match Firestore ([0c0b1e4](https://github.com/vuejs/vuefire/commit/0c0b1e4e092f8b8aded8d295d1c62cb8abb2ae3c))
13+
- **database:** support null as a value ([d1d2b5a](https://github.com/vuejs/vuefire/commit/d1d2b5ac5760ee7539f0385ccd08f154fe9b43c5))
14+
- **firestore:** accept a vue ref as parameter in useCollection() and useDocument() ([ee180a7](https://github.com/vuejs/vuefire/commit/ee180a717256511c43b9ccea3737aebfabb97252))
15+
- **firestore:** allow setting the ref value to null ([7af2c6e](https://github.com/vuejs/vuefire/commit/7af2c6eb8167602f8ce7979960c908a68c56d9e0))
16+
- usePendingPromises() ([b0a65dd](https://github.com/vuejs/vuefire/commit/b0a65ddd40a667ff0abcef15c1ad3ccaa1992a94))
17+
18+
### BREAKING CHANGES
19+
20+
- `wait` option now defaults to `true` to better align
21+
with SSR. Similarly, the `reset` option now defaults to `false` to
22+
better align with declarative usage of `useDocument()` and others. If
23+
you want to keep the old behavior, you can still override the defaults
24+
globally (refer to global options in the docs).
25+
- **database:** the default `serialize()` option adds a non enumerable
26+
property named `id` that correspond to the DatabaseRef's `key`. It was
27+
previously added as a non-enumerable key named `.key`. if you want to
28+
keep the old behavior you can pass a global `serialize()` to the
29+
`rtdbPlugin` options:
30+
31+
```ts
32+
import { createApp } from 'vue'
33+
import { rtdbPlugin } from 'vuefire'
34+
35+
const app = createApp()
36+
app.use(rtdbPlugin, {
37+
serialize: (doc) => {
38+
// write your personalized serialize version
39+
}
40+
})
41+
```
42+
143
# [3.0.0-alpha.4](https://github.com/vuejs/vuefire/compare/v3.0.0-alpha.2...v3.0.0-alpha.4) (2022-10-20)
244

345
This version is very different from the previous alpha. If you were using it, make sure to read the list of breaking changes

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vuefire",
3-
"version": "3.0.0-alpha.4",
3+
"version": "3.0.0-alpha.5",
44
"description": "Official Firebase bindings for Vue.js",
55
"packageManager": "[email protected]",
66
"unpkg": "dist/index.iife.js",

0 commit comments

Comments
 (0)