mg-dbx 2.5.32 → 2.5.33

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  High speed Synchronous and Asynchronous access to InterSystems Cache/IRIS and YottaDB from Node.js.
4
4
 
5
5
  Chris Munt <cmunt@mgateway.com>
6
- 8 February 2026, MGateway Ltd [http://www.mgateway.com](http://www.mgateway.com)
6
+ 18 February 2026, MGateway Ltd [http://www.mgateway.com](http://www.mgateway.com)
7
7
 
8
8
  * Verified to work with Node.js v8 to v24.
9
9
  * Two connectivity models to the InterSystems or YottaDB database are provided: High performance via the local database API or network based.
@@ -1250,4 +1250,7 @@ Unless required by applicable law or agreed to in writing, software distributed
1250
1250
  * The fault occurred for strings longer than 32,767 Bytes (The old default limit for Cache databases).
1251
1251
  * Newer Cache configurations and IRIS can accept strings of up to 3,641,144 Bytes in length.
1252
1252
 
1253
+ ### v2.5.33 (18 February 2025)
1254
+
1255
+ * Correct a buffer sizing issue affecting Node.js v24 (and later).
1253
1256
 
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Chris Munt <cmunt@mgateway.com> (http://www.gateway.com/)",
3
3
  "name": "mg-dbx",
4
4
  "description": "High speed Synchronous and Asynchronous access to InterSystems Cache/IRIS and YottaDB from Node.js.",
5
- "version": "2.5.32",
5
+ "version": "2.5.33",
6
6
  "maintainers": "Chris Munt <cmunt@mgateway.com>",
7
7
  "homepage": "https://github.com/chrisemunt/mg-dbx",
8
8
  "repository": {
package/src/mg-dbx.cpp CHANGED
@@ -194,6 +194,9 @@ Version 2.5.32 8 February 2026:
194
194
  The fault occurred for strings longer than 32,767 Bytes (The old default limit for Cache databases).
195
195
  Newer Cache configurations and IRIS can accept strings of up to 3,641,144 Bytes in length.
196
196
 
197
+ Version 2.5.33 18 February 2026:
198
+ Correct a buffer sizing issue affecting Node.js v24 (and later).
199
+
197
200
  */
198
201
 
199
202
 
@@ -4330,7 +4333,8 @@ __try {
4330
4333
  str = DBX_TO_STRING(args[argc_offset]);
4331
4334
  global_name16_len = 0;
4332
4335
  global_name_len = dbx_string8_length(isolate, str, pcon->utf8);
4333
- dbx_write_char8(isolate, str, global_name, 256, pcon->utf8);
4336
+ dbx_write_char8(isolate, str, global_name, 266, pcon->utf8);
4337
+
4334
4338
  if (global_name_len == 0) {
4335
4339
  return -1;
4336
4340
  }
@@ -4419,8 +4423,8 @@ __try {
4419
4423
  pval->cvalue.buf16_addr = (unsigned short *) dbx_malloc(sizeof(unsigned short) * (len + 32), 0);
4420
4424
  pval->type = DBX_DTYPE_STR16;
4421
4425
  pval->svalue.buf_addr = NULL;
4426
+ pval->cvalue.len_alloc = len + 32; /* v2.5.33 */
4422
4427
  dbx_write_char16(isolate, str, pval->cvalue.buf16_addr);
4423
- pval->cvalue.len_alloc = len + 32;
4424
4428
  pval->cvalue.len_used = len;
4425
4429
  }
4426
4430
  else {
@@ -4429,8 +4433,8 @@ __try {
4429
4433
  pval->cvalue.buf16_addr = NULL;
4430
4434
  pval->type = DBX_DTYPE_STR;
4431
4435
  pval->svalue.buf_addr = ((char *) pval) + sizeof(DBXVAL);
4436
+ pval->svalue.len_alloc = len + 32; /* v2.5.33 */
4432
4437
  dbx_write_char8(isolate, str, pval->svalue.buf_addr, pval->svalue.len_alloc, 1);
4433
- pval->svalue.len_alloc = len + 32;
4434
4438
  pval->svalue.len_used = len;
4435
4439
  }
4436
4440
  }
package/src/mg-dbx.h CHANGED
@@ -33,7 +33,7 @@
33
33
 
34
34
  #define DBX_VERSION_MAJOR "2"
35
35
  #define DBX_VERSION_MINOR "5"
36
- #define DBX_VERSION_BUILD "32"
36
+ #define DBX_VERSION_BUILD "33"
37
37
 
38
38
  #define DBX_VERSION DBX_VERSION_MAJOR "." DBX_VERSION_MINOR "." DBX_VERSION_BUILD
39
39