github Hopding/pdf-lib 0.2.0
v0.2.0

latest releases: v1.11.1, v1.11.0, v1.10.0...
5 years ago
  • 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';

Don't miss a new pdf-lib release

NewReleases is sending notifications on new releases.