Skip to content

v1.1.1#29

Merged
tperale merged 16 commits intomainfrom
dev
Mar 13, 2025
Merged

v1.1.1#29
tperale merged 16 commits intomainfrom
dev

Conversation

@tperale
Copy link
Owner

@tperale tperale commented Mar 13, 2025

  • Drop CommonJS and switch to ESM module
  • Only build with tsc and don't bundle anything to make it up to the end user to choose how to bundle things.

tperale added 16 commits March 8, 2025 16:37
Use tsc instead and let the final user decide how to bundle the code.
The resulting build is moved to `dist/lib` as well.
BinaryReader now support both `Uint8Array` & `ArrayBuffer`.

- `Uint8Array` are the default type of arrays used by node.js when
  reading the content of a file with `readFileSync`.
  In node environment the `Uint8Array` should be passed to the
  BinaryCursor function to be able to pass the `byteOffset` to the
  `DataView`.
- `ArrayBuffer` are the default type of arrays used in browser when
  reading the content of a file passed to an `<input />`.
No longer needed to be strict ESM module
@tperale tperale merged commit 4775230 into main Mar 13, 2025
3 checks passed
@tperale tperale deleted the dev branch March 13, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant