Releases: tonsky/datascript
Releases · tonsky/datascript
0.7.2
0.7.1
0.7.0
- BTSet and its slices (returned by
datoms/seek-datomscalls) now support fast reverse iteration viareverse. (datascript/datom e a v & [tx added])call for creating new datoms- Added missing aggregate funs:
avg,median,variance,stddevandcount-distinct(issue #42, thx @montyxcantsin) minandmaxaggregates use comparator instead of default js<comparison- Fixed a bug when fn inside a query on empty relation returned non-empty result
- Filtered DB support via
filter
0.6.0
- [ BREAKING ] Entity ids and transaction ids now have to be numbers, attributes can only be keywords (strings if used from JS)
- New method
init-dbfor fast creation of DB from existing datoms (useful for e.g. initialization from serialized state) - Improved performance of
transact!(~20%) and initial database population (init-db,db-from-reader, ~800%)
0.5.2
0.5.1
0.5.0
This is breaking release with no new features, just repacked JS version of DataScript so it can be used via modern JS dependency managers:
- Javascript version is now packaged as a proper CommonJS/RequireJS module (include via script tag still supported) (issue #39)
- Published to npm: npmjs.org/package/datascript
- [ BREAKING ] Javascript namespace is renamed from
datascript.jstodatascript
0.4.2
- Reference transaction id inside transaction by using
:db/current-txinstead of entity id (issue #32) - You can get id of transaction from
TxReport:(get-in tx-report [:tempids :db/current-tx]) - Ability to pass arbitrary metadata along with transaction (third argument to
transact!) and read it in listener callback (:tx-metakey ofTxReport) (issue #32)
0.4.1
- Added
:db.fn/castransaction function (issue #20, thx @montyxcantsin) - Added
get-some,get-else,misssing?query functions (issue #21, thx @montyxcantsin) - Fixed
touchbreaking entity cache (issue #17) - Added
groundfn (issue #25) - Fixed query predicate/fn calls without free variables
- Retract incoming entity references on
:db.fn/retractEntity(issue #18) - You can now use reverse relation name when transacting entity as a map