From 7f4ce48d1c5c9e1e09d6e9f02d494668beefa6f5 Mon Sep 17 00:00:00 2001 From: "modesty.zhang" Date: Sun, 23 Oct 2022 15:45:02 -0700 Subject: [PATCH] v3.0.0 release with ES Module --- package.json | 2 +- readme.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b488c854..786938c0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdf2json", - "version": "2.1.0", + "version": "3.0.0", "description": "PDF file parser that converts PDF binaries to text based JSON, powered by porting a fork of PDF.JS to Node.js", "keywords": [ "pdf", diff --git a/readme.md b/readme.md index 558df819..262e0f3e 100644 --- a/readme.md +++ b/readme.md @@ -933,6 +933,8 @@ In order to support this auto merging capability, text block objects have an add * v2.0.0 output data field, `Agency` and `Id` are replaced with `Meta`, JSON of the PDF's full metadata. (See above for details). Each page object also added `Width` property besides `Height`. +* v3.0.0 converted commonJS to ES Modules, plus dependency update and other minor bug fixes. Please update your project configuration file to enable ES Module before upgrade, ex., in `tsconfig.json`, set `"compilerOptions":{"module":"ESNext"}` + **Major Refactoring** * v2.0.0 has the major refactoring since 2015. Primary updates including: * Full PDF metadata support (see page format and breaking changes for details) @@ -946,6 +948,8 @@ In order to support this auto merging capability, text block objects have an add * Refactor to ES6 class for major entry modules * Dependencies removed: lodash, async and yargs * Upgrade to Node v14.18.0 LTSs +* v3.0.0 converted commonJS to ES Modules + ### Install on Ubuntu