Skip to content

Commit

Permalink
fix: bump jay-peg dependency to fix CJS module resolution error (dieg…
Browse files Browse the repository at this point in the history
…omura#2635)

jay-peg 1.0.0 suffered from an issue that caused module resolution error in CJS mode.
  • Loading branch information
wojtekmaj authored Feb 12, 2024
1 parent 9093e62 commit da10a9b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/nasty-lemons-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@react-pdf/pdfkit": patch
"@react-pdf/image": patch
---

fix: bump jay-peg dependency to fix CJS module resolution error
2 changes: 1 addition & 1 deletion packages/image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@babel/runtime": "^7.20.13",
"@react-pdf/png-js": "^2.3.1",
"cross-fetch": "^3.1.5",
"jay-peg": "^1.0.0"
"jay-peg": "^1.0.1"
},
"files": [
"lib"
Expand Down
2 changes: 1 addition & 1 deletion packages/pdfkit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"browserify-zlib": "^0.2.0",
"crypto-js": "^4.2.0",
"fontkit": "^2.0.2",
"jay-peg": "^1.0.0",
"jay-peg": "^1.0.1",
"vite-compatible-readable-stream": "^3.6.1"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5943,10 +5943,10 @@ jake@^10.8.5:
filelist "^1.0.4"
minimatch "^3.1.2"

jay-peg@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.0.0.tgz#20c099750af38e6a53b03f9ccee6f611d16c282c"
integrity sha512-rCKRgTXsU/ZhKpmrKSXEodSoVG0EQjpBhxS+jYB8AnI31o0uKLsqR4LNR3seo1+vMARsa0ceXqWe8iq4GR6pIw==
jay-peg@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/jay-peg/-/jay-peg-1.0.1.tgz#f09b8615886cb1ce61c364c16e203f566eeaa779"
integrity sha512-zBfjkGbuuNXk8JW+rEePpPEbRRjupS8q+5yPak7kjy3e2GvvNwsLle9okEFvfGyZA6HvtSSiYrVd1/jgnYebaQ==
dependencies:
restructure "^3.0.0"

Expand Down

0 comments on commit da10a9b

Please sign in to comment.