Urgent.News

What's breaking now, across thousands of outlets.

Tech

@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.

Read the original at storyteller-platform.dev →

More in Tech

Database Isolation: Why Two Committed Transfers Can Create Money

Two wallet transfers can both commit successfully while creating money. In Lab 08, the problem is a specific query pattern: read a balance, validate it in Go, calculate a replacement value, and write…

  • Two committed transfers can create money simultaneously
  • TransferNaive implementation uses sql.LevelReadCommitted
  • Lost update vulnerability arises from query pattern

More from Friday 2 October →