Skip to content

Commit 777c18b

Browse files
committed
v3.4.0
1 parent cb52bf8 commit 777c18b

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Changelog.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# Changelog
22

3-
## Unreleased
3+
## 3.4.0
44

55
### Changes
66

7-
- `sqlite.userVersion(v?: number)` now always returns the user version, also when setting it. This makes more sense from an API perspective and has as good as no performance impact.
8-
- EventQueue: `.setKnownV()` is now synchronous and no longer returns a Promise. This is only a breaking change if you were using `.then()` instead of `await`.
7+
Fun new features:
8+
9+
- JsonModel: `.each(attrs, options, fn)` now takes `concurrent` to limit the concurrently running functions. This adds a dependency on the tiny `async-sema` package.
910
- ESDB: Added `transact({event, model, store, dispatch})` phase to the event processing flow. In this callback, you can call `dispatch` to generate and await sub-events, and calling ESModel will work too (any model can use the `dispatch` given via the constructor).
10-
This requires the use of `AsyncLocalStorage`, and thus the minimum NodeJS version is now v12.17
1111
- ESDB: `dispatch({type, data, ts})` (passing everything in a single argument) is now also possible, as well as for `addEvent`.
1212
- ESModel: provide event creators for set, update and remove.
13-
- JsonModel: `.each(attrs, options, fn)` now takes `concurrent` to limit the concurrently running functions
13+
14+
We also have some tiny API changes that don't warrant a major version:
15+
16+
- `sqlite.userVersion(v?: number)` now always returns the user version, also when setting it. This makes more sense from an API perspective and has as good as no performance impact.
17+
- EventQueue: `.setKnownV()` is now synchronous and no longer returns a Promise. This is only a breaking change if you were using `.then()` instead of `await`.
18+
This requires the use of `AsyncLocalStorage`, and thus the minimum NodeJS version is now v12.17 (which is already ancient).
1419

1520
### Fixes
1621

17-
- ESDB: fix deadlock on queue add in migration (due to version setting)
22+
- ESDB: fix deadlock on queue add in migration (due to sync version setting)
1823
- JM: while paging, if the total == the limit, the cursor is now also null, because there is no next page.
1924

2025
## 3.3.2

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strato-db",
3-
"version": "3.3.4",
3+
"version": "3.4.0",
44
"description": "NoSQL-hybrid with Event Sourcing based on sqlite",
55
"license": "MIT",
66
"repository": "https://github.com/StratoKit/strato-db",

0 commit comments

Comments
 (0)