ueberdb2 4.2.88 → 4.2.89

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 (2) hide show
  1. package/dist/index.js +50 -43
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -218614,54 +218614,46 @@ const coerce$2 = (version, options) => {
218614
218614
 
218615
218615
  return parse$7(`${major}.${minor}.${patch}${prerelease}${build}`, options)
218616
218616
  };
218617
- var coerce_1 = coerce$2;var lrucache;
218618
- var hasRequiredLrucache;
218619
-
218620
- function requireLrucache () {
218621
- if (hasRequiredLrucache) return lrucache;
218622
- hasRequiredLrucache = 1;
218623
- class LRUCache {
218624
- constructor () {
218625
- this.max = 1000;
218626
- this.map = new Map();
218627
- }
218617
+ var coerce_1 = coerce$2;let LRUCache$1=class LRUCache {
218618
+ constructor () {
218619
+ this.max = 1000;
218620
+ this.map = new Map();
218621
+ }
218628
218622
 
218629
- get (key) {
218630
- const value = this.map.get(key);
218631
- if (value === undefined) {
218632
- return undefined
218633
- } else {
218634
- // Remove the key from the map and add it to the end
218635
- this.map.delete(key);
218636
- this.map.set(key, value);
218637
- return value
218638
- }
218639
- }
218623
+ get (key) {
218624
+ const value = this.map.get(key);
218625
+ if (value === undefined) {
218626
+ return undefined
218627
+ } else {
218628
+ // Remove the key from the map and add it to the end
218629
+ this.map.delete(key);
218630
+ this.map.set(key, value);
218631
+ return value
218632
+ }
218633
+ }
218640
218634
 
218641
- delete (key) {
218642
- return this.map.delete(key)
218643
- }
218635
+ delete (key) {
218636
+ return this.map.delete(key)
218637
+ }
218644
218638
 
218645
- set (key, value) {
218646
- const deleted = this.delete(key);
218639
+ set (key, value) {
218640
+ const deleted = this.delete(key);
218647
218641
 
218648
- if (!deleted && value !== undefined) {
218649
- // If cache is full, delete the least recently used item
218650
- if (this.map.size >= this.max) {
218651
- const firstKey = this.map.keys().next().value;
218652
- this.delete(firstKey);
218653
- }
218642
+ if (!deleted && value !== undefined) {
218643
+ // If cache is full, delete the least recently used item
218644
+ if (this.map.size >= this.max) {
218645
+ const firstKey = this.map.keys().next().value;
218646
+ this.delete(firstKey);
218647
+ }
218654
218648
 
218655
- this.map.set(key, value);
218656
- }
218649
+ this.map.set(key, value);
218650
+ }
218657
218651
 
218658
- return this
218659
- }
218660
- }
218652
+ return this
218653
+ }
218654
+ };
218661
218655
 
218662
- lrucache = LRUCache;
218663
- return lrucache;
218664
- }var range;
218656
+ var lrucache = LRUCache$1;var range;
218665
218657
  var hasRequiredRange;
218666
218658
 
218667
218659
  function requireRange () {
@@ -218881,7 +218873,7 @@ function requireRange () {
218881
218873
 
218882
218874
  range = Range;
218883
218875
 
218884
- const LRU = requireLrucache();
218876
+ const LRU = lrucache;
218885
218877
  const cache = new LRU();
218886
218878
 
218887
218879
  const parseOptions = parseOptions_1;
@@ -279507,6 +279499,16 @@ let Packet$l=class Packet {
279507
279499
  return parseGeometry();
279508
279500
  }
279509
279501
 
279502
+ parseVector() {
279503
+ const bufLen = this.readLengthCodedNumber();
279504
+ const vectorEnd = this.offset + bufLen;
279505
+ const result = [];
279506
+ while (this.offset < vectorEnd && this.offset < this.end) {
279507
+ result.push(this.readFloat());
279508
+ }
279509
+ return result;
279510
+ }
279511
+
279510
279512
  parseDate(timezone) {
279511
279513
  const strLen = this.readLengthCodedNumber();
279512
279514
  if (strLen === null) {
@@ -280186,6 +280188,7 @@ function requireTypes () {
280186
280188
  types$3.exports.NEWDATE = 0x0e; // aka ?
280187
280189
  types$3.exports.VARCHAR = 0x0f; // aka VARCHAR (?)
280188
280190
  types$3.exports.BIT = 0x10; // aka BIT, 1-8 byte
280191
+ types$3.exports.VECTOR = 0xf2;
280189
280192
  types$3.exports.JSON = 0xf5;
280190
280193
  types$3.exports.NEWDECIMAL = 0xf6; // aka DECIMAL
280191
280194
  types$3.exports.ENUM = 0xf7; // aka ENUM
@@ -284021,6 +284024,8 @@ function readCodeFor$1(type, charset, encodingExpr, config, options) {
284021
284024
  return 'packet.readLengthCodedString("ascii")';
284022
284025
  case Types$2.GEOMETRY:
284023
284026
  return 'packet.parseGeometryValue()';
284027
+ case Types$2.VECTOR:
284028
+ return 'packet.parseVector()';
284024
284029
  case Types$2.JSON:
284025
284030
  // Since for JSON columns mysql always returns charset 63 (BINARY),
284026
284031
  // we have to handle it according to JSON specs and use "utf8",
@@ -284559,6 +284564,8 @@ function readCodeFor(field, config, options, fieldNum) {
284559
284564
  return 'packet.readLengthCodedString("ascii");';
284560
284565
  case Types$1.GEOMETRY:
284561
284566
  return 'packet.parseGeometryValue();';
284567
+ case Types$1.VECTOR:
284568
+ return 'packet.parseVector()';
284562
284569
  case Types$1.JSON:
284563
284570
  // Since for JSON columns mysql always returns charset 63 (BINARY),
284564
284571
  // we have to handle it according to JSON specs and use "utf8",
@@ -285364,7 +285371,7 @@ var commands$7 = {
285364
285371
  ChangeUser,
285365
285372
  Quit
285366
285373
  };var name$1 = "mysql2";
285367
- var version$2 = "3.10.3";
285374
+ var version$2 = "3.11.0";
285368
285375
  var description = "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS";
285369
285376
  var main$1 = "index.js";
285370
285377
  var typings = "typings/mysql/index";
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "@types/async": "^3.2.24",
31
31
  "@types/better-sqlite3": "^7.6.11",
32
32
  "@types/mssql": "^9.1.5",
33
- "@types/node": "^20.14.12",
33
+ "@types/node": "^22.0.0",
34
34
  "@types/pg": "^8.11.5",
35
35
  "@types/rethinkdb": "^2.3.21",
36
36
  "async": "^3.2.5",
@@ -44,7 +44,7 @@
44
44
  "eslint-plugin-import": "^2.29.1",
45
45
  "mongodb": "^6.8.0",
46
46
  "mssql": "^11.0.1",
47
- "mysql2": "^3.10.3",
47
+ "mysql2": "^3.11.0",
48
48
  "nano": "^10.1.3",
49
49
  "pg": "^8.12.0",
50
50
  "randexp-ts": "^1.0.5",
@@ -57,14 +57,14 @@
57
57
  "typescript": "^5.5.4",
58
58
  "vitest": "^2.0.4",
59
59
  "wtfnode": "^0.9.3",
60
- "rollup": "^4.19.0"
60
+ "rollup": "^4.19.1"
61
61
  },
62
62
  "repository": {
63
63
  "type": "git",
64
64
  "url": "https://github.com/ether/ueberDB.git"
65
65
  },
66
66
  "main": "./dist/index.js",
67
- "version": "4.2.88",
67
+ "version": "4.2.89",
68
68
  "bugs": {
69
69
  "url": "https://github.com/ether/ueberDB/issues"
70
70
  },