You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+48-33Lines changed: 48 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,19 +5,19 @@
5
5
6
6
# bytecodec
7
7
8
-
Typed JavaScript and TypeScript byte utilities for base64, base64url, hex, Z85, UTF-8 strings, JSON, gzip, concatenation, comparison, and byte-source normalization. The package ships tree-shakeable ESM plus CommonJS entry points and keeps the same API across Node, Bun, Deno, browsers, and edge runtimes.
8
+
Typed JavaScript and TypeScript byte utilities for base64, base64url, hex, Z85, UTF-8 strings, unsigned BigInt conversion, JSON, gzip, concatenation, comparison, and byte-source normalization. The package ships tree-shakeable ESM plus CommonJS entry points and keeps the same API across Node, Bun, Deno, browsers, and edge runtimes.
9
9
10
10
## Compatibility
11
11
12
-
- Runtimes: Node, Bun, Deno, browsers, and edge runtimes.
Validation failures throw `BytecodecError` instances with a `code` string, for example `BASE64URL_INVALID_LENGTH`, `HEX_INVALID_CHARACTER`, `Z85_INVALID_BLOCK`, `BASE64_DECODER_UNAVAILABLE`, `UTF8_DECODER_UNAVAILABLE`, and `GZIP_COMPRESSION_UNAVAILABLE`. Messages are prefixed with `{@sovereignbase/bytecodec}`.
199
+
Validation failures throw `BytecodecError` instances with a `code` string, for example `BASE64URL_INVALID_LENGTH`, `BIGINT_UNSIGNED_EXPECTED`, `HEX_INVALID_CHARACTER`, `Z85_INVALID_BLOCK`, `BASE64_DECODER_UNAVAILABLE`, `UTF8_DECODER_UNAVAILABLE`, and `GZIP_COMPRESSION_UNAVAILABLE`. Messages are prefixed with `{@sovereignbase/bytecodec}`.
188
200
189
201
### Safety / copying semantics
190
202
@@ -194,41 +206,44 @@ Validation failures throw `BytecodecError` instances with a `code` string, for e
194
206
195
207
`npm test` covers:
196
208
197
-
- 68 unit tests
198
-
- 6 integration tests
199
-
- Node E2E: ESM and CommonJS
200
-
- Bun E2E: ESM and CommonJS
201
-
- Deno E2E: ESM
202
-
- Edge Runtime E2E: ESM
203
-
- Browser E2E: Chromium, Firefox, WebKit, mobile-chrome, and mobile-safari
209
+
- 75 unit tests
210
+
- 7 integration tests
211
+
- Node E2E: 23/23 passed in ESM and 23/23 passed in CommonJS
212
+
- Bun E2E: 23/23 passed in ESM and 23/23 passed in CommonJS
213
+
- Deno E2E: 23/23 passed in ESM
214
+
- Cloudflare Workers E2E: 23/23 passed in ESM
215
+
- Edge Runtime E2E: 23/23 passed in ESM
216
+
- Browser E2E: 5/5 passed in Chromium, Firefox, WebKit, mobile-chrome, and mobile-safari
204
217
- Coverage gate: 100% statements, branches, functions, and lines
205
218
206
219
## Benchmarks
207
220
208
-
Latest local `npm run bench` run on 2026-03-23 with Node `v22.14.0 (win32 x64)`:
221
+
Latest local `npm run bench` run on 2026-03-27 with Node `v22.14.0 (win32 x64)`:
0 commit comments