@storyteller-platform/epub v1.0.0 release
The @storyteller-platform/epub library has reached version 1.0.0, eliminating many limitations that previously restricted its utility beyond Storyteller's own use. This release introduces two storage adapters: MemoryAdapter and TmpFsAdapter. Browser support has been added, initially available for the MemoryAdapter. The library was originally built around fast-xml-parser, but has since switched to @xmldom/xmldom, a spec-compliant XML DOM library with proper XML namespace support and better handling for processing instructions and doctype declarations.
Additionally, a hyperscript-style x interface has been exported, enabling the construction of XML trees with automatic xmlns, namespace prefix declarations, and prefixed elements and attributes. A jsx-runtime export allows users to write EPUB XML with JSX, mirroring the hyperscript API's familiarity. The library currently supports EPUB 3 publications, with an Epub.upgrade function now available to upgrade EPUB 2 publications in place or to a new location.
Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.