- FIX: Fix resources not being buffers due to structuredClone
- Version updates
- Better ESM support
- Move
@dylanarmstrong/tsconfig
to devDependencies
- Publish with types
- Allow overriding all
Resource
properties - Cast
defaults
toRequired<T>
instead of having messy type guards- This is hopefully temporary, pending this PR: sindresorhus/node-defaults#6
- Switch to shared tsconfig
@dylanarmstrong/tsconfig
- Use
mime
for handling mime types, to support mp3 and such - Example converted to typescript
- Pug files now prettified, so they can be read in an editor easier
- ID now defaults to uuid
- FIX: Output language correctly
- FIX: Consider cover as a duplicate image as well
- BREAKING: Resources must now be passed with
{ data: Buffer; name: string }
- BREAKING:
images
->resources
in constructor options
- FIX: Do not add duplicate images
- Publishing over unpublished broken v4.0.0 version
- Generates EPUB v3.3
- Project converted to Typescript
- Support non-image text covers
- Pug for templates instead of string concatenation
- Forked by @dylanarmstrong
- Tests changed from mocha -> jest
- BREAKING: Now exports default class
Epub
. - BREAKING: Only available as an ES Module
- BREAKING: Removed ability to write individual files
- BREAKING: Removed generate TOC callback
- BREAKING: Sections / Images / CSS / Options must be in options passed to
Epub
constructor.
- #23 indent breaks
pre
tag- Removed automatic indent
- Updated dependencies
- Contents page can be suppressed
- New
showContents
metadata item
- New
- Section filename override
- Optionally rename content files
- Allows internal linking
Genre
now optional- Image collection now optional
- Cover still required
- Correct the mimetype for
.jpg
cover images- Thanks to bmaupin
npm audit
updates for transitive dependencies- Avoid
lodash
command injection - Avoid regex denials of service
- Avoid
- Wait for file descriptor before returning from writeEPUB
- Included Wallaby.js configuration
- Contributors can use a free OSS license (I have a paid one, it's worth supporting)
- Switched to
async
/await
rather than callbacks - Updated documentation
- Bumped version to update the documentation on npm
- Now developed against Node v15.6.0
- Node v10.3 or later should work fine
- Updated dependencies
- Updated Sinon stub syntax in tests
- Moved
cover
into document metadata- Now supports multiple image types (
png
,jpg
, etc) - Any type whose file extention fits a mimetype like
image/png
orimage/jpg
- Now supports multiple image types (
- Merged
RELEASES.md
into here
- Updated various package versions
- Added a change log file
- Updated
package.json
to addsrc
folder tostart
entry
- Updated dependencies
- Restructured source folders
- Switched from Jasmine tests to Mocha
- Added npm scripts for running
eslint
and the example
Breaking changes:
- The
makeContentsPage
callback function will no longer receive the default markup as a second parameter.
- Thanks to Harold Treen the API has switched to being asynchronous
- This version introduces stability at the expense of minor breaking changes, consisting almost entirely of renames from chapter to section but with some of the pre-generated pages of earlier versions eliminated. The result is more abstracted but also more flexible, whilst also retaining most of it's simplicity.