pdfkit 0.19.0 → 0.19.1

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/.yarnrc.yml CHANGED
@@ -1,3 +1,10 @@
1
- yarnPath: .yarn/releases/yarn-4.10.3.cjs
1
+ approvedGitRepositories:
2
+ - '**'
3
+
4
+ enableScripts: true
2
5
 
3
6
  nodeLinker: node-modules
7
+
8
+ npmMinimalAgeGate: '1w'
9
+
10
+ yarnPath: .yarn/releases/yarn-4.16.0.cjs
package/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ### Unreleased
4
4
 
5
+ ### [v0.19.1] - 2026-06-10
6
+
7
+ - Fix RGB JPEG embedded as DeviceGray (0.19.0 regression) (#1734)
8
+
5
9
  ### [v0.19.0] - 2026-06-07
6
10
 
7
11
  - Bump node version requirement to 20+
package/js/pdfkit.es.js CHANGED
@@ -3837,7 +3837,7 @@ class JPEG {
3837
3837
  pos += 2;
3838
3838
  this.width = this.data.readUInt16BE(pos);
3839
3839
  pos += 2;
3840
- const channels = this.data[pos + 1];
3840
+ const channels = this.data[pos];
3841
3841
  this.colorSpace = COLOR_SPACE_MAP[channels];
3842
3842
  this.obj = null;
3843
3843
  }