@oimdb/core 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,53 @@
3
3
  All notable changes to `@oimdb/core` are recorded here. This file starts at 4.0.0; releases
4
4
  before it were not changelogged.
5
5
 
6
+ ## 4.2.0
7
+
8
+ ### Added
9
+
10
+ - `OIMDefaults` instance (`new OIMDefaults(options)`, `OIMDefaults.INSTANCE`), `TOIMDefaultsOptions`; option `defaults` on every factory.
11
+ - `releaseValue` option on `createOIMComputedService` and `createOIMSingleComputedService`; `TOIMComputedValueReleaser`.
12
+ - `createOIMSourceTrackingComputedService`, `createOIMSingleSourceTrackingComputedService`, `OIMSourceTrackingComputedService`, `OIMSingleSourceTrackingComputedService`, `TOIMSourceTrackingComputedSlot`, `TOIMSourceTrackingComputedContentSlot`, `TOIMSourceTrackingComputedDerive`, `TOIMSourceTrackingComputedDerivationOptions`, `OIMSlotContentSourceTrackingComputedService` (type), `TOIMComputedServiceFactoryOptions`.
13
+
14
+ ### Changed
15
+
16
+ - `createOIMSlotCollectionService`, `createOIMSingleSlotService`, `createOIMSlotContentEntityService`, `createOIMSlotCollectionIndexService`, `createOIMSlotCollectionSortedArrayIndexService`: no `db` argument.
17
+ - `createEffect`, `createAndRunEffect`, `subscribeEffect`: `(db, body, sourceSlots?, sourceComputeds?, sourceTrackingComputeds?)`.
18
+ - `closeBatch` throws when no batch is open.
19
+ - A slot written inside a batch is released only after the batch is delivered.
20
+ - Slot flag bit `32` is taken by the engine; a library's own bits start at `64`.
21
+ - `TOIMSlot.storeSlot` is required; a column slot carries its carrier's store slot.
22
+ - A last unhold inside a flush releases the slot at once, for every slot kind.
23
+ - `IOIMSlotContentService.releaseSlotContent(slot)` takes the slot only and throws on a held slot.
24
+ - `TOIMChannelClock.epoch` is an int32 that wraps; `oimIsRevisionAfter` compares epochs as `(epoch - sinceEpoch) | 0`.
25
+
26
+ ### Removed
27
+
28
+ - `OIMDefaults.STANDALONE_SLOT_OWNER`. Use `new OIMSlotOwner()`.
29
+ - `OIMDefaults` static fields and `OIMDefaultValue.setValue`. Use `new OIMDefaults({ … })` passed as `defaults`.
30
+ - `OIMDefaults.KEY_TREE_WALK_SCALAR`, `OIMDefaults.KEY_TREE_WALK_COMPOSITE`. Use `OIMScalarKeyTreeWalk.INSTANCE`, `OIMCompositeKeyTreeWalk.INSTANCE`.
31
+ - `OIMDefaults.ENTITY_SLOT_EMPTINESS`. Use `new OIMDefaults({ entitySlotEmptinessPolicy })`.
32
+ - `TOIMDBOptions.entityWriter`, `slotStamp`, `slotReleasePolicy`, `indexKeysService` and the same fields of `OIMDB`. Use `OIMDefaults`.
33
+
34
+ ### Renamed
35
+
36
+ - `TOIMSlotEditable` → `TOIMEditable`
37
+ - `OIMEffectService.createEffectImmediate` → `createAndRunEffect`
38
+ - `OIMEffectService.createEffectWithSourceTracking` → `createSourceTrackingEffect`
39
+ - `TOIMEffectBodyWithSourceTracking` → `TOIMSourceTrackingEffectBody`
40
+ - `OIMEffectSourceTracker` → `OIMSourceTracker`
41
+ - `IOIMContentChangeListener.onContentChangedMany` → `onManyContentsChanged`
42
+ - `createOIMEntityWriterInPlace` → `createOIMInPlaceEntityWriter`
43
+ - `createOIMEntityWriterReplacing` → `createOIMReplacingEntityWriter`
44
+ - `oimPatchEntityColumnsGuarded` → `oimGuardedPatchEntityColumns`
45
+ - `oimPatchEntityColumnGuarded` → `oimGuardedPatchEntityColumn`
46
+ - `oimPutEntityColumnsGuarded` → `oimGuardedPutEntityColumns`
47
+ - `TOIMSortColumn.column` → `columnName`
48
+ - `TOIMSlotStoreTree.root` → `rootCompositeKeyNode`
49
+ - `TOIMDerivation` → `TOIMComputedDerivation`
50
+ - `OIMContentChangeListenerService` → `OIMSlotContentChangeListenerService`
51
+ - `IOIMContentChangeListener` → `IOIMSlotContentChangeListener`
52
+
6
53
  ## 4.1.0
7
54
 
8
55
  Breaking: exports removed and renamed, `IOIMSlotOwner` has new required members.