spliterator 1.7.0 → 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 (68) hide show
  1. package/README.md +12 -0
  2. package/out/index.d.ts +1 -0
  3. package/out/index.d.ts.map +1 -1
  4. package/out/index.js +1 -0
  5. package/out/index.js.map +1 -1
  6. package/out/lib/AsyncSpliterator.d.ts +5 -23
  7. package/out/lib/AsyncSpliterator.d.ts.map +1 -1
  8. package/out/lib/AsyncSpliterator.js +41 -319
  9. package/out/lib/AsyncSpliterator.js.map +1 -1
  10. package/out/lib/BufferController.d.ts +10 -7
  11. package/out/lib/BufferController.d.ts.map +1 -1
  12. package/out/lib/BufferController.js +15 -12
  13. package/out/lib/BufferController.js.map +1 -1
  14. package/out/lib/CSVSpliterator.d.ts +15 -3
  15. package/out/lib/CSVSpliterator.d.ts.map +1 -1
  16. package/out/lib/CSVSpliterator.js +24 -9
  17. package/out/lib/CSVSpliterator.js.map +1 -1
  18. package/out/lib/CharacterSequence.d.ts +1 -1
  19. package/out/lib/CharacterSequence.d.ts.map +1 -1
  20. package/out/lib/CharacterSequence.js +5 -12
  21. package/out/lib/CharacterSequence.js.map +1 -1
  22. package/out/lib/CompositeDataView.d.ts +9 -1
  23. package/out/lib/CompositeDataView.d.ts.map +1 -1
  24. package/out/lib/CompositeDataView.js.map +1 -1
  25. package/out/lib/IndexQueue.d.ts +0 -13
  26. package/out/lib/IndexQueue.d.ts.map +1 -1
  27. package/out/lib/IndexQueue.js +10 -53
  28. package/out/lib/IndexQueue.js.map +1 -1
  29. package/out/lib/JSONSpliterator.d.ts +3 -3
  30. package/out/lib/JSONSpliterator.d.ts.map +1 -1
  31. package/out/lib/JSONSpliterator.js.map +1 -1
  32. package/out/lib/SlidingWindow.d.ts +2 -2
  33. package/out/lib/SlidingWindow.d.ts.map +1 -1
  34. package/out/lib/SlidingWindow.js +8 -4
  35. package/out/lib/SlidingWindow.js.map +1 -1
  36. package/out/lib/Spliterator.d.ts +5 -13
  37. package/out/lib/Spliterator.d.ts.map +1 -1
  38. package/out/lib/Spliterator.js +0 -19
  39. package/out/lib/Spliterator.js.map +1 -1
  40. package/out/lib/TSVSpliterator.d.ts +21 -0
  41. package/out/lib/TSVSpliterator.d.ts.map +1 -0
  42. package/out/lib/TSVSpliterator.js +22 -0
  43. package/out/lib/TSVSpliterator.js.map +1 -0
  44. package/out/lib/TextSpliterator.d.ts +3 -3
  45. package/out/lib/TextSpliterator.d.ts.map +1 -1
  46. package/out/lib/TextSpliterator.js +2 -0
  47. package/out/lib/TextSpliterator.js.map +1 -1
  48. package/out/lib/shared.d.ts +0 -4
  49. package/out/lib/shared.d.ts.map +1 -1
  50. package/out/lib/shared.js +2 -0
  51. package/out/lib/shared.js.map +1 -1
  52. package/out/lib/writer.d.ts +1 -1
  53. package/out/lib/writer.d.ts.map +1 -1
  54. package/out/lib/writer.js +1 -1
  55. package/out/lib/writer.js.map +1 -1
  56. package/out/node/cli/commands/csv.d.ts +2 -2
  57. package/out/node/cli/commands/csv.d.ts.map +1 -1
  58. package/out/node/cli/commands/csv.js +1 -0
  59. package/out/node/cli/commands/csv.js.map +1 -1
  60. package/out/node/cli/commands/iterate.d.ts +2 -2
  61. package/out/node/cli/commands/iterate.d.ts.map +1 -1
  62. package/out/node/cli/utils.d.ts +1 -1
  63. package/out/node/cli/utils.d.ts.map +1 -1
  64. package/out/node/fs/index.d.ts +3 -20
  65. package/out/node/fs/index.d.ts.map +1 -1
  66. package/out/node/fs/index.js +3 -31
  67. package/out/node/fs/index.js.map +1 -1
  68. package/package.json +33 -28
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spliterator",
3
- "version": "1.7.0",
3
+ "version": "2.1.0",
4
4
  "description": "Line-delimited iterator library for CSV, NDJSON, and other delimited formats.",
5
5
  "keywords": [
6
6
  "csv",
@@ -43,56 +43,61 @@
43
43
  "out/cli/**/*"
44
44
  ],
45
45
  "scripts": {
46
- "demo": "node out/examples/simple-iteration.js",
46
+ "check-types": "tsc --build .",
47
+ "clean": "tsc -b --clean",
47
48
  "compile": "NODE_OPTIONS=\"--max-old-space-size=3000\" tsc -b",
48
- "test": "vitest run",
49
- "test:watch": "vitest watch",
49
+ "demo": "node out/examples/simple-iteration.js",
50
50
  "lint": "run-s lint:prettier:check lint:eslint:check",
51
+ "lint:eslint:check": "eslint .",
52
+ "lint:eslint:fix": "eslint --fix .",
51
53
  "lint:fix": "run-s lint:prettier:fix lint:eslint:fix",
54
+ "lint:prettier": "eslint .",
52
55
  "lint:prettier:check": "prettier --cache --check -u .",
53
56
  "lint:prettier:fix": "prettier --cache --write -u .",
54
- "lint:prettier": "eslint .",
55
- "lint:eslint:check": "eslint .",
56
- "lint:eslint:fix": "eslint --fix .",
57
- "release": "release-it"
57
+ "release": "release-it",
58
+ "test": "yarn compile && vitest"
58
59
  },
59
60
  "prettier": "@sister.software/prettier-config",
60
61
  "dependencies": {
61
- "change-case": "^5.4.4",
62
- "yargs": "^17.2.1"
62
+ "yargs": "^18.0.0"
63
63
  },
64
64
  "devDependencies": {
65
- "@sister.software/eslint-config": "7.1.3",
66
- "@sister.software/prettier-config": "7.1.3",
67
- "@sister.software/tsconfig": "7.1.3",
68
- "@types/node": "^22.10.2",
69
- "@types/yargs": "^17.0.33",
65
+ "@sister.software/eslint-config": "^8.0.1",
66
+ "@sister.software/prettier-config": "^8.0.1",
67
+ "@sister.software/tsconfig": "^8.0.1",
68
+ "@types/node": "^25.9.0",
69
+ "@types/yargs": "^17.0.35",
70
+ "change-case": "^5.4.4",
70
71
  "colorette": "^2.0.20",
71
- "eslint": "^9.13.0",
72
- "eslint-config-prettier": "^9.1.0",
72
+ "eslint": "^10.4.0",
73
+ "eslint-config-prettier": "^10.1.8",
73
74
  "npm-run-all": "^4.1.5",
74
75
  "path-ts": "^1.0.5",
75
- "prettier": "^3.3.3",
76
- "prettier-plugin-jsdoc": "^1.3.0",
77
- "prettier-plugin-organize-imports": "^4.1.0",
78
- "prettier-plugin-packagejson": "^2.5.3",
76
+ "prettier": "^3.8.3",
77
+ "prettier-plugin-jsdoc": "^1.8.0",
78
+ "prettier-plugin-organize-imports": "^4.3.0",
79
+ "prettier-plugin-packagejson": "^3.0.2",
79
80
  "release-it": "^17.10.0",
80
- "type-fest": "^5.5.0",
81
- "typescript": "^5.6.3",
82
- "typescript-eslint": "^8.11.0",
83
- "vitest": "2.1.8"
81
+ "type-fest": "^5.6.0",
82
+ "typescript": "^6.0.3",
83
+ "typescript-eslint": "^8.59.4",
84
+ "vitest": "^4.1.6"
84
85
  },
85
86
  "peerDependencies": {
86
- "type-fest": ">=5.5.0"
87
+ "change-case": "^5.4.4",
88
+ "type-fest": "^5.6.0"
87
89
  },
88
90
  "peerDependenciesMeta": {
91
+ "change-case": {
92
+ "optional": true
93
+ },
89
94
  "type-fest": {
90
95
  "optional": true
91
96
  }
92
97
  },
93
- "packageManager": "yarn@4.13.0",
98
+ "packageManager": "yarn@4.5.1",
94
99
  "engines": {
95
- "node": ">=24.0"
100
+ "node": ">= 24.0.0"
96
101
  },
97
102
  "publishConfig": {
98
103
  "access": "public",