@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartdb",
3
- "version": "2.12.2",
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.10.4",
19
- "@git.zone/tsrun": "^2.0.4",
20
- "@git.zone/tsrust": "^1.4.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": "^25.9.1",
22
+ "@types/node": "^26.1.1",
23
23
  "mongodb": "^7.1.1"
24
24
  },
25
25
  "dependencies": {
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartdb',
6
- version: '2.12.2',
6
+ version: '2.12.3',
7
7
  description: 'A MongoDB-compatible embedded database server with wire protocol support, backed by a high-performance Rust engine.'
8
8
  }
@@ -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