@nazarkalytiuk/rusc-xlsx 1.0.10 → 2.1.0

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 (6) hide show
  1. package/README.md +115 -11
  2. package/index.d.ts +98 -14
  3. package/index.js +367 -104
  4. package/package.json +47 -20
  5. package/wrapper.d.ts +171 -510
  6. package/wrapper.js +1228 -1381
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@nazarkalytiuk/rusc-xlsx",
3
- "version": "1.0.10",
3
+ "version": "2.1.0",
4
4
  "description": "Fast Excel XLSX library for Node.js powered by rust_xlsxwriter",
5
+ "type": "commonjs",
5
6
  "main": "wrapper.js",
6
7
  "types": "wrapper.d.ts",
7
8
  "repository": {
@@ -32,12 +33,29 @@
32
33
  "artifacts": "napi artifacts",
33
34
  "build": "napi build --platform --release",
34
35
  "build:debug": "napi build --platform",
36
+ "build:wrapper": "tsdown",
37
+ "prepare": "tsdown",
35
38
  "benchmark": "node benchmarks/compare-generation.js",
36
- "prepublishOnly": "napi prepublish -t npm",
37
- "test": "jest",
39
+ "benchmark:languages": "node benchmarks/compare-languages.js",
40
+ "benchmark:runtimes": "node benchmarks/compare-runtimes.js",
41
+ "benchmark:runtimes:exceljs": "node benchmarks/compare-runtimes.js --library exceljs",
42
+ "prepublishOnly": "napi prepublish -t npm --no-gh-release",
43
+ "test": "vitest run",
44
+ "test:watch": "vitest",
45
+ "test:coverage": "vitest run --coverage",
46
+ "test:coverage:rust": "bash scripts/rust-coverage.sh",
47
+ "lint": "oxlint --deny-warnings",
48
+ "lint:rust": "cargo clippy --locked --all-targets -- -D warnings",
49
+ "fmt": "oxfmt && cargo fmt --all",
50
+ "fmt:check": "oxfmt --check && cargo fmt --all -- --check",
51
+ "lint:package": "publint --strict && attw --pack .",
52
+ "typecheck": "tsc --project tsconfig.json",
53
+ "check": "npm run fmt:check && npm run lint && npm run lint:rust && npm run lint:package && npm run typecheck && npm run coverage:check",
38
54
  "universal": "napi universalize",
39
55
  "version": "napi version",
40
- "clean": "cargo clean && rm -rf *.node"
56
+ "clean": "cargo clean && rm -rf *.node",
57
+ "coverage:sync": "node scripts/coverage-checklist/cli.mts",
58
+ "coverage:check": "node scripts/coverage-checklist/cli.mts --check"
41
59
  },
42
60
  "keywords": [
43
61
  "xlsx",
@@ -59,24 +77,33 @@
59
77
  "LICENSE"
60
78
  ],
61
79
  "devDependencies": {
62
- "@napi-rs/cli": "^3.0.0",
63
- "@types/jest": "^29.5.12",
64
- "@types/node": "^20.11.19",
65
- "adm-zip": "^0.6.0",
66
- "jest": "^29.7.0",
67
- "ts-jest": "^29.1.2",
68
- "typescript": "^5.3.3"
80
+ "@arethetypeswrong/cli": "^0.18.5",
81
+ "@napi-rs/cli": "^3.10.12",
82
+ "@types/node": "^26.6.6",
83
+ "@vitest/coverage-v8": "^5.1.0",
84
+ "adm-zip": "^0.6.1",
85
+ "exceljs": "^4.4.0",
86
+ "oxc-parser": "^0.158.0",
87
+ "oxfmt": "^0.78.0",
88
+ "oxlint": "^1.93.0",
89
+ "publint": "^0.3.25",
90
+ "tsdown": "^0.23.7",
91
+ "typescript": "^7.0.2",
92
+ "vitest": "^5.1.0"
69
93
  },
70
94
  "engines": {
71
- "node": ">=16"
95
+ "node": ">=22.13.0"
96
+ },
97
+ "publishConfig": {
98
+ "access": "public"
72
99
  },
73
100
  "optionalDependencies": {
74
- "@nazarkalytiuk/rusc-xlsx-win32-x64-msvc": "1.0.10",
75
- "@nazarkalytiuk/rusc-xlsx-win32-ia32-msvc": "1.0.10",
76
- "@nazarkalytiuk/rusc-xlsx-win32-arm64-msvc": "1.0.10",
77
- "@nazarkalytiuk/rusc-xlsx-darwin-universal": "1.0.10",
78
- "@nazarkalytiuk/rusc-xlsx-linux-x64-gnu": "1.0.10",
79
- "@nazarkalytiuk/rusc-xlsx-linux-arm64-gnu": "1.0.10",
80
- "@nazarkalytiuk/rusc-xlsx-linux-x64-musl": "1.0.10"
101
+ "@nazarkalytiuk/rusc-xlsx-win32-x64-msvc": "2.1.0",
102
+ "@nazarkalytiuk/rusc-xlsx-win32-ia32-msvc": "2.1.0",
103
+ "@nazarkalytiuk/rusc-xlsx-win32-arm64-msvc": "2.1.0",
104
+ "@nazarkalytiuk/rusc-xlsx-darwin-universal": "2.1.0",
105
+ "@nazarkalytiuk/rusc-xlsx-linux-x64-gnu": "2.1.0",
106
+ "@nazarkalytiuk/rusc-xlsx-linux-arm64-gnu": "2.1.0",
107
+ "@nazarkalytiuk/rusc-xlsx-linux-x64-musl": "2.1.0"
81
108
  }
82
- }
109
+ }