@bazariodev/docket 0.0.0 → 1.0.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 +36 -0
- package/README.md +715 -173
- package/dist/{chunk-B-SP8Od_.js → chunk-DkvWLziD.js} +3 -3
- package/dist/{chunk-B-SP8Od_.js.map → chunk-DkvWLziD.js.map} +1 -1
- package/dist/{chunk-Bvq4tF_F.cjs → chunk-ieB8yTEn.cjs} +2 -3
- package/dist/{chunk-Bvq4tF_F.cjs.map → chunk-ieB8yTEn.cjs.map} +1 -1
- package/dist/client/index.cjs +167 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +40 -0
- package/dist/client/index.d.ts +40 -0
- package/dist/client/index.js +165 -0
- package/dist/client/index.js.map +1 -0
- package/dist/constants.d.cts +2 -4
- package/dist/constants.d.ts +2 -4
- package/dist/export/index.cjs +39 -11
- package/dist/export/index.cjs.map +1 -1
- package/dist/export/index.js +39 -11
- package/dist/export/index.js.map +1 -1
- package/dist/history/index.cjs +21 -1187
- package/dist/history/index.cjs.map +1 -1
- package/dist/history/index.d.cts +10 -112
- package/dist/history/index.d.ts +10 -112
- package/dist/history/index.js +22 -1188
- package/dist/history/index.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/indexeddb/index.cjs +18 -7
- package/dist/indexeddb/index.cjs.map +1 -1
- package/dist/indexeddb/index.d.cts +19 -4
- package/dist/indexeddb/index.d.ts +19 -4
- package/dist/indexeddb/index.js +18 -8
- package/dist/indexeddb/index.js.map +1 -1
- package/dist/storage/contracts.d.cts +0 -4
- package/dist/storage/contracts.d.ts +0 -4
- package/dist/upload/constants.d.cts +17 -0
- package/dist/upload/constants.d.ts +17 -0
- package/dist/upload/index.cjs +246 -0
- package/dist/upload/index.cjs.map +1 -0
- package/dist/upload/index.d.cts +51 -0
- package/dist/upload/index.d.ts +51 -0
- package/dist/upload/index.js +244 -0
- package/dist/upload/index.js.map +1 -0
- package/package.json +25 -2
- package/dist/core/errors.d.cts +0 -8
- package/dist/core/errors.d.ts +0 -8
- package/dist/history/constants.d.cts +0 -35
- package/dist/history/constants.d.ts +0 -35
- package/dist/sip/constants.d.cts +0 -5
- package/dist/sip/constants.d.ts +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- Replace managed `createLogHistory` with `createMemoryHistory({ maxRecords })`.
|
|
8
|
+
The application owns account changes, saved level keys, legacy cleanup, and logger lifetime.
|
|
9
|
+
- Move former `/history` type imports: `CopyRecordsOptions` comes from Hopper; `LogOverflowStrategy`,
|
|
10
|
+
`LogStoreError`, and `MemoryLogStoreOptions` come from Docket's `/indexeddb` entry.
|
|
11
|
+
- Require explicit initial database and lock names in the IndexedDB adapter and cleanup helper.
|
|
12
|
+
Preserve the supplied lock name. Remove inferred resource names and managed owner metadata.
|
|
13
|
+
|
|
14
|
+
### Minor Changes
|
|
15
|
+
|
|
16
|
+
- Add `/client` for local history, upload, or both. Default to 1,000 memory records with upload off.
|
|
17
|
+
Accept Hopper clients or other clients with the same structural methods.
|
|
18
|
+
- Add `/upload` for bounded batches, protected tokens, cancellation, and explicit flush.
|
|
19
|
+
The consumer supplies `send` and owns requests, credentials, timeouts, and transport retry.
|
|
20
|
+
Callback rejection retains the exact batch and pauses automatic attempts until explicit flush.
|
|
21
|
+
- Add existing-history cleanup through the supplied IndexedDB provider. Invalid required names
|
|
22
|
+
reject through the cleanup promise before provider access.
|
|
23
|
+
- Keep download and upload retention independent. Client stop cancels upload before sink cleanup.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Preserve original admission-gate and run-ID callback receivers, including prototype methods.
|
|
28
|
+
Recheck admission after callbacks and reject unsupported FIFO history options.
|
|
29
|
+
- Retry local acknowledgement without resending a token already accepted by the same processor.
|
|
30
|
+
A new processor still needs backend token deduplication.
|
|
31
|
+
- Settle flush when post-drain status or scheduling callbacks throw. Preserve newer reentrant
|
|
32
|
+
operations, cancel timers owned by the failed attempt, and keep failure observers safe to reenter.
|
|
33
|
+
- Validate initial sinks before restoring level timers. Failed construction leaves supplied clients open.
|
|
34
|
+
- Enforce one UTF-8 export budget during formatting, including newlines, custom output, and the manifest.
|
|
35
|
+
Reuse one 4,096-byte encoding buffer per bundle. Preserve ZIP output and stop early on overflow.
|
|
36
|
+
- Document sink admission, capacity, snapshots, account cleanup, legacy migration, and explicit upload resume.
|
|
37
|
+
- Require Coordination 1.2.0 for FIFO snapshots. The root keeps no external runtime imports.
|