Repository navigation
importkit v1.0.0
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.0Upgrade 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
ByteSourcefor custom storage orhttpSourcefor 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.