IF Commons GitHub

Formats

1 specification, 23 requirements. All libraries

0001 Formats

RequirementMechanismWhoNote
FR-001checkbun test suite/formats.test.ts: round trips with JSON and with the writer, the specification's examples, __proto__, refusals with line and column
FR-002checkbun 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-003checkbun 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-004checkbun 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-005checkbun test suite/data.test.ts: random records written and read back with each separator and line ending, RFC 4180's cases, refusals
FR-006checkbun test suite/ts-literal.test.ts: literals written and read back, keys, comments, refusals
FR-007checkbun 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-008checkbun test suite/der.test.ts: RFC 4648's vectors in both alphabets, random bytes read back, malformed text refused
FR-009checkbun test suite/der.test.ts: X.690's encodings, random integers, OIDs and structures read back, every malformed input named at its byte
FR-010checkbun 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-011checkbun test suite/archive.test.ts: untarStream equals untar, damaged headers refused
FR-012checkbun 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-013checkbun test suite/hex.test.ts: toHex and fromHex round trip as a property, an odd length and a non-digit refused
FR-014checkbun test suite/cbor.test.ts: RFC 8949 Appendix A's examples, the deterministic encoding, every malformed input at its byte
FR-015checkbun test suite/semver.test.ts: semver.org's example order, round trip, order laws, bumps, dotted versions
FR-016checkbun test suite/semver.test.ts: ranges against npm's documented desugaring and laws (caret, tilde, x-range, hyphen, union), pre-releases
FR-017checkbun test suite/glob.test.ts: globs against @std/path's cases; expandGlob
FR-018checkbun test suite/data.test.ts: the types and charsets of paths and extensions, unknown extensions
FR-019checkbun test suite/http.test.ts: Link headers, Retry-After in both forms, safe methods
FR-020checkbun run verifythe 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-021checkbun 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-022checkbun 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-023checkbun test suite/archive.test.ts: a tar with symbolic and hard links gives link entries and linksOf lists them

Titles, headings, exports, tables, columns and requirements. Esc closes.