Skip to content

Commit 8d2ab81

Browse files
chore(release): 0.1.0
Diff: 0.0.2...0.1.0
1 parent 3ffd2f4 commit 8d2ab81

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,32 @@
1+
# History
2+
3+
| Version | Release date |
4+
|--------------------------|----------------|
5+
| [0.1.0](#010-2024-10-07) | September 2024 |
6+
| [0.0.2](#002-2022-03-26) | March 2022 |
7+
| [0.0.1](#001-2022-03-25) | March 2022 |
8+
9+
# Release notes
10+
11+
## [0.1.0](https://github.com/darrachequesne/synceddb/compare/0.0.2...0.1.0) (2024-10-07)
12+
13+
14+
### Features
15+
16+
* add support for object stores without keyPath ([b59b095](https://github.com/darrachequesne/synceddb/commit/b59b095326d7b71a86ce73f961cdac5b32db59d1))
17+
* update the format of the default search params ([3ffd2f4](https://github.com/darrachequesne/synceddb/commit/3ffd2f4c441b7e44d2319e61b506e8dbb1664793))
18+
19+
20+
### BREAKING CHANGES
21+
22+
* The format of the default search params is updated:
23+
24+
Before: `?sort=updated_at:asc&size=100&after=2000-01-01T00:00:00.000Z,123`
25+
26+
After: `?sort=updated_at:asc&size=100&after=2000-01-01T00:00:00.000Z&after_id=123`
27+
28+
29+
130
## [0.0.2](https://github.com/darrachequesne/synceddb/compare/0.0.1...0.0.2) (2022-03-26)
231

332

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ Inspired from [Dexie.js liveQuery](https://dexie.org/docs/liveQuery()).
108108

109109
# Disclaimer
110110

111-
- [out-of-line keys](https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Basic_Terminology#out-of-line_key)
112-
113-
Entities without `keyPath` are not currently supported.
114-
115111
- no version history
116112

117113
Only the last version of each entity is kept on the client side.
@@ -492,14 +488,14 @@ onBeforeUnmount(() => {
492488
Changes are fetched from the REST API with `GET` requests:
493489
494490
```
495-
GET /<storeName>?sort=updated_at:asc&size=100&after=2000-01-01T00:00:00.000Z,123
491+
GET /<storeName>?sort=updated_at:asc&size=100&after=2000-01-01T00:00:00.000Z&after_id=123
496492
```
497493
498494
Explanations:
499495
500496
- `sort=updated_at:asc` indicates that we want to sort the entities based on the date of last update
501497
- `size=100` indicates that we want 100 entities max
502-
- `after=2000-01-01T00:00:00.000Z,123` indicates the offset (with an update date above `2000-01-01T00:00:00.000Z`, excluding the entity `123`)
498+
- `after=2000-01-01T00:00:00.000Z&after_id=123` indicates the offset (with an update date above `2000-01-01T00:00:00.000Z`, excluding the entity `123`)
503499
504500
The query parameters can be customized with the [`buildFetchParams`](#buildfetchparams) option.
505501

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "synceddb",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "Sync your IndexedDB database with a remote REST API",
55
"main": "./build/index.cjs",
66
"module": "./build/index.js",

0 commit comments

Comments
 (0)