Skip to content

Commit 9590a56

Browse files
authored
26.4.0: bundle core-js polyfills for older-browser support (#382)
1 parent 4fb1b47 commit 9590a56

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ 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+
## [26.4.0] - 2026-07-10
9+
10+
### Added
11+
- The bundled PDF.js (`pdf.mjs` and `pdf.worker.mjs`) now ships with `core-js`
12+
polyfills for five newer JavaScript APIs the PDF.js 6 build relies on —
13+
`Map.prototype.getOrInsertComputed`, `Promise.try`, `Promise.withResolvers`,
14+
`Uint8Array.prototype.toHex`, and `URL.parse`. Without them the viewer threw on
15+
startup in browsers that predate those APIs; it now runs on those older engines.
16+
The polyfills are injected into the two bundles at build time with esbuild, so
17+
consumers pull in nothing new at runtime — `core-js` stays a build-only
18+
dependency. Thanks to @delagen for the contribution. (#379)
19+
820
## [26.3.1] - 2026-06-29
921

1022
### Fixed

‎lib/package-lock.json‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng2-pdfjs-viewer",
3-
"version": "26.3.1",
3+
"version": "26.4.0",
44
"description": "The most comprehensive Angular PDF viewer, powered by Mozilla PDF.js 6 — view, annotate, sign, fill forms, search, and read aloud from one component. 8.3M+ downloads, mobile-first, production-ready.",
55
"author": {
66
"name": "Aneesh Goapalakrishnan",

0 commit comments

Comments
 (0)