- Add ES6 module build to NPM release (in the
es
folder). - Add UMD build to NPM release (
dist/pdf-lib.js
). - Add minified UMD build to NPM release (
dist/pdf-lib.min.js
). - Fix issue with compiled TypeScript declaration files not having the same relative import paths as the compiled JS files.
- Change import paths:
pdf-lib/x/y/z
is no longer valid.pdf-lib/lib/x/y/z
is the CommonJS module.pdf-lib/es/x/y/z
is the ES6 module.pdf-lib
now directly exports all public classes and functions. For example:
// v0.1.0 import { PDFDocumentWriter, PDFDocumentFactory } from 'pdf-lib/core/pdf-document'; import { drawText } from 'pdf-lib/helpers/pdf-operators/composite'; // Now import { PDFDocumentWriter, PDFDocumentFactory, drawText, } from 'pdf-lib';