@push.rocks/smartdb 2.12.2 → 2.12.3
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/dist_rust/rustdb_linux_amd64 +0 -0
- package/dist_rust/rustdb_linux_arm64 +0 -0
- package/dist_ts/00_commitinfo_data.js +1 -1
- package/dist_ts/ts_smartdb/rust-db-bridge.d.ts +1 -0
- package/dist_ts/ts_smartdb/rust-db-bridge.js +8 -1
- package/dist_ts_debugserver/bundled.js +2 -2
- package/package.json +5 -5
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/ts_smartdb/rust-db-bridge.ts +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@push.rocks/smartdb",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.",
|
|
6
6
|
"exports": {
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"@api.global/typedserver": "^8.4.6",
|
|
16
16
|
"@design.estate/dees-element": "^2.2.4",
|
|
17
17
|
"@git.zone/tsbuild": "^4.4.2",
|
|
18
|
-
"@git.zone/tsbundle": "^2.
|
|
19
|
-
"@git.zone/tsrun": "^2.0.
|
|
20
|
-
"@git.zone/tsrust": "^1.
|
|
18
|
+
"@git.zone/tsbundle": "^2.11.2",
|
|
19
|
+
"@git.zone/tsrun": "^2.0.5",
|
|
20
|
+
"@git.zone/tsrust": "^1.6.0",
|
|
21
21
|
"@git.zone/tstest": "^3.6.6",
|
|
22
|
-
"@types/node": "^
|
|
22
|
+
"@types/node": "^26.1.1",
|
|
23
23
|
"mongodb": "^7.1.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
package/ts/00_commitinfo_data.ts
CHANGED
|
@@ -254,6 +254,14 @@ function buildLocalPaths(): string[] {
|
|
|
254
254
|
|
|
255
255
|
return paths;
|
|
256
256
|
}
|
|
257
|
+
export function getRustDbAllocatorEnv(
|
|
258
|
+
environment: NodeJS.ProcessEnv = process.env,
|
|
259
|
+
): Record<string, string> {
|
|
260
|
+
return {
|
|
261
|
+
MIMALLOC_ARENA_EAGER_COMMIT: environment.MIMALLOC_ARENA_EAGER_COMMIT ?? '0',
|
|
262
|
+
MIMALLOC_ALLOW_LARGE_OS_PAGES: environment.MIMALLOC_ALLOW_LARGE_OS_PAGES ?? '0',
|
|
263
|
+
};
|
|
264
|
+
}
|
|
257
265
|
|
|
258
266
|
/**
|
|
259
267
|
* Bridge between TypeScript SmartdbServer and the Rust binary.
|
|
@@ -271,6 +279,7 @@ export class RustDbBridge extends EventEmitter {
|
|
|
271
279
|
platformPackagePrefix: '@push.rocks/smartdb',
|
|
272
280
|
localPaths: buildLocalPaths(),
|
|
273
281
|
maxPayloadSize: 100 * 1024 * 1024, // database exports/imports can be larger than command replies
|
|
282
|
+
env: getRustDbAllocatorEnv(),
|
|
274
283
|
});
|
|
275
284
|
|
|
276
285
|
// Forward events from the inner bridge
|