Skip to content

Commit cee41a0

Browse files
committed
[mmkv] Release notes
1 parent 6b4c6d0 commit cee41a0

File tree

2 files changed

+32
-5
lines changed

2 files changed

+32
-5
lines changed

site/guides/15_releases.md

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,36 @@ highlighted features.
55

66
---
77

8+
# v6.5
9+
10+
This release includes the new persister-react-native-mmkv module, which allows
11+
you to persist data in a React Native MMKV store via the
12+
[react-native-mmkv](https://github.com/mrousavy/react-native-mmkv) library.
13+
14+
Usage should be as simple as this:
15+
16+
```js yolo
17+
import {MMKV} from 'react-native-mmkv';
18+
import {createStore} from 'tinybase';
19+
import {createReactNativeMmkvPersister} from 'tinybase/persisters/persister-react-native-mmkv';
20+
21+
const storage = new MMKV();
22+
const store = createStore().setTables({pets: {fido: {species: 'dog'}}});
23+
const persister = createReactNativeMmkvPersister(store, storage);
24+
25+
await persister.save();
26+
// Store will be saved to the MMKV store.
27+
```
28+
29+
A huge shout out to [Jérémy Barbet](https://github.com/JeremyBarbet) for this
30+
new persister!
31+
32+
---
33+
834
# v6.4
935

10-
This release includes the new persister-react-native-sqlite module, which
11-
allows you to persist data in a React Native SQLite database via the
36+
This release includes the new persister-react-native-sqlite module, which allows
37+
you to persist data in a React Native SQLite database via the
1238
[react-native-sqlite-storage](https://github.com/andpor/react-native-sqlite-storage)
1339
library.
1440

@@ -28,7 +54,8 @@ await persister.save();
2854
// Store will be saved to the database.
2955
```
3056

31-
Please let us know how you get on with this new Persister, and if you have any feedback or suggestions.
57+
Please let us know how you get on with this new Persister, and if you have any
58+
feedback or suggestions.
3259

3360
---
3461

site/home/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
</h2>
77
</section>
88

9-
<a href='/guides/releases/#v6-4'><em>NEW!</em> v6.4 release</a>
9+
<a href='/guides/releases/#v6-5'><em>NEW!</em> v6.5 release</a>
1010

11-
<span id="one-with">"The One With React Native SQLite!"</span>
11+
<span id="one-with">"The One With MMKV!"</span>
1212

1313
<a class='start' href='/guides/the-basics/getting-started/'>Get started</a>
1414

0 commit comments

Comments
 (0)