@karmaniverous/entity-manager 6.1.0-2 → 6.1.0-4

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.
@@ -1,21 +1,26 @@
1
- import { getDefaultExportFromCjs } from '../../_virtual/_commonjsHelpers.js';
1
+ var stringHash;
2
+ var hasRequiredStringHash;
2
3
 
3
- function hash(str) {
4
- var hash = 5381,
5
- i = str.length;
4
+ function requireStringHash () {
5
+ if (hasRequiredStringHash) return stringHash;
6
+ hasRequiredStringHash = 1;
6
7
 
7
- while(i) {
8
- hash = (hash * 33) ^ str.charCodeAt(--i);
9
- }
8
+ function hash(str) {
9
+ var hash = 5381,
10
+ i = str.length;
10
11
 
11
- /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
12
- * integers. Since we want the results to be always positive, convert the
13
- * signed int to an unsigned by doing an unsigned bitshift. */
14
- return hash >>> 0;
15
- }
12
+ while(i) {
13
+ hash = (hash * 33) ^ str.charCodeAt(--i);
14
+ }
16
15
 
17
- var stringHash = hash;
16
+ /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed
17
+ * integers. Since we want the results to be always positive, convert the
18
+ * signed int to an unsigned by doing an unsigned bitshift. */
19
+ return hash >>> 0;
20
+ }
18
21
 
19
- var stringHash$1 = /*@__PURE__*/getDefaultExportFromCjs(stringHash);
22
+ stringHash = hash;
23
+ return stringHash;
24
+ }
20
25
 
21
- export { stringHash$1 as default };
26
+ export { requireStringHash as __require };
@@ -1,5 +1,5 @@
1
1
  import { sort } from '../node_modules/@karmaniverous/entity-tools/dist/mjs/sort.js';
2
- import lzString from '../node_modules/lz-string/libs/lz-string.js';
2
+ import lzString from '../_virtual/lz-string.js';
3
3
  import { dehydratePageKeyMap } from './dehydratePageKeyMap.js';
4
4
  import { rehydratePageKeyMap } from './rehydratePageKeyMap.js';
5
5
  import { validateEntityGeneratedProperty } from './validateEntityGeneratedProperty.js';
@@ -1,5 +1,5 @@
1
1
  import { isNil } from '../node_modules/@karmaniverous/entity-tools/dist/mjs/Nil.js';
2
- import stringHash from '../node_modules/string-hash/index.js';
2
+ import stringHash from '../_virtual/index.js';
3
3
  import { getShardBump } from './getShardBump.js';
4
4
  import { validateEntityToken } from './validateEntityToken.js';
5
5
 
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/karmaniverous/entity-manager/issues"
5
5
  },
6
6
  "dependencies": {
7
- "@karmaniverous/entity-tools": "^0.2.3",
7
+ "@karmaniverous/entity-tools": "^0.2.4",
8
8
  "@karmaniverous/string-utilities": "^0.2.1",
9
9
  "jsonschema": "^1.4.1",
10
10
  "lz-string": "^1.5.0",
@@ -14,60 +14,60 @@
14
14
  },
15
15
  "description": "Rational indexing & cross-shard querying at scale in your NoSQL database so you can focus on your application logic.",
16
16
  "devDependencies": {
17
- "@dotenvx/dotenvx": "^1.14.1",
18
- "@eslint/js": "^9.10.0",
19
- "@faker-js/faker": "^9.0.1",
17
+ "@dotenvx/dotenvx": "^1.15.0",
18
+ "@eslint/js": "^9.12.0",
19
+ "@faker-js/faker": "^9.0.3",
20
20
  "@karmaniverous/mock-db": "^0.3.1",
21
- "@rollup/plugin-alias": "^5.1.0",
22
- "@rollup/plugin-commonjs": "^26.0.1",
21
+ "@rollup/plugin-alias": "^5.1.1",
22
+ "@rollup/plugin-commonjs": "^28.0.0",
23
23
  "@rollup/plugin-json": "^6.1.0",
24
- "@rollup/plugin-node-resolve": "^15.2.3",
24
+ "@rollup/plugin-node-resolve": "^15.3.0",
25
25
  "@rollup/plugin-strip": "^3.0.4",
26
- "@rollup/plugin-typescript": "^11.1.6",
27
- "@types/chai": "^4.3.19",
26
+ "@rollup/plugin-typescript": "^12.1.0",
27
+ "@types/chai": "^5.0.0",
28
28
  "@types/eslint__js": "^8.42.3",
29
29
  "@types/eslint-config-prettier": "^6.11.3",
30
30
  "@types/eslint-plugin-mocha": "^10.4.0",
31
31
  "@types/mocha": "^10.0.8",
32
- "@types/node": "^22.5.5",
32
+ "@types/node": "^22.7.4",
33
33
  "@types/string-hash": "^1.1.3",
34
34
  "auto-changelog": "^2.5.0",
35
35
  "chai": "^5.1.1",
36
36
  "cross-env": "^7.0.3",
37
- "eslint": "^9.10.0",
37
+ "eslint": "^9.12.0",
38
38
  "eslint-config-prettier": "^9.1.0",
39
39
  "eslint-plugin-mocha": "^10.5.0",
40
40
  "eslint-plugin-simple-import-sort": "^12.1.1",
41
41
  "eslint-plugin-tsdoc": "^0.3.0",
42
42
  "jsdom-global": "^3.0.2",
43
- "knip": "^5.30.2",
44
- "lefthook": "^1.7.15",
43
+ "knip": "^5.32.0",
44
+ "lefthook": "^1.7.18",
45
45
  "mocha": "^10.7.3",
46
- "nyc": "^17.0.0",
46
+ "nyc": "^17.1.0",
47
47
  "prettier": "^3.3.3",
48
- "release-it": "^17.6.0",
48
+ "release-it": "^17.7.0",
49
49
  "rimraf": "^6.0.1",
50
- "rollup": "^4.21.3",
50
+ "rollup": "^4.24.0",
51
51
  "rollup-plugin-dts": "^6.1.1",
52
52
  "source-map-support": "^0.5.21",
53
53
  "ts-node": "^10.9.2",
54
54
  "tslib": "^2.7.0",
55
- "typedoc": "^0.26.7",
56
- "typedoc-plugin-mdn-links": "^3.2.12",
55
+ "typedoc": "^0.26.8",
56
+ "typedoc-plugin-mdn-links": "^3.3.2",
57
57
  "typedoc-plugin-replace-text": "^4.0.0",
58
58
  "typedoc-plugin-zod": "^1.2.1",
59
59
  "typescript": "^5.6.2",
60
- "typescript-eslint": "^8.6.0"
60
+ "typescript-eslint": "^8.8.0"
61
61
  },
62
62
  "exports": {
63
63
  ".": {
64
64
  "import": {
65
65
  "types": "./dist/index.d.mts",
66
- "default": "./dist/mjs/index.js"
66
+ "default": "./dist/mjs/src/index.js"
67
67
  },
68
68
  "require": {
69
69
  "types": "./dist/index.d.cts",
70
- "default": "./dist/cjs/index.js"
70
+ "default": "./dist/cjs/src/index.js"
71
71
  }
72
72
  }
73
73
  },
@@ -80,8 +80,8 @@
80
80
  "sharding"
81
81
  ],
82
82
  "license": "BSD-3-Clause",
83
- "main": "dist/cjs/index.js",
84
- "module": "dist/mjs/index.js",
83
+ "main": "dist/cjs/src/index.js",
84
+ "module": "dist/mjs/src/index.js",
85
85
  "name": "@karmaniverous/entity-manager",
86
86
  "publishConfig": {
87
87
  "access": "public"
@@ -132,5 +132,5 @@
132
132
  },
133
133
  "type": "module",
134
134
  "types": "dist/index.d.ts",
135
- "version": "6.1.0-2"
135
+ "version": "6.1.0-4"
136
136
  }