Formats
1 specification, 23 requirements. All libraries
0001 Formats
| Requirement | Mechanism | Who | Note |
|---|---|---|---|
FR-001 | check | bun test suite/ | formats.test.ts: round trips with JSON and with the writer, the specification's examples, __proto__, refusals with line and column |
FR-002 | check | bun test suite/ | data.test.ts: random values written and read back, a front matter with every construct, failsafe, every refusal with its place and reason |
FR-003 | check | bun test suite/ | data.test.ts: random tables written and read back, TOML 1.0's examples, every rule broken and named with its place |
FR-004 | check | bun test suite/ | formats.test.ts: random trees written and read back, entities, CDATA, prefixes, the finders, refusals with line and column, no entity expansion |
FR-005 | check | bun test suite/ | data.test.ts: random records written and read back with each separator and line ending, RFC 4180's cases, refusals |
FR-006 | check | bun test suite/ | ts-literal.test.ts: literals written and read back, keys, comments, refusals |
FR-007 | check | bun test suite/ | ts-literal.test.ts: tsLiteral takes an interface with no index signature, refuses a Date, a function, undefined in an array (type-level, with negative controls) |
FR-008 | check | bun test suite/ | der.test.ts: RFC 4648's vectors in both alphabets, random bytes read back, malformed text refused |
FR-009 | check | bun test suite/ | der.test.ts: X.690's encodings, random integers, OIDs and structures read back, every malformed input named at its byte |
FR-010 | check | bun test suite/ | archive.test.ts: round trips of tar, zip and gzip, fixed bytes, unsafe and damaged archives, deflated zip read and written, pax and GNU names |
FR-011 | check | bun test suite/ | archive.test.ts: untarStream equals untar, damaged headers refused |
FR-012 | check | bun test suite/ | png.test.ts: random pictures written and read back, hand-built PNGs of every filter, colour type and depth with tRNS, every corrupt and hostile file refused by its kind, resize and composite laws, ICO round trips |
FR-013 | check | bun test suite/ | hex.test.ts: toHex and fromHex round trip as a property, an odd length and a non-digit refused |
FR-014 | check | bun test suite/ | cbor.test.ts: RFC 8949 Appendix A's examples, the deterministic encoding, every malformed input at its byte |
FR-015 | check | bun test suite/ | semver.test.ts: semver.org's example order, round trip, order laws, bumps, dotted versions |
FR-016 | check | bun test suite/ | semver.test.ts: ranges against npm's documented desugaring and laws (caret, tilde, x-range, hyphen, union), pre-releases |
FR-017 | check | bun test suite/ | glob.test.ts: globs against @std/path's cases; expandGlob |
FR-018 | check | bun test suite/ | data.test.ts: the types and charsets of paths and extensions, unknown extensions |
FR-019 | check | bun test suite/ | http.test.ts: Link headers, Retry-After in both forms, safe methods |
FR-020 | check | bun run verify | the package is built, inspected and packed by tools/pack.ts; tests/commons-packages.test.ts installs the tarball and runs it on Node 26 and Bun and type-checks a consumer of every entry |
FR-021 | check | bun test suite/ | xz.test.ts: files made by the system xz (every check, several blocks, several streams, uncompressed chunks), every flipped byte and every truncation refused |
FR-022 | check | bun test suite/ | xz.test.ts: a file that expands to sixteen mebibytes stops at a limit of one, the output is a copy, a tar.xz untars |
FR-023 | check | bun test suite/ | archive.test.ts: a tar with symbolic and hard links gives link entries and linksOf lists them |