Skip to content

Commit 9ff96e0

Browse files
chore: release v2.0.0
1 parent 47b31a6 commit 9ff96e0

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [Unreleased]
8+
## Unreleased
99

10+
## 2.0.0 - 2024-09-27
1011
### Added
11-
1212
- **ES6 Module Support**: Switched from `require()` to ES6 `import` for better compatibility with modern JavaScript frameworks.
1313
- **Parallel Page Rendering**: Introduced parallel rendering of PDF pages using `Promise.all()` for improved performance.
1414
- **GlobalWorkerOptions Setup**: Added explicit `GlobalWorkerOptions.workerSrc` to handle workers in ES6 environments more effectively.
1515
- **Examples and Server Setup**: Added detailed examples and a simple Node.js server setup in the "examples" directory.
1616
- **Improved Error Handling**: Added more informative error messages for invalid page numbers, dimensions, and scale values.
1717
- **Updated `package.json` Keywords**: Added new keywords such as `es6`, `esm`, and `module` to improve discoverability in modern JavaScript environments.
1818

19-
### Fixed
19+
### Changed
20+
- **README**: Revised the `README.md` to reflect new features and usage examples.
2021

22+
### Fixed
2123
- **Security**: Addressed a critical security vulnerability in previously used npm packages by updating `pdfjs-dist` to the latest versions.
2224
- **Scaling Logic**: Refined the handling of `width`, `height`, and `scale` parameters to cover more edge cases in image rendering.
2325

24-
### Changed
25-
26-
- **README**: Revised the `README.md` to reflect new features and usage examples.
27-
2826
## 1.2.1 - 2023-04-16
2927

3028
## 1.2.0 - 2023-03-05

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdf-img-convert",
3-
"version": "1.2.1",
3+
"version": "2.0.0",
44
"description": "A simple module to convert PDF files into image buffers (without filesystem usage)",
55
"main": "pdf-img-convert.js",
66
"types": "pdf-img-convert.d.ts",

0 commit comments

Comments
 (0)