pdf-parser.js 4.8.17 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -383,6 +383,18 @@ This package also published under the following alternate npm names from the pre
|
|
|
383
383
|
|
|
384
384
|
**Republished automatically** — the alias's trusted publisher is registered against this repository and workflow (2026-09-10), so every release from the [backfill run](https://github.com/ExaDev/documents.js/actions/runs/34449796133) onward publishes under this name too; the registration evidence is on [ExaDev/documents.js#729](https://github.com/ExaDev/documents.js/issues/729).
|
|
385
385
|
|
|
386
|
+
## Removed: base64 from `pdf-codec/util/base64`
|
|
387
|
+
|
|
388
|
+
`bytesToBase64` and `base64ToBytes` were this package's own copy of helpers every codec in the family carried separately. They live in [`byte-codec`](../byte-codec/README.md) now, as one implementation ([ExaDev/documents.js#1282](https://github.com/ExaDev/documents.js/issues/1282)), so the module behind the `pdf-codec/util/base64` deep import is gone.
|
|
389
|
+
|
|
390
|
+
Import from `byte-codec` directly:
|
|
391
|
+
|
|
392
|
+
```ts
|
|
393
|
+
import { base64ToBytes, bytesToBase64 } from "byte-codec";
|
|
394
|
+
```
|
|
395
|
+
|
|
396
|
+
Both names are also still on this package's own barrel, exactly as before, so `import { bytesToBase64 } from "pdf-codec"` is unaffected.
|
|
397
|
+
|
|
386
398
|
## License
|
|
387
399
|
|
|
388
400
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pdf-parser.js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"description": "Hand-written, dependency-minimal PDF codec: parses arbitrary real-world PDFs and generates new ones, built on its own codec-owned LayoutDocument item model and Zod 4 codecs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
],
|
|
73
73
|
"license": "MIT",
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"byte-codec": "1.6.
|
|
75
|
+
"byte-codec": "1.6.2",
|
|
76
76
|
"document-schema.js": "7.11.4",
|
|
77
77
|
"fflate": "0.8.3",
|
|
78
78
|
"zod": "4.4.3"
|