@reventlessdev/rescript-fast-csv 2.0.0-alpha.13 → 2.0.0-alpha.15

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 2.0.0-alpha.15 (2026-09-23)
7
+
8
+ **Note:** Version bump only for package @reventlessdev/rescript-fast-csv
9
+
10
+
11
+
12
+
13
+
14
+ # 2.0.0-alpha.14 (2026-09-23)
15
+
16
+ **Note:** Version bump only for package @reventlessdev/rescript-fast-csv
17
+
18
+
19
+
20
+
21
+
6
22
  # 2.0.0-alpha.13 (2026-09-21)
7
23
 
8
24
  ### Bug Fixes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@reventlessdev/rescript-fast-csv",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.15",
4
4
  "description": "ReScript bindings for fast-csv",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
7
  "fast-csv": "^5.0.5",
8
- "@reventlessdev/rescript-node": "2.0.0-alpha.13"
8
+ "@reventlessdev/rescript-node": "2.0.0-alpha.15"
9
9
  },
10
10
  "devDependencies": {
11
11
  "rescript": "12.3.1"
@@ -1,28 +0,0 @@
1
- // Generated by ReScript, PLEASE EDIT WITH CARE
2
-
3
- import * as FastCsv from "fast-csv";
4
- import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
5
- import * as Stdlib_JsExn from "@rescript/runtime/lib/es6/Stdlib_JsExn.js";
6
- import * as FastCSV_Helpers from "../FastCSV_Helpers.res.mjs";
7
-
8
- FastCsv.parseFile("x.csv", {
9
- delimiter: ";",
10
- headers: true
11
- }).transform((row, cb) => {
12
- Stdlib_Dict.$$delete(row, "");
13
- return FastCSV_Helpers.toValidTransformation(cb, row);
14
- }).on("data", row => {
15
- console.log("parsed line:", row);
16
- }).on("data-invalid", (row, rowNumber, reason) => {
17
- if (reason !== undefined) {
18
- console.log(`line (` + rowNumber.toString() + `) is invalid: ` + reason, row);
19
- } else {
20
- console.log(`line (` + rowNumber.toString() + `) has too many/view records:`, row);
21
- }
22
- }).on("error", err => {
23
- console.log("error during parsing:", Stdlib_JsExn.message(err));
24
- }).on("end", rowCount => {
25
- console.log(rowCount.toString() + ` rows parsed`);
26
- });
27
-
28
- /* Not a pure module */