UNPKG

r2-utils-js

Version:

Readium 2 'utils' for NodeJS (TypeScript)

703 lines (466 loc) 18.7 kB
# Next Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.32...develop Changes: * TODO # 1.0.32 > Build environment: NodeJS `18.12.1`, NPM `9.1.1` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.32/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.32/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.32 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.31...v1.0.32 # 1.0.31 > Build environment: NodeJS `16.13.1`, NPM `8.3.0` Changes: * NPM package updates * safeguard against callbacks that do not capture async / await thrown errors (exceptions do not automatically transit up the call chain) avoids UnhandledPromiseRejectionWarning Git revision info: * https://unpkg.com/r2-utils-js@1.0.31/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.31/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.31 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.30...v1.0.31 # 1.0.30 > Build environment: NodeJS `16.13.1`, NPM `8.3.0` Changes: * NPM package updates and migration from TSLINT to ESLINT Git revision info: * https://unpkg.com/r2-utils-js@1.0.30/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.30/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.30 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.29...v1.0.30 # 1.0.29 > Build environment: NodeJS `16.13.0`, NPM `8.1.4` Changes: * Removed console verbose output in filesystem folder zip emulation * Harmonised regular expressions for file extensions and HTTP URLs checks Git revision info: * https://unpkg.com/r2-utils-js@1.0.29/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.29/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.29 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.28...v1.0.29 # 1.0.28 > Build environment: NodeJS `16.13.0`, NPM `8.1.4` Changes: * Fix: regression bug when replacing filehound with plain NodeJS "fs" API to scan directory contents (ZIP directory emulated from filesystem) Git revision info: * https://unpkg.com/r2-utils-js@1.0.28/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.28/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.28 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.27...v1.0.28 # 1.0.27 > Build environment: NodeJS `14.18.1`, NPM `6.14.15` Changes: * NPM package updates * NodeJS v12 minimum requirement * Removed FileHound lib dependency in TypeScript code Git revision info: * https://unpkg.com/r2-utils-js@1.0.27/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.27/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.27 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.26...v1.0.27 # 1.0.26 > Build environment: NodeJS `14.17.5`, NPM `6.14.14` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.26/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.26/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.26 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.25...v1.0.26 # 1.0.25 > Build environment: NodeJS `14.16.1`, NPM `6.14.13` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.25/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.25/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.25 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.24...v1.0.25 # 1.0.24 > Build environment: NodeJS `14.15.1`, NPM `6.14.9` Changes: * NPM package updates * Fix: added missing Number converter in XML declarative parser (similar to TA-JSON) Git revision info: * https://unpkg.com/r2-utils-js@1.0.24/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.24/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.24 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.23...v1.0.24 # 1.0.23 > Build environment: NodeJS `12.18.2`, NPM `6.14.5` Changes: * NPM package updates * TypeScript const enum safeguard (isolated modules) Git revision info: * https://unpkg.com/r2-utils-js@1.0.23/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.23/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.23 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.22...v1.0.23 # 1.0.22 > Build environment: NodeJS `12.18.1`, NPM `6.14.5` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.22/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.22/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.22 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.21...v1.0.22 # 1.0.21 > Build environment: NodeJS `12.16.3`, NPM `6.14.5` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.21/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.21/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.21 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.20...v1.0.21 # 1.0.20 > Build environment: NodeJS `12.16.1`, NPM `6.14.4` Changes: * NPM package updates * Fixed CSON-2-JSON script Git revision info: * https://unpkg.com/r2-utils-js@1.0.20/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.20/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.20 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.19...v1.0.20 # 1.0.19 > Build environment: NodeJS `12.16.1`, NPM `6.14.4` Changes: * NPM package updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.19/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.19/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.19 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.18...v1.0.19 # 1.0.18 > Build environment: NodeJS `12.15.0`, NPM `6.13.7` Changes: * NPM package updates * Buffer streaming error now forwarded into Promise rejection Git revision info: * https://unpkg.com/r2-utils-js@1.0.18/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.18/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.18 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.17...v1.0.18 # 1.0.17 > Build environment: NodeJS `12.13.0`, NPM `6.12.1` Changes: * ZIP injector: object close() was missing! (causing retained handle on filesystem ... thankfully only affected r2-testapp-js, but will soon be used in refactored LCP/LSD implementation of readium-desktop as well, see WIP pull request) Git revision info: * https://unpkg.com/r2-utils-js@1.0.17/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.17/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.17 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.16...v1.0.17 # 1.0.16 > Build environment: NodeJS `12.13.0`, NPM `6.12.0` Changes: * CLI utility to benchmark ZIP libs with CRC and directory entry streaming * YAUZL and YAZL TypeScript typings (no more "any") * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.16/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.16/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.16 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.15...v1.0.16 # 1.0.15 > Build environment: NodeJS `10.16.3`, NPM `6.12.0` Changes: * NPM updates (including NodeJS v12 for Electron v6) Git revision info: * https://unpkg.com/r2-utils-js@1.0.15/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.15/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.15 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.14...v1.0.15 # 1.0.14 > Build environment: NodeJS `10.16.3`, NPM `6.11.3` Changes: * Fixed bug in JSON tree walker (incorrect null / undefined check) * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.14/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.14/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.14 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.13...v1.0.14 # 1.0.13 > Build environment: NodeJS `10.16.3`, NPM `6.11.3` Changes: * NPM updates * TypeScript import sorter Git revision info: * https://unpkg.com/r2-utils-js@1.0.13/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.13/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.13 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.12...v1.0.13 # 1.0.12 > Build environment: NodeJS `10.16.3`, NPM `6.11.3` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.12/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.12/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.12 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.11...v1.0.12 # 1.0.11 > Build environment: NodeJS `10.16.0`, NPM `6.10.2` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.11/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.11/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.11 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.10...v1.0.11 # 1.0.10 > Build environment: NodeJS `10.16.0`, NPM `6.9.0` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.10/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.10/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.10 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.9...v1.0.10 # 1.0.9 > Build environment: NodeJS `10.15.3`, NPM `6.9.0` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.9/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.9/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.9 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.8...v1.0.9 # 1.0.8 > Build environment: NodeJS `8.15.1`, NPM `6.4.1` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.8/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.8/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.8 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.7...v1.0.8 # 1.0.7 > Build environment: NodeJS `8.15.1`, NPM `6.4.1` Changes: * NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.7/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.7/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.7 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.6...v1.0.7 # 1.0.6 > Build environment: NodeJS `8.14.1`, NPM `6.4.1` Changes: * NPM updates * Added sanity check in JSON traversal for edge-case of property val === null (which is typeof val === "object") Git revision info: * https://unpkg.com/r2-utils-js@1.0.6/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.6/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.6 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.5...v1.0.6 # 1.0.5 > Build environment: NodeJS `8.14.1`, NPM `6.4.1` Changes: * NPM updates * Fixed JSON traverse utility (correctly checks for null vs. undefined values) Git revision info: * https://unpkg.com/r2-utils-js@1.0.5/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.5/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.5 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.4...v1.0.5 # 1.0.4 > Build environment: NodeJS `8.14.1`, NPM `6.4.1` Changes: * Updated documentation (minor) * Fixed a NodeJS v8+ regression bug: readable-stream end event was not raised (which is why LCP decryption with basic-test profile was broken at Heroku and Now.sh streamer deployments) * NPM 6.5.* has regression bugs for global package installs, so revert back to NPM 6.4.1 (which is officially shipped with the NodeJS installer). Git revision info: * https://unpkg.com/r2-utils-js@1.0.4/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.4/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.4 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.3...v1.0.4 # 1.0.3 > Build environment: NodeJS `8.14.0`, NPM `6.5.0` Changes: * Minor NPM updates Git revision info: * https://unpkg.com/r2-utils-js@1.0.3/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.3/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.3 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.2...v1.0.3 # 1.0.2 > Build environment: NodeJS `8.14.0`, NPM `6.5.0` Changes: * Added support for exploded remote HTTP publications (fetcher / zip interface) Git revision info: * https://unpkg.com/r2-utils-js@1.0.2/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.2/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.2 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.1...v1.0.2 # 1.0.1 > Build environment: NodeJS `8.14.0`, NPM `6.5.0` Changes: * NPM updates (minor) * Replaced deprecated RawGit URLs * Fixed HTTP(s) URL detection (now regexp) * Workaround for bogus HTTP accept-ranges=bytes headers (e.g. `https://raw.githubusercontent.com`) Git revision info: * https://unpkg.com/r2-utils-js@1.0.1/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.1/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.1 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0...v1.0.1 # 1.0.0 > Build environment: NodeJS `8.14.0`, NPM `6.5.0` Changes: * NPM updates (minor) * README info * VisualStudio code tweaks (developer workflow) * Semantic versioning bump 1.*.* (3-digit style now, "-alphaX" suffix caused issues with NPM tooling: updates, lockfile, etc.) Git revision info: * https://unpkg.com/r2-utils-js@1.0.0/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.7...v1.0.0 # 1.0.0-alpha.7 > Build environment: NodeJS `8.12.0`, NPM `6.4.1` Changes: * NPM updates (minor) * Git revision JSON info now includes NodeJS and NPM version (build environment) Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.7/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.7/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.7 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.6...v1.0.0-alpha.7 # 1.0.0-alpha.6 Changes: * Dependency "ta-json" GitHub semver dependency becomes "ta-json-x" NPM package (fixes https://github.com/readium/r2-testapp-js/issues/10 ) Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.6/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.6/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.6 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.5...v1.0.0-alpha.6 # 1.0.0-alpha.5 Changes: * Fixed TypeScript regression bug (3.0.3 -> 3.1.1) related to XML / HTML DOM typings * Removed TypeScript linter warning message (checks for no unused variables) * NPM updates related to the Node TypeScript typings * Dependency "ta-json" updates, and NPM integration GitHub semver reference Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.5/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.5/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.5 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.4...v1.0.0-alpha.5 # 1.0.0-alpha.4 Changes: * removed rogue `console.log()` * NPM upates (minor, external dependencies) Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.4/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.4/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.4 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.3...v1.0.0-alpha.4 # 1.0.0-alpha.3 Changes: * correct version in `package-lock.json` Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.3/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.3/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.3 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.2...v1.0.0-alpha.3 # 1.0.0-alpha.2 Changes (NPM updates): * `@types/node` Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.2/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.2/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.2 Git diff: * https://github.com/readium/r2-utils-js/compare/v1.0.0-alpha.1...v1.0.0-alpha.2 # 1.0.0-alpha.1 Changes: * initial NPM publish Git revision info: * https://unpkg.com/r2-utils-js@1.0.0-alpha.1/dist/gitrev.json * https://github.com/edrlab/r2-utils-js-dist/blob/v1.0.0-alpha.1/dist/gitrev.json Git commit history: * https://github.com/readium/r2-utils-js/commits/v1.0.0-alpha.1 Git diff: * initial NPM publish