Skip to content

Releases

ImportKit 1.0.1

Choose a tag to compare

@Rokem89 Rokem89 released this 10 Nov 14:51
8b6d56a

ImportKit 1.0.1 is a compatible patch release. Public APIs, record IDs and checkpoint compatibility remain unchanged.

  • Derive record IDs from a precomputed identity prefix to avoid repeated serialization.
  • Reject malformed strong ETags before processing an HTTP source.
  • Inspect checkpoint files through the open file handle to detect path replacement on platforms without O_NOFOLLOW.
  • Clarify the recovery examples and README walkthrough.

Validation: local checks passed (171 tests passed and one existing Windows symlink skip), documentation examples passed, and the installed tarball passed ESM, require() and CSV-validation checks. The final main commit passed CI on Linux, macOS and Windows with Node.js 24 and 26, CodeQL and Scorecard.

The attached npm package is built from commit 8b6d56a. SHA256SUMS records its checksum.

importkit v1.0.0

Choose a tag to compare

@Rokem89 Rokem89 released this 04 Nov 06:24
bb9df3a

ImportKit 1.0 imports CSV and JSON Lines from local files or HTTP into a backend that supplies validation and durable batch writes. It runs on Node.js 24 or later and loads through both import and require().

npm install @altitud-studio/importkit@1.0.0

Upgrade from 0.3

Pass source: fileSource(path) and reader separately. Replace checkpointPath with checkpointStore: fileCheckpointStore(path). Custom readers now yield { value, line } or { value } for formats without lines. File record IDs stay stable and 1.0 resumes file checkpoints written by 0.3. Once 1.0 saves a v2 checkpoint, continue that import with 1.0. Migration steps

New in this release

  • Validate records using Standard Schema v1. Issues can identify the source line and field path. Validation
  • Implement a checkpoint store or keep the checkpoint in the same destination transaction as its batch. Recovery
  • Use ByteSource for custom storage or httpSource for versioned HTTP content identified by a strong ETag. Sources
  • Opt into concurrent batch commits and observe saved progress with onProgress. Concurrency defaults to one and supports up to 16 in-flight batches. Progress advances over consecutive confirmed batches. API

The CSV reader releases the source and checkpoint lock when an import stops early with buffered rows. The custom-source contract enforces maxSourceBytes against mutable size getters and checks a declared SHA-256 after parse failures. Changelog

Release checks

All 150 tests passed on Linux. On Windows 149 passed and one symlink test was skipped for insufficient permissions. The 15 TypeScript documentation examples compiled and all three demos passed. An independent consumer installed the release tarball, type-checked a strict TypeScript import and ran imports through ESM and validation through CommonJS. A separate migration check resumed a checkpoint produced by the published 0.3.0 package and verified the record IDs against a full 0.3.0 run.

The published 1 GB and 10 GB measurements apply to version 0.3.0. Versioned measurements

The attached tarball is the npm package. The SHA-256 file can be used to verify its bytes.

importkit v0.3.0

Choose a tag to compare

@Rokem89 Rokem89 released this 03 Nov 11:11

ImportKit 0.3.0 adds optional byte-bounded import batches for CSV and JSON Lines, alongside the existing record-count limit.

npm install @altitud-studio/importkit@0.3.0

Supply maxBatchBytes together with a synchronous measureRecordBytes(value, context). Both limits apply; an individually oversized result fails before flushing the previous partial batch. A byte-triggered flush checkpoints only the delivered prefix, preserving a mapped record waiting for the next batch. Stable IDs, checkpoint schema and at-least-once delivery remain unchanged.

The byte budget counts the application's declared encoding size. It is not a generic JavaScript heap measurement. Keep mapped values stable until the destination finishes, and keep source files immutable. Destinations still own idempotency.

Verified file sizes and memory

Each file was fully written, then verified by exact byte count and SHA-256. The bounded destination verifier checks order, values, count and digest without retaining the dataset. It simulates destination acknowledgments; it is not a database benchmark. ImportKit checkpoints use the real filesystem.

Format Source bytes Records Importer OS peak RSS
CSV 1,000,000,000 244,141 81.91 MiB
CSV 10,000,000,000 2,441,407 85.39 MiB
JSON Lines 1,000,000,000 244,141 88.18 MiB
JSON Lines 10,000,000,000 2,441,407 81.86 MiB

Profile: Node 24.11.1, Linux x64 / WSL2, nominal 4 KiB ASCII records, maximum 1,000 records and 1 MiB measured payload per batch. Each case ran in its own 512 MiB cgroup with swap disabled; workers used 128 MiB V8 old-space. No OOM events occurred. Both formats met the preset criterion of no more than 64 MiB additional importer peak RSS from 1 GB to 10 GB.

The 1 MB and 1 GB cases ran validation and import in separate fresh processes. The 10 GB cases ran import only. One observation per case; up to two cases overlapped and filesystem caches were not cleared. Timings include contention and verifier/checkpoint overhead. These results are evidence for this workload and environment, not universal memory or throughput guarantees.

Validation and artifacts

  • Linux: 90/90 tests passed. Windows: 89 passed; the existing symlink test could not run because of OS permissions. Validation and SQLite recovery demos passed on both.
  • An external consumer installed the final tarball and passed JavaScript behavior checks and TypeScript strict NodeNext contracts, including byte limits and recovery with a pending record.
  • The aggregate checks independently rederive 201 acceptance conditions from the raw reports; all passed.
  • Attachments include all six raw reports, analysis JSON, a technical report, SVG/PNG figures, the analysis script, the npm-compatible archive and SHA-256 checksums.

The README documents time and space costs. Coordination is linear in source bytes and records plus batches, with callback and durability work accounted separately. Complete validation and import normally read 3N and 2N source bytes respectively. Recovery reparses the source. Retained measured payload can approach 2K because a full pending batch and one mapped next record may coexist; arbitrary callback-owned allocations remain outside that budget.

importkit v0.2.0

Choose a tag to compare

@Rokem89 Rokem89 released this 03 Nov 09:21
982343a

ImportKit adds preflight file validation without opening a destination or checkpoint.

  • validateFile checks CSV, JSON Lines, and application-supplied deterministic readers.
  • Mapping failures are counted with bounded, sanitized issues by record ordinal. Structural parsing failures produce an explicit incomplete result; operational failures still throw.
  • Validation and import share the same stable IDs. Imports retain their at-least-once recovery contract and require idempotent destination writes.
  • Includes executable validation/recovery demos and a reproducible synthetic-workload benchmark. Node.js 24+; ESM; MIT.

Download altitud-studio-importkit-0.2.0.tgz and install with npm install ./altitud-studio-importkit-0.2.0.tgz. The checksum file covers the tarball and measured benchmark output.

Validation: 63 tests passed on Windows; its file-symlink test could not run because the OS denied symlink creation. All 64 tests passed on Linux WSL2, including the symlink test. Both demos passed on Linux and Windows. The packaged library was consumed from a separate JavaScript and TypeScript project.

The attached benchmark records a single run with 1,000,000 synthetic JSON Lines records (51,335,797 input bytes), Node.js 24.11.1 on Linux WSL2 x64, batches of 1,000, an append-only file destination, and an fsync per batch. Validation took 4,603.36 ms; import took 39,780.03 ms. The JSON includes memory samples and methodological limits. These are observations for that workload, not universal throughput or memory guarantees; the benchmark destination does not deduplicate replays.

Source must remain immutable during a run. Preflight validation does not make later writes globally atomic. Full recovery, error, privacy, and resource contracts are documented in the README.