@jackgreen2018/pdf-engine 1.0.89 → 1.0.90

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Jack Green
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -121,11 +121,15 @@ npm run benchmark
121
121
 
122
122
  *extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream). v1.0.30 fixes extractText to return actual text instead of "No text extracted."*
123
123
 
124
- *Run 2026-08-03 (v1.0.89); raw JSON at benchmark-results.json.*
124
+ *Run 2026-08-03 (v1.0.90); raw JSON at benchmark-results.json.*
125
125
 
126
126
  ## Commercial license & support
127
127
 
128
- For teams or organizations that need the package without MIT attribution obligations, or require a formal SLA, a commercial license is available. See [COMMERCIAL-LICENSE.md](./COMMERCIAL-LICENSE.md) for pricing and terms. To purchase, email `jackgreen2018+sponsors@gmail.com`.
128
+ Need to ship `pdf-engine` in closed-source software without the MIT attribution requirement, or need it for procurement/legal sign-off? A perpetual, per-seat commercial license is $49 one-time.
129
+
130
+ **[Buy the commercial license →](https://creem.io/product/prod_3ZlNAxFzbn9vwfT4Ho3OKJ)**
131
+
132
+ See [COMMERCIAL-LICENSE.md](./COMMERCIAL-LICENSE.md) for full terms. Team licenses, POs, or questions: `jackgreen2018+sponsors@gmail.com`.
129
133
 
130
134
  ## License
131
135
 
@@ -169,4 +173,4 @@ numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL
169
173
 
170
174
  ## Backlinks
171
175
 
172
- - Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
176
+ - Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackgreen2018/pdf-engine",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -22,16 +22,19 @@
22
22
  "build": "wasm-pack build --target bundler && rm -f pkg/.gitignore && tsc",
23
23
  "benchmark": "node benchmark.mjs",
24
24
  "test": "node tests/smoke.js",
25
- "prepare": "npm run build"
25
+ "prepare": "echo 'skip'"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
30
  "prepublishOnly": "npm run build",
31
31
  "devDependencies": {
32
- "@types/node": "^26.1.2",
32
+ "@types/node": "26.1.2",
33
+ "pako": "3.0.1",
33
34
  "pdf-lib": "^1.17.1",
34
- "typescript": "^7.0.2"
35
+ "tslib": "2.8.1",
36
+ "typescript": "7.0.2",
37
+ "undici-types": "8.9.0"
35
38
  },
36
39
  "description": "A lightweight, high-performance PDF processing library that runs in the browser and Node.js via Rust/WASM. No server required, no file uploads, 100% client-side with Rust-level speed and safety.",
37
40
  "keywords": [
@@ -53,10 +56,5 @@
53
56
  "homepage": "https://github.com/jackgreen/pdf-engine#readme",
54
57
  "directories": {
55
58
  "test": "tests"
56
- },
57
- "dependencies": {
58
- "pako": "^1.0.11",
59
- "tslib": "^1.14.1",
60
- "undici-types": "^8.3.0"
61
59
  }
62
60
  }
package/pkg/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Jack Green
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/pkg/README.md CHANGED
@@ -114,14 +114,14 @@ npm run benchmark
114
114
 
115
115
  | Operation | pdf-engine (ms) | pdf-lib (ms) |
116
116
  |-----------|-----------------|--------------|
117
- | Page Count | 0.77 | 1.46 |
118
- | Text Extraction | 0.33 | — |
119
- | Merge (2 files) | 1.14 | 4.70 |
120
- | Split (pages [0,1]) | 0.32 | 2.02 |
117
+ | Page Count | 0.56 | 1.41 |
118
+ | Text Extraction | 0.28 | — |
119
+ | Merge (2 files) | 0.95 | 3.77 |
120
+ | Split (pages [0,1]) | 0.22 | 1.75 |
121
121
 
122
122
  *extractText correctness: PASS — gated via `tests/fixtures/text-fixture.pdf` (FlateDecode-compressed, real-world content stream). v1.0.30 fixes extractText to return actual text instead of "No text extracted."*
123
123
 
124
- *Run 2026-08-03 (v1.0.89); raw JSON at benchmark-results.json.*
124
+ *Run 2026-08-02 (v1.0.80); raw JSON at benchmark-results.json.*
125
125
 
126
126
  ## Commercial license & support
127
127
 
@@ -169,4 +169,4 @@ numbers (`evidence/benchmark.log`) are the source of truth until the dev.to URL
169
169
 
170
170
  ## Backlinks
171
171
 
172
- - Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
172
+ - Dev.to launch post (canonical for this version): https://www.npmjs.com/package/@jackgreen2018/pdf-engine
package/pkg/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "pdf_engine",
3
- "version": "1.0.88",
3
+ "version": "1.0.69",
4
+ "license": "MIT",
4
5
  "files": [
5
6
  "pdf_engine_bg.wasm",
6
7
  "pdf_engine.js",