k2hash 2.0.2 → 2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "k2hash",
3
- "version": "2.0.2",
3
+ "version": "2.0.4",
4
4
  "description": "K2HASH addon library for Node.js",
5
5
  "os": "linux",
6
6
  "main": "index.js",
@@ -20,27 +20,29 @@
20
20
  "buildutils/make_node_prebuild_variables.sh",
21
21
  "buildutils/node_prebuild_install.sh",
22
22
  "buildutils/node_prebuild.sh",
23
+ "tsconfig.json",
24
+ "tsconfig.*.json",
23
25
  "README.md",
24
26
  "LICENSE"
25
27
  ],
26
28
  "dependencies": {
27
29
  "bindings": "^1.5.0",
28
- "node-addon-api": "^8.5.0",
30
+ "node-addon-api": "^8.6.0",
29
31
  "prebuild-install": "^7.1.3"
30
32
  },
31
33
  "devDependencies": {
32
- "@rollup/plugin-commonjs": "^29.0.0",
34
+ "@rollup/plugin-commonjs": "^29.0.2",
33
35
  "@rollup/plugin-node-resolve": "^16.0.3",
34
36
  "@rollup/plugin-replace": "^6.0.3",
35
- "@rollup/plugin-terser": "^0.4.4",
37
+ "@rollup/plugin-terser": "^1.0.0",
36
38
  "@types/chai": "^5.2.3",
37
39
  "@types/mocha": "^10.0.10",
38
- "@types/node": "^25.0.3",
40
+ "@types/node": "^25.5.0",
39
41
  "chai": "^6.2.2",
40
42
  "mocha": "^11.7.5",
41
- "node-gyp": "^12.1.0",
43
+ "node-gyp": "^12.2.0",
42
44
  "prebuild": "^13.0.1",
43
- "rollup": "^4.54.0",
45
+ "rollup": "^4.59.0",
44
46
  "typescript": "^5.9.3",
45
47
  "ts-node": "^10.9.2"
46
48
  },
@@ -104,6 +106,7 @@
104
106
  "license": "MIT",
105
107
  "exports": {
106
108
  ".": {
109
+ "types": "./types/index.d.ts",
107
110
  "import": "./index.mjs",
108
111
  "require": "./index.js"
109
112
  }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES2019",
5
+ "module": "CommonJS",
6
+ "declaration": false,
7
+ "emitDeclarationOnly": false,
8
+ "outDir": "build/cjs",
9
+ "esModuleInterop": true
10
+ },
11
+ "include": [
12
+ "src/**/*"
13
+ ]
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "target": "ES2019",
5
+ "module": "ESNext",
6
+ "declaration": false,
7
+ "emitDeclarationOnly": false,
8
+ "outDir": "build/esm",
9
+ "esModuleInterop": true
10
+ },
11
+ "include": [
12
+ "src/**/*"
13
+ ]
14
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2019",
4
+ "module": "CommonJS",
5
+ "declaration": false,
6
+ "declarationMap": false,
7
+ "emitDeclarationOnly": false,
8
+ "outDir": "build",
9
+ "rootDir": "src",
10
+ "strict": true,
11
+ "esModuleInterop": true,
12
+ "skipLibCheck": true,
13
+ "moduleResolution": "node",
14
+ "allowJs": false,
15
+ "checkJs": false,
16
+ "resolveJsonModule": true,
17
+ "types": ["node"]
18
+ },
19
+ "include": [
20
+ "src/**/*.ts"
21
+ ],
22
+ "exclude": [
23
+ "node_modules",
24
+ "build",
25
+ "dist",
26
+ "types"
27
+ ]
28
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "extends": "./tsconfig.cjs.json",
3
+ "compilerOptions": {
4
+ "outDir": "tests_cjs",
5
+ "rootDir": "tests",
6
+ "sourceMap": false
7
+ },
8
+ "include": [
9
+ "tests/**/*"
10
+ ]
11
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "emitDeclarationOnly": true,
6
+ "outDir": "types-generated",
7
+ "rootDir": "src",
8
+ "skipLibCheck": true
9
+ },
10
+ "include": [
11
+ "src/**/*"
12
+ ]
13
+ }
package/types/index.d.ts CHANGED
@@ -558,6 +558,9 @@ declare module 'k2hash'
558
558
  export type K2hQueue = k2hash.K2hQueue;
559
559
  export type K2hKeyQueue = k2hash.K2hKeyQueue;
560
560
  export type K2hashFactoryType = k2hash.K2hashFactoryType;
561
+
562
+ // Add convenient alias (PascalCase)
563
+ export type K2hash = K2hNode;
561
564
  }
562
565
 
563
566
  /*