Skip to content

epub-codec@1.5.5

Choose a tag to compare

@github-actions github-actions released this 14 Sep 19:28
· 1789 commits to main since this release

1.5.5 (2026-09-14)

Code Refactoring

  • epub-codec: check only the highest byte in the zip helpers' truncation guards (82b4f3d)
  • epub-codec: collapse redundant XHTML block-read branches and guards (e82ce9c)
  • epub-codec: decode base64 into a plain array, not a pre-sized buffer (1014a5d)
  • epub-codec: drop a redundant empty-href guard in resolveHrefTarget (e6bd9ee)
  • epub-codec: drop a redundant itemId-run bound in xhtml/write (dfc9d0c)
  • epub-codec: drop bounds checks looksLikeXml's own comparisons subsume (5bafe34)
  • epub-codec: drop bounds checks the undefined-index comparisons already cover (22ccb8a)
  • epub-codec: drop dead exhaustiveness branch and redundant bounds checks in xhtml/write (9f48327)
  • epub-codec: drop redundant stray-content filters in xhtml/read (6792346)
  • epub-codec: drop styledRun's own dead hyperlink parameter and the redundant span case (7a806b7)
  • epub-codec: drop the last redundant inert-element guard in a table cell loop (519b92f)
  • epub-codec: match epub:type toc via word-boundary regex in nav3 (3f66995)
  • epub-codec: replace length-bound loops with their own undefined-read termination (26b34f8)
  • epub-codec: stop building writeEpubContent's own zip entries as dead ZipEntry objects (6c8cbb3), references ExaDev/documents.js#963
  • epub-codec: stop constructing pi/declaration text fast-xml-parser drops (c7d6e6b)
  • epub-codec: test epub:type substrings without splitting into tokens (518fe88)
  • epub-codec: use undefined for a pi/declaration node's own ignored builder value (1e53cfe)

Tests

  • epub-codec: add buildXml's first dedicated test file (314a866)
  • epub-codec: add footnote.ts's first dedicated test file (5347e4c)
  • epub-codec: add isXmlNode's first dedicated test file (179581e)
  • epub-codec: add resolveHrefTarget's first dedicated test file (85d31ea)
  • epub-codec: assert every diagnostic error class's own name and message (a0c8fc7)
  • epub-codec: assert parseOpf's error messages and its item-filtering gates (7c1fa4f)
  • epub-codec: assert resolveOpfPath's own error messages (c753ec3)
  • epub-codec: assert writeNav3Document's own tree structurally (acf90b0)
  • epub-codec: assert writeOpf's own tree structurally (91758fb)
  • epub-codec: cover base64ToBytes' padding-position and whitespace stripping (c0c27e9)
  • epub-codec: cover isXmlNode's own type-guard boundary conditions (3a57f1c)
  • epub-codec: cover list grouping, bookmarks, and run-node edges in xhtml/write (bab3bf0)
  • epub-codec: cover metadata trimming and dcterms:modified variants in opf/parse (6165eca)
  • epub-codec: cover parseNode/parseAttributes/scalarText's own shape checks (bb1efb1)
  • epub-codec: cover readEpubContent/readEpub's own error and diagnostic message paths (9a1df9f)
  • epub-codec: cover table span/caption edges and non-footnote asides in xhtml/read (866414e)
  • epub-codec: cover the legacy pre heuristic and link construct edges in xhtml/write (18c6d46)
  • epub-codec: cover the local-file-header readers' own truncation guards (46f1982)
  • epub-codec: cover the remaining single/few-mutant survivors across nine small modules (72fa092)
  • epub-codec: cover the scheme regex boundary and dot/empty path segments (865164b)
  • epub-codec: cover xhtml/read anchor, style-residue, and pre/table edge cases (66d176e)
  • epub-codec: exercise packageFromEntries' BOM and whitespace classification (b190748)
  • epub-codec: exercise PNG IHDR boundaries and JPEG marker-walking edge cases (936df51)
  • epub-codec: parse comment, cdata, and processing-instruction nodes (00f7d9b)
  • epub-codec: pin dcterms:modified matching and absent-key semantics in opf/parse (bf3d975)
  • epub-codec: reject an epub:type token that merely starts with "toc" (523797c)
  • epub-codec: split manifest item properties on a single whitespace char (a3e4d2a)
  • epub-codec: stop using Object.assign in isXmlNode's function-masquerade fixture (f2e1b54)
  • epub-codec: verify the hand-authored fixtures' own real byte content (1edfbf1)