@bazariodev/docket 0.0.0 → 1.1.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.
Files changed (85) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/README.md +742 -169
  3. package/dist/browser/index.cjs +2 -2
  4. package/dist/browser/index.js +2 -2
  5. package/dist/{chunk-LRCHwVuE.js → chunk---OIebMz.js} +31 -3
  6. package/dist/chunk---OIebMz.js.map +1 -0
  7. package/dist/{chunk-CEhpwtwJ.cjs → chunk-BMmKUicm.cjs} +9 -3
  8. package/dist/chunk-BMmKUicm.cjs.map +1 -0
  9. package/dist/{chunk-B-SP8Od_.js → chunk-CJmlBW-M.js} +69 -26
  10. package/dist/chunk-CJmlBW-M.js.map +1 -0
  11. package/dist/{chunk-DYcNnkOV.js → chunk-D1NggH6k.js} +2 -2
  12. package/dist/{chunk-DYcNnkOV.js.map → chunk-D1NggH6k.js.map} +1 -1
  13. package/dist/{chunk-Bvq4tF_F.cjs → chunk-DEyTe0f4.cjs} +68 -26
  14. package/dist/chunk-DEyTe0f4.cjs.map +1 -0
  15. package/dist/{chunk-BLf-eCDO.cjs → chunk-DLnBMRjo.cjs} +3 -1
  16. package/dist/chunk-DLnBMRjo.cjs.map +1 -0
  17. package/dist/{chunk-CSS3f4_M.js → chunk-Da877R_E.js} +4 -2
  18. package/dist/chunk-Da877R_E.js.map +1 -0
  19. package/dist/{chunk-7ld72rnl.js → chunk-De6BoS1P.js} +9 -3
  20. package/dist/chunk-De6BoS1P.js.map +1 -0
  21. package/dist/{chunk-CXZYNALm.cjs → chunk-Dl2KJDqt.cjs} +31 -2
  22. package/dist/chunk-Dl2KJDqt.cjs.map +1 -0
  23. package/dist/{chunk-DqK_3eFr.cjs → chunk-DlZYLPaU.cjs} +2 -2
  24. package/dist/{chunk-DqK_3eFr.cjs.map → chunk-DlZYLPaU.cjs.map} +1 -1
  25. package/dist/client/index.cjs +167 -0
  26. package/dist/client/index.cjs.map +1 -0
  27. package/dist/client/index.d.cts +40 -0
  28. package/dist/client/index.d.ts +40 -0
  29. package/dist/client/index.js +165 -0
  30. package/dist/client/index.js.map +1 -0
  31. package/dist/constants.d.cts +2 -4
  32. package/dist/constants.d.ts +2 -4
  33. package/dist/core/constants.d.cts +2 -0
  34. package/dist/core/constants.d.ts +2 -0
  35. package/dist/export/index.cjs +43 -15
  36. package/dist/export/index.cjs.map +1 -1
  37. package/dist/export/index.js +43 -15
  38. package/dist/export/index.js.map +1 -1
  39. package/dist/history/index.cjs +22 -1188
  40. package/dist/history/index.cjs.map +1 -1
  41. package/dist/history/index.d.cts +10 -112
  42. package/dist/history/index.d.ts +10 -112
  43. package/dist/history/index.js +22 -1188
  44. package/dist/history/index.js.map +1 -1
  45. package/dist/index.cjs +5 -5
  46. package/dist/index.d.cts +8 -4
  47. package/dist/index.d.ts +8 -4
  48. package/dist/index.js +5 -5
  49. package/dist/indexeddb/index.cjs +18 -7
  50. package/dist/indexeddb/index.cjs.map +1 -1
  51. package/dist/indexeddb/index.d.cts +19 -4
  52. package/dist/indexeddb/index.d.ts +19 -4
  53. package/dist/indexeddb/index.js +18 -8
  54. package/dist/indexeddb/index.js.map +1 -1
  55. package/dist/redaction/index.cjs +4 -2
  56. package/dist/redaction/index.cjs.map +1 -1
  57. package/dist/redaction/index.js +4 -2
  58. package/dist/redaction/index.js.map +1 -1
  59. package/dist/sip/index.cjs +1 -1
  60. package/dist/sip/index.js +1 -1
  61. package/dist/storage/contracts.d.cts +0 -4
  62. package/dist/storage/contracts.d.ts +0 -4
  63. package/dist/upload/constants.d.cts +17 -0
  64. package/dist/upload/constants.d.ts +17 -0
  65. package/dist/upload/index.cjs +246 -0
  66. package/dist/upload/index.cjs.map +1 -0
  67. package/dist/upload/index.d.cts +51 -0
  68. package/dist/upload/index.d.ts +51 -0
  69. package/dist/upload/index.js +244 -0
  70. package/dist/upload/index.js.map +1 -0
  71. package/package.json +25 -2
  72. package/dist/chunk-7ld72rnl.js.map +0 -1
  73. package/dist/chunk-B-SP8Od_.js.map +0 -1
  74. package/dist/chunk-BLf-eCDO.cjs.map +0 -1
  75. package/dist/chunk-Bvq4tF_F.cjs.map +0 -1
  76. package/dist/chunk-CEhpwtwJ.cjs.map +0 -1
  77. package/dist/chunk-CSS3f4_M.js.map +0 -1
  78. package/dist/chunk-CXZYNALm.cjs.map +0 -1
  79. package/dist/chunk-LRCHwVuE.js.map +0 -1
  80. package/dist/core/errors.d.cts +0 -8
  81. package/dist/core/errors.d.ts +0 -8
  82. package/dist/history/constants.d.cts +0 -35
  83. package/dist/history/constants.d.ts +0 -35
  84. package/dist/sip/constants.d.cts +0 -5
  85. package/dist/sip/constants.d.ts +0 -5
package/CHANGELOG.md CHANGED
@@ -1 +1,62 @@
1
1
  # Changelog
2
+
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Add an optional third `options` argument to `debug`, `info`, `warn`, and `error`.
8
+ Use `{ metadata: { report: false } }` for application-defined sink selection without
9
+ a change to record severity. Docket does not interpret flag names or values.
10
+ - Retain metadata on completed records through redaction, diagnostic truncation, freezing,
11
+ history, copying, and upload. Accept at most 16 boolean flags with names of 1 to 64
12
+ JavaScript string units. Copy flags for each call and keep subsequent records independent.
13
+
14
+ ### Patch Changes
15
+
16
+ - Recheck admission after metadata inspection and before lazy data. Prevent record delivery
17
+ after an inspection callback or admission gate stops logging.
18
+ - Accept explicit and conditional `undefined` metadata with `exactOptionalPropertyTypes`
19
+ in ESM and CommonJS declarations.
20
+
21
+ ### Consumer notes
22
+
23
+ Custom redactors must return the supplied flags unchanged and include them in the total
24
+ record-size calculation before applications use flagged calls. Invalid options report source
25
+ `data`; missing or changed output flags report source `redactor`. Logger methods do not throw.
26
+ Calls without options retain their existing diagnostic data, severity, and serialization.
27
+
28
+ ## 1.0.0
29
+
30
+ ### Major Changes
31
+
32
+ - Replace managed `createLogHistory` with `createMemoryHistory({ maxRecords })`.
33
+ The application owns account changes, saved level keys, legacy cleanup, and logger lifetime.
34
+ - Move former `/history` type imports: `CopyRecordsOptions` comes from Hopper; `LogOverflowStrategy`,
35
+ `LogStoreError`, and `MemoryLogStoreOptions` come from Docket's `/indexeddb` entry.
36
+ - Require explicit initial database and lock names in the IndexedDB adapter and cleanup helper.
37
+ Preserve the supplied lock name. Remove inferred resource names and managed owner metadata.
38
+
39
+ ### Minor Changes
40
+
41
+ - Add `/client` for local history, upload, or both. Default to 1,000 memory records with upload off.
42
+ Accept Hopper clients or other clients with the same structural methods.
43
+ - Add `/upload` for bounded batches, protected tokens, cancellation, and explicit flush.
44
+ The consumer supplies `send` and owns requests, credentials, timeouts, and transport retry.
45
+ Callback rejection retains the exact batch and pauses automatic attempts until explicit flush.
46
+ - Add existing-history cleanup through the supplied IndexedDB provider. Invalid required names
47
+ reject through the cleanup promise before provider access.
48
+ - Keep download and upload retention independent. Client stop cancels upload before sink cleanup.
49
+
50
+ ### Patch Changes
51
+
52
+ - Preserve original admission-gate and run-ID callback receivers, including prototype methods.
53
+ Recheck admission after callbacks and reject unsupported FIFO history options.
54
+ - Retry local acknowledgement without resending a token already accepted by the same processor.
55
+ A new processor still needs backend token deduplication.
56
+ - Settle flush when post-drain status or scheduling callbacks throw. Preserve newer reentrant
57
+ operations, cancel timers owned by the failed attempt, and keep failure observers safe to reenter.
58
+ - Validate initial sinks before restoring level timers. Failed construction leaves supplied clients open.
59
+ - Enforce one UTF-8 export budget during formatting, including newlines, custom output, and the manifest.
60
+ Reuse one 4,096-byte encoding buffer per bundle. Preserve ZIP output and stop early on overflow.
61
+ - Document sink admission, capacity, snapshots, account cleanup, legacy migration, and explicit upload resume.
62
+ - Require Coordination 1.2.0 for FIFO snapshots. The root keeps no external runtime imports.