Conversation
* feat: streaming and large-data support - Existing functions accept sync iterables/generators (+ Float64Array for OHLCV) - Add async variants resampleOhlcvAsync / resampleTicksByTimeAsync / resampleTicksByCountAsync with out-of-order healing (outOfOrderMs) - CLI: stream CSV/JSONL/NDJSON files line-by-line, incremental output, new jsonl format - Changeset (minor), README docs. Closes #9. * feat: parquet file input (async only) and ESM-only package * chore: keep require() working via CJS wrapper; downgrade to minor * Add per-record map option; drop parquet alias guessing - New src/map.ts: OhlcvMap/TickMap (Record form: canonical field -> source key; function form: (record) => IOHLCV/TradeTick) + mapToOhlcv/mapToTick + async-iterable wrappers. Exported from index. - Library: resampleOhlcvAsync / resampleTicksByTimeAsync / resampleTicksByCountAsync gain options.map, applied to Parquet rows and object-shaped AsyncIterable items (tuples/Float64Array unaffected). - Parquet reader now reads exact canonical columns only; any other layout requires map. Removes the OHLCV/TICK alias tables and resolveColumn guessing (per user: aliasing can go now that map exists). - CLI: --map field=sourceKey flag (Record form) threads into CSV header resolution, JSON/JSONL object key remap, JSON array buffer path, and the Parquet branch. With --map a CSV first line is always the header. - Tests: parquet custom-name Record/function map + partial-map error + alias fixture now requires map; library CCXT-style Record/function map on object streams + tuple pass-through; CLI --map on CSV/JSON/parquet/pipe + invalid field. Fixtures ohlcv_custom.parquet, ticks_custom.parquet added. - README + changeset updated: map option (Record + function), CLI --map, aliasing removed. * chore: exclude .js.map sourcemaps from published package (16 files, 23.8kB) * perf(deps): drop lodash dependency; implement 7 helpers natively Install footprint: 461 kB -> ~145 kB. The seven lodash helpers used (isPlainObject, sum, max, min, groupBy, sortBy, chunk) were the entire 315 kB lodash package as a runtime dep; each is now a native inline implementation (stable Array.sort, plain-object grouping, loop min/max/sum, slice-based chunking). Runtime deps are now commander + hyparquet only — we install only what we build. * perf(deps): replace commander with mri (tiny 4kB arg parser); fix mri config-mutation bug; clean unknown-option errors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: parquet file input (async only) and ESM-only package
chore: keep require() working via CJS wrapper; downgrade to minor
Add per-record map option; drop parquet alias guessing
chore: exclude .js.map sourcemaps from published package (16 files, 23.8kB)
perf(deps): drop lodash dependency; implement 7 helpers natively
Install footprint: 461 kB -> ~145 kB. The seven lodash helpers used (isPlainObject, sum, max, min, groupBy, sortBy, chunk) were the entire 315 kB lodash package as a runtime dep; each is now a native inline implementation (stable Array.sort, plain-object grouping, loop min/max/sum, slice-based chunking). Runtime deps are now commander + hyparquet only — we install only what we build.