splaytree 3.1.2 → 3.2.1

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,59 +1,46 @@
1
1
  {
2
2
  "name": "splaytree",
3
- "version": "3.1.2",
3
+ "version": "3.2.1",
4
4
  "author": "Alexander Milevski <info@w8r.name>",
5
5
  "license": "MIT",
6
6
  "description": "Fast Splay tree for Node and browser",
7
- "main": "dist/splay.js",
8
- "browser": "dist/splay.js",
9
- "unpkg": "dist/splay.js",
10
- "module": "dist/splay.esm.js",
11
- "types": "typings/index.d.ts",
7
+ "type": "module",
8
+ "main": "dist/splaytree.umd.js",
9
+ "browser": "dist/splaytree.umd.js",
10
+ "unpkg": "dist/splaytree.umd.js",
11
+ "module": "dist/splaytree.mjs",
12
+ "types": "dist/types/index.d.ts",
12
13
  "files": [
13
14
  "dist",
14
- "typings",
15
15
  "src"
16
16
  ],
17
17
  "directories": {
18
- "test": "test",
19
- "typings": "typings"
18
+ "test": "tests"
20
19
  },
21
20
  "repository": {
22
21
  "type": "git",
23
22
  "url": "https://github.com/w8r/splay-tree.git"
24
23
  },
25
24
  "scripts": {
26
- "lint": "tslint --project tsconfig.json ./src/*.ts",
27
- "build": "rollup -c && npm run types",
28
- "types": "tsc --declaration --emitDeclarationOnly",
29
- "prebenchmark": "npm run build",
30
- "benchmark": "node -r reify bench/benchmark.js",
31
- "start": "npm run test:watch",
32
- "test:watch": "nodemon --watch index.js --watch tests --exec 'npm test'",
33
- "test": "nyc mocha tests/**/*.test.ts",
34
- "posttest": "nyc report --reporter=json",
25
+ "build": "vite build",
26
+ "types": "tsc --declaration --emitDeclarationOnly -p tsconfig.build.json",
27
+ "test": "vitest",
28
+ "test:watch": "vitest watch",
29
+ "bench": "vitest bench",
30
+ "coverage": "vitest run --coverage",
31
+ "lint": "oxlint src tests",
35
32
  "prepublishOnly": "npm run build && npm test",
36
- "clean": "rm -rf dist coverage .nyc",
37
- "coverage": "codecov -f coverage/*.json"
33
+ "clean": "rm -rf dist coverage .nyc"
38
34
  },
39
35
  "devDependencies": {
40
- "@types/chai": "^4.1.4",
41
- "@types/mocha": "^5.2.2",
42
- "avl": "^1.4.4",
43
- "benchmark": "^2.1.4",
44
- "bintrees": "^1.0.2",
45
- "chai": "^4.2.0",
46
- "codecov": "^3.8.3",
47
- "mocha": "^6.2.0",
48
- "nodemon": "^2.0.20",
49
- "nyc": "^14.1.1",
50
- "reify": "*",
51
- "rollup": "*",
52
- "rollup-plugin-typescript2": "^0.24.1",
53
- "ts-node": "^6.1.1",
54
- "tslib": "^1.9.3",
55
- "tslint": "^5.14.0",
56
- "typescript": "^2.9.2"
36
+ "@vitest/coverage-v8": "4.0.16",
37
+ "avl": "2.0.0",
38
+ "bintrees": "1.0.2",
39
+ "oxlint": "1.35.0",
40
+ "typescript": "5.8.2",
41
+ "vite": "7.3.0",
42
+ "vite-plugin-dts": "4.5.4",
43
+ "vitest": "4.0.16"
57
44
  },
58
45
  "keywords": [
59
46
  "binary-tree",
@@ -62,30 +49,14 @@
62
49
  "splay",
63
50
  "balanced-search-tree"
64
51
  ],
65
- "mocha": {
66
- "require": [
67
- "ts-node/register"
68
- ]
52
+ "exports": {
53
+ ".": {
54
+ "types": "./dist/types/index.d.ts",
55
+ "import": "./dist/splaytree.mjs",
56
+ "require": "./dist/splaytree.umd.js"
57
+ }
69
58
  },
70
- "nyc": {
71
- "include": [
72
- "src/*.ts"
73
- ],
74
- "exclude": [
75
- "tests/**/*.ts"
76
- ],
77
- "extension": [
78
- ".ts"
79
- ],
80
- "require": [
81
- "ts-node/register"
82
- ],
83
- "reporter": [
84
- "text-summary",
85
- "html"
86
- ],
87
- "sourceMap": true,
88
- "instrument": true
89
- },
90
- "dependencies": {}
59
+ "engines": {
60
+ "node": ">=18.20 || >=20"
61
+ }
91
62
  }