caseparser 5.1.0 → 6.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "caseparser",
3
- "version": "5.1.0",
3
+ "version": "6.0.0",
4
4
  "description": "Convert Strings/Arrays/Objects from a type of case to another one.",
5
5
  "author": "Fernando Machado Bernardino <fernandombernardino@gmail.com>",
6
6
  "homepage": "https://github.com/NandoMB/caseparser#readme",
@@ -19,6 +19,9 @@
19
19
  "provenance": true
20
20
  },
21
21
  "sideEffects": false,
22
+ "engines": {
23
+ "node": ">=22"
24
+ },
22
25
  "main": "./dist/index.cjs",
23
26
  "module": "./dist/index.js",
24
27
  "types": "./dist/index.d.ts",
@@ -51,9 +54,11 @@
51
54
  "test:browser": "vitest run --project browser",
52
55
  "test:bun": "bunx --bun vitest run --project node",
53
56
  "test:deno": "deno run -A node_modules/vitest/vitest.mjs run --project node",
54
- "test:ts-legacy": "node node_modules/typescript-4.1/bin/tsc -p test/typescript-4.1",
57
+ "test:ts-legacy": "node node_modules/typescript-4.7/bin/tsc -p test/typescript-4.7",
58
+ "test:worker": "node scripts/test-worker.js",
55
59
  "lint:jsr": "deno publish --dry-run --allow-dirty",
56
- "test:ci": "pnpm run ci && pnpm run test:ts-legacy && pnpm run test:browser && pnpm run test:bun && pnpm run test:deno && pnpm run lint:jsr"
60
+ "test:ci": "pnpm run ci && pnpm run test:ts-legacy && pnpm run test:browser && pnpm run test:bun && pnpm run test:deno && pnpm run test:worker && pnpm run lint:jsr",
61
+ "benchmark": "pnpm run build && pnpm --dir bench install --frozen-lockfile && pnpm --dir bench run all"
57
62
  },
58
63
  "devDependencies": {
59
64
  "@arethetypeswrong/cli": "^0.18.5",
@@ -65,7 +70,7 @@
65
70
  "publint": "^0.3.24",
66
71
  "tsdown": "^0.23.0",
67
72
  "typescript": "^7.0.2",
68
- "typescript-4.1": "npm:typescript@4.1.6",
73
+ "typescript-4.7": "npm:typescript@4.7.4",
69
74
  "vitest": "^5.0.1"
70
75
  },
71
76
  "keywords": [