@lossless.org/nosqldb 10.11.0 → 11.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.
Files changed (55) hide show
  1. package/.smartconfig.json +117 -0
  2. package/dist_rust/rustdb_linux_amd64 +0 -0
  3. package/dist_rust/rustdb_linux_amd64.tsrust-build.json +5 -5
  4. package/dist_rust/rustdb_linux_amd64_musl +0 -0
  5. package/dist_rust/rustdb_linux_amd64_musl.tsrust-build.json +5 -5
  6. package/dist_rust/rustdb_linux_arm64 +0 -0
  7. package/dist_rust/rustdb_linux_arm64.tsrust-build.json +5 -5
  8. package/dist_rust/rustdb_linux_arm64_musl +0 -0
  9. package/dist_rust/rustdb_linux_arm64_musl.tsrust-build.json +5 -5
  10. package/dist_rust/rustdb_macos_amd64 +0 -0
  11. package/dist_rust/rustdb_macos_amd64.tsrust-build.json +5 -5
  12. package/dist_rust/rustdb_macos_arm64 +0 -0
  13. package/dist_rust/rustdb_macos_arm64.tsrust-build.json +5 -5
  14. package/dist_ts/00_commitinfo_data.js +2 -2
  15. package/dist_ts/ts_local/classes.localnosqldb.d.ts +15 -4
  16. package/dist_ts/ts_local/classes.localnosqldb.js +31 -11
  17. package/dist_ts/ts_nosqldb/index.d.ts +3 -3
  18. package/dist_ts/ts_nosqldb/index.js +5 -4
  19. package/dist_ts/ts_nosqldb/rust-db-bridge.d.ts +125 -2
  20. package/dist_ts/ts_nosqldb/rust-db-bridge.js +261 -46
  21. package/dist_ts/ts_nosqldb/server/classes.nosqldbserver.d.ts +69 -3
  22. package/dist_ts/ts_nosqldb/server/classes.nosqldbserver.js +91 -12
  23. package/dist_ts/ts_nosqldb/server/index.d.ts +2 -2
  24. package/dist_ts/ts_nosqldb/server/index.js +2 -2
  25. package/dist_ts/ts_nosqldb/stopped-storage.d.ts +9 -1
  26. package/dist_ts/ts_nosqldb/stopped-storage.js +1 -1
  27. package/dist_ts/ts_nosqldb/storage-rehearsal.js +1 -1
  28. package/dist_ts/ts_nosqldb/storage-root-alignment.js +7 -3
  29. package/dist_ts/ts_nosqldb/storage-root-relocation.js +2 -2
  30. package/dist_ts_debugserver/bundled.js +6 -2
  31. package/package.json +28 -15
  32. package/readme.md +470 -730
  33. package/third-party-notices.md +40 -8
  34. package/third_party_licenses/inventory.json +6 -6
  35. package/ts/00_commitinfo_data.ts +8 -0
  36. package/ts/index.ts +85 -0
  37. package/ts/ts_local/classes.localnosqldb.ts +631 -0
  38. package/ts/ts_local/index.ts +19 -0
  39. package/ts/ts_local/plugins.ts +1 -0
  40. package/ts/ts_nosqldb/classes.storagerehearsal.ts +109 -0
  41. package/ts/ts_nosqldb/committed-writes.ts +38 -0
  42. package/ts/ts_nosqldb/file-storage-options.ts +33 -0
  43. package/ts/ts_nosqldb/file-storage-startup.ts +10 -0
  44. package/ts/ts_nosqldb/index.ts +132 -0
  45. package/ts/ts_nosqldb/offline-inspection.ts +375 -0
  46. package/ts/ts_nosqldb/plugins.ts +12 -0
  47. package/ts/ts_nosqldb/resource-fencing.ts +368 -0
  48. package/ts/ts_nosqldb/rust-db-bridge.ts +1309 -0
  49. package/ts/ts_nosqldb/server/classes.nosqldbserver.ts +874 -0
  50. package/ts/ts_nosqldb/server/index.ts +4 -0
  51. package/ts/ts_nosqldb/service-types.ts +499 -0
  52. package/ts/ts_nosqldb/stopped-storage.ts +116 -0
  53. package/ts/ts_nosqldb/storage-rehearsal.ts +215 -0
  54. package/ts/ts_nosqldb/storage-root-alignment.ts +180 -0
  55. package/ts/ts_nosqldb/storage-root-relocation.ts +279 -0
@@ -58,7 +58,7 @@ installed npm dependencies retain their own license materials.
58
58
  The Rust executables distributed with this package include
59
59
  third-party components. This document covers the complete third-party package
60
60
  set recorded by `rust/Cargo.lock`, including target-inactive and compile-time
61
- components. The twelve `rustdb*` workspace crates are covered by the package's
61
+ components. The thirteen `rustdb*` workspace crates are covered by the package's
62
62
  own MIT license and are not repeated below.
63
63
 
64
64
  ## Component Inventory
@@ -153,14 +153,12 @@ was generated from the lockfile with `cargo license --json`.
153
153
  | lazy_static | 1.5.0 | Apache-2.0 OR MIT | MIT |
154
154
  | leb128fmt | 0.1.0 | Apache-2.0 OR MIT | MIT |
155
155
  | libc | 0.2.183 | Apache-2.0 OR MIT | MIT |
156
- | libmimalloc-sys | 0.1.44 | MIT | MIT |
157
156
  | linux-raw-sys | 0.12.1 | Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT | MIT |
158
157
  | lock_api | 0.4.14 | Apache-2.0 OR MIT | MIT |
159
158
  | log | 0.4.29 | Apache-2.0 OR MIT | MIT |
160
159
  | maplit | 1.0.2 | Apache-2.0 OR MIT | MIT |
161
160
  | matchers | 0.2.0 | MIT | MIT |
162
161
  | memchr | 2.8.0 | MIT OR Unlicense | MIT |
163
- | mimalloc | 0.1.48 | MIT | MIT |
164
162
  | mio | 1.1.1 | MIT | MIT |
165
163
  | nu-ansi-term | 0.50.3 | MIT | MIT |
166
164
  | num-conv | 0.2.1 | Apache-2.0 OR MIT | MIT |
@@ -239,6 +237,8 @@ was generated from the lockfile with `cargo license --json`.
239
237
  | thiserror-impl | 1.0.69 | Apache-2.0 OR MIT | MIT |
240
238
  | thiserror-impl | 2.0.18 | Apache-2.0 OR MIT | MIT |
241
239
  | thread_local | 1.1.9 | Apache-2.0 OR MIT | MIT |
240
+ | tikv-jemalloc-sys | 0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8 | Apache-2.0 OR MIT | MIT |
241
+ | tikv-jemallocator | 0.7.0 | Apache-2.0 OR MIT | MIT |
242
242
  | time | 0.3.47 | Apache-2.0 OR MIT | MIT |
243
243
  | time-core | 0.1.8 | Apache-2.0 OR MIT | MIT |
244
244
  | time-macros | 0.2.27 | Apache-2.0 OR MIT | MIT |
@@ -324,7 +324,7 @@ Copyright (c) 2013 Nicolas Silva (android_system_properties)
324
324
 
325
325
  Copyright (c) 2013-2014 The Rust Project Developers. (hex)
326
326
 
327
- Copyright (c) 2014 Alex Crichton (cc, cfg-if, find-msvc-tools, id-arena, js-sys, socket2, wasm-bindgen, wasm-bindgen-macro, wasm-bindgen-macro-support, wasm-bindgen-shared)
327
+ Copyright (c) 2014 Alex Crichton (cc, cfg-if, find-msvc-tools, id-arena, js-sys, socket2, tikv-jemalloc-sys, tikv-jemallocator, wasm-bindgen, wasm-bindgen-macro, wasm-bindgen-macro-support, wasm-bindgen-shared)
328
328
 
329
329
  Copyright (c) 2014 Benjamin Sago (nu-ansi-term)
330
330
 
@@ -424,8 +424,6 @@ Copyright (c) 2018-2023 The RustCrypto Project Developers (pbkdf2)
424
424
 
425
425
  Copyright (c) 2018-2024 The rust-random Project Developers (getrandom)
426
426
 
427
- Copyright (c) 2018-2025 Microsoft Corporation, Daan Leijen (libmimalloc-sys)
428
-
429
427
  Copyright (c) 2018-2025 The rust-random Project Developers (getrandom)
430
428
 
431
429
  Copyright (c) 2018-2026 The rust-random Project Developers (getrandom)
@@ -494,8 +492,6 @@ Copyright (c) Ulrik Sverdrup "bluss" 2015-2023 (arrayvec)
494
492
 
495
493
  Copyright 2018 Developers of the Rand project (rand, rand_chacha, rand_core)
496
494
 
497
- Copyright 2019 Octavian Oncescu (mimalloc)
498
-
499
495
  Copyright 2023 The Fuchsia Authors (zerocopy, zerocopy-derive)
500
496
 
501
497
  ### MIT Provenance Notes
@@ -897,6 +893,42 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
897
893
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
898
894
  POSSIBILITY OF SUCH DAMAGE.
899
895
 
896
+ ## BSD-2-Clause Notice for jemalloc
897
+
898
+ The `tikv-jemalloc-sys` component bundles jemalloc 5.3.1, a memory allocator
899
+ compiled into the Rust executables that link it. Its `jemalloc/COPYING`
900
+ reads:
901
+
902
+ ```
903
+ Unless otherwise specified, files in the jemalloc source distribution are
904
+ subject to the following license:
905
+ --------------------------------------------------------------------------------
906
+ Copyright (C) 2002-present Jason Evans <jasone@canonware.com>.
907
+ All rights reserved.
908
+ Copyright (C) 2007-2012 Mozilla Foundation. All rights reserved.
909
+ Copyright (C) 2009-present Facebook, Inc. All rights reserved.
910
+
911
+ Redistribution and use in source and binary forms, with or without
912
+ modification, are permitted provided that the following conditions are met:
913
+ 1. Redistributions of source code must retain the above copyright notice(s),
914
+ this list of conditions and the following disclaimer.
915
+ 2. Redistributions in binary form must reproduce the above copyright notice(s),
916
+ this list of conditions and the following disclaimer in the documentation
917
+ and/or other materials provided with the distribution.
918
+
919
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY EXPRESS
920
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
921
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
922
+ EVENT SHALL THE COPYRIGHT HOLDER(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
923
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
924
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
925
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
926
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
927
+ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
928
+ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
929
+ --------------------------------------------------------------------------------
930
+ ```
931
+
900
932
  ## Zlib Notice for foldhash
901
933
 
902
934
  Copyright (c) 2024 Orson Peters
@@ -88,14 +88,12 @@
88
88
  "lazy_static@1.5.0",
89
89
  "leb128fmt@0.1.0",
90
90
  "libc@0.2.183",
91
- "libmimalloc-sys@0.1.44",
92
91
  "linux-raw-sys@0.12.1",
93
92
  "lock_api@0.4.14",
94
93
  "log@0.4.29",
95
94
  "maplit@1.0.2",
96
95
  "matchers@0.2.0",
97
96
  "memchr@2.8.0",
98
- "mimalloc@0.1.48",
99
97
  "mio@1.1.1",
100
98
  "nu-ansi-term@0.50.3",
101
99
  "num-conv@0.2.1",
@@ -174,6 +172,8 @@
174
172
  "thiserror@1.0.69",
175
173
  "thiserror@2.0.18",
176
174
  "thread_local@1.1.9",
175
+ "tikv-jemalloc-sys@0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8",
176
+ "tikv-jemallocator@0.7.0",
177
177
  "time-core@0.1.8",
178
178
  "time-macros@0.2.27",
179
179
  "time@0.3.47",
@@ -246,13 +246,13 @@
246
246
  "zmij@1.0.21"
247
247
  ],
248
248
  "files": {
249
- ".smartconfig.json": "202775795f11034486c78ca5d7746a4524e522ea007da650cd66ceb37ed96334",
249
+ ".smartconfig.json": "aaf16e0b94160e274d9ee7e0c9a7ace7bda53fda28439738beaa65e448aa3ecf",
250
250
  "license.md": "cfa51b1d8428e453099273832dc2ec1cebdf23d7ba4eda307883158cfc77da2d",
251
251
  "rust-toolchain.toml": "8c3afbe90fa0feff766dffd92e6728a569c0a804cf49f1ecd47bf5ac262499b3",
252
- "rust/Cargo.lock": "543fc19bc27e5842b6c6326fbb66f9a52f0f0b7935d36181b8fb264a61df7d6f",
252
+ "rust/Cargo.lock": "d33a7ad4bb92ddd9b1e71012690dcaa5ac6fa6fbccc796faf0706fb10c037b34",
253
253
  "rust/notices.sources.json": "63ef24a7c81db69b1cf9f5acbf2e329f1830261ba1bfaa423dc2b8efc092d99a",
254
- "scripts/verify-native-notices.mjs": "6481fe69fb7d6e9efcc089811de4383fec8d5d83850b6d133afc65ea9e22d1ad",
255
- "third-party-notices.md": "4c58d3f7810945054e69f4da9a56f3a504137b6988f17ec6dc37e6a3b38acc1d",
254
+ "scripts/verify-native-notices.mjs": "66a7c0e1336ee5bac625d6889ab69778eda8392e7b57b5c3181cacc68117a382",
255
+ "third-party-notices.md": "ce6213c6e2d7a647692c941c9e61d27cb0f2f8b09d544a5cef89a6a05dd1fd27",
256
256
  "third_party_licenses/compiler-builtins-license.txt": "ab6eec6caf0fa5775e411c7a8bc6a45c4ef2956b0980b157ab74fc5cd62a928b",
257
257
  "third_party_licenses/gcc-gpl-3.0.txt": "8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903",
258
258
  "third_party_licenses/gcc-runtime-exception.txt": "9d6b43ce4d8de0c878bf16b54d8e7a10d9bd42b75178153e3af6a815bdc90f74",
@@ -0,0 +1,8 @@
1
+ /**
2
+ * autocreated commitinfo by @push.rocks/commitinfo
3
+ */
4
+ export const commitinfo = {
5
+ name: '@lossless.org/nosqldb',
6
+ version: '11.0.0',
7
+ description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
+ }
package/ts/index.ts ADDED
@@ -0,0 +1,85 @@
1
+ import { commitinfo } from './00_commitinfo_data.js';
2
+
3
+ // Export core NoSQLDB module
4
+ export * from './ts_nosqldb/index.js';
5
+
6
+ // Export LocalNoSqlDb
7
+ export { LocalNoSqlDb } from './ts_local/index.js';
8
+ export type {
9
+ ILocalNoSqlDbOptions,
10
+ ILocalNoSqlDbConnectionInfo,
11
+ ILocalNoSqlDbOfflineInspectionLimits,
12
+ ILocalNoSqlDbOfflinePhysicalNamespaceInspectionLimits,
13
+ ILocalNoSqlDbOfflinePhysicalNamespaceInspection,
14
+ ILocalNoSqlDbOfflinePhysicalNamespaceInspectionResult,
15
+ ILocalNoSqlDbOfflineStringValueInspection,
16
+ TLocalNoSqlDbOfflineStringValueInspectionResult,
17
+ ILocalNoSqlDbStoppedStorageRootRelocationInput,
18
+ ILocalNoSqlDbStoppedStorageRootRelocationReceipt,
19
+ TLocalNoSqlDbStorageRootRelocationErrorCode,
20
+ } from './ts_local/index.js';
21
+ export {
22
+ LocalNoSqlDbStorageRootRelocationError,
23
+ localNoSqlDbStorageRootRelocationErrorCodes,
24
+ } from './ts_local/index.js';
25
+
26
+ // Export commitinfo
27
+ export { commitinfo };
28
+
29
+ // Re-export oplog / debug types for convenience
30
+ export type {
31
+ IOpLogEntry,
32
+ IOpLogResult,
33
+ IOpLogStats,
34
+ IRevertResult,
35
+ ICollectionInfo,
36
+ IDocumentsResult,
37
+ INoSqlDbMetrics,
38
+ INoSqlDbHealth,
39
+ INoSqlDbResourceFence,
40
+ INoSqlDbResourceFenceReceipt,
41
+ INoSqlDbHeldPublicationReceipt,
42
+ INoSqlDbCommitDatabasePublicationInput,
43
+ INoSqlDbManagementOperationOptions,
44
+ INoSqlDbDatabaseResourceFenceState,
45
+ INoSqlDbDatabaseAllocationIdentity,
46
+ INoSqlDbDatabaseAllocationLifecycle,
47
+ INoSqlDbDatabaseAllocationReadAccessGrantIdentity,
48
+ INoSqlDbIssueDatabaseAllocationReadAccessGrantInput,
49
+ INoSqlDbIssueDatabaseAllocationReadAccessGrantResult,
50
+ INoSqlDbRevokeDatabaseAllocationReadAccessGrantInput,
51
+ INoSqlDbRevokeDatabaseAllocationReadAccessGrantResult,
52
+ TNoSqlDbCommitDatabasePublicationResult,
53
+ TNoSqlDbResourceFenceErrorCode,
54
+ TNoSqlDbAllocationReadAccessGrantErrorCode,
55
+ INoSqlDbDatabaseTenantInput,
56
+ INoSqlDbAttestDatabaseTenantInput,
57
+ INoSqlDbAttestDatabaseTenantResult,
58
+ INoSqlDbEnsureDatabaseTenantInput,
59
+ INoSqlDbEnsureDatabaseTenantResult,
60
+ INoSqlDbAllocateDatabaseTenantInput,
61
+ INoSqlDbAllocateDatabaseTenantResult,
62
+ INoSqlDbDeleteDatabaseTenantInput,
63
+ INoSqlDbRotateDatabaseTenantPasswordInput,
64
+ INoSqlDbDatabaseTenantDescriptor,
65
+ INoSqlDbDeleteDatabaseTenantResult,
66
+ INoSqlDbDatabaseExportCollection,
67
+ INoSqlDbDatabaseExport,
68
+ INoSqlDbDatabaseExportLimits,
69
+ INoSqlDbExportDatabaseInput,
70
+ INoSqlDbDatabaseContentDigestLimits,
71
+ INoSqlDbGetDatabaseContentDigestInput,
72
+ INoSqlDbDatabaseContentDigest,
73
+ INoSqlDbImportDatabaseInput,
74
+ INoSqlDbImportDatabaseResult,
75
+ TNoSqlDbEffectivePayloadInputV1,
76
+ } from './ts_nosqldb/index.js';
77
+ export {
78
+ NoSqlDbAllocationReadAccessGrantError,
79
+ normalizeNoSqlDbAllocationReadAccessGrantError,
80
+ noSqlDbAllocationReadAccessGrantErrorCodes,
81
+ NoSqlDbResourceFenceError,
82
+ normalizeNoSqlDbResourceFenceError,
83
+ noSqlDbResourceFenceErrorCodes,
84
+ createNoSqlDbEffectivePayloadSha256V1,
85
+ } from './ts_nosqldb/index.js';