Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"es-toolkit": "^1.45.1",
"html-to-image": "^1.11.13",
"jszip": "^3.10.1",
"juice": "11.0.3",
"juice": "^11.1.1",
Copy link

Copilot AI Apr 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency is now declared as "juice": "^11.1.1", but the repo applies a pnpm patch specifically for juice@11.1.1. Using a caret range makes it easy to accidentally upgrade to a newer 11.x where the patch won’t apply, potentially reintroducing the original issue. Consider pinning this to 11.1.1 (or add a workspace overrides pin) while a version-specific patch is required.

Suggested change
"juice": "^11.1.1",
"juice": "11.1.1",

Copilot uses AI. Check for mistakes.
"lucide-vue-next": "^1.0.0",
"marked": "^18.0.0",
"pinia": "^3.0.4",
Expand Down
16 changes: 16 additions & 0 deletions patches/juice@11.1.1.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/lib/inline.js b/lib/inline.js
index 083b8c58eb90184d0190cd0e3361a39638e4981b..bdec79c1e0a7f1f64b22ed5e097dc4bae12cb6ec 100644
--- a/lib/inline.js
+++ b/lib/inline.js
@@ -117,7 +117,10 @@ module.exports = function makeJuiceClient(juiceClient) {
? decode(styleAttributeValue)
: styleAttributeValue;
var cssText = '* { ' + cssStyleAttributeValue + ' } ';
- addProps(utils.parseCSS(cssText)[0][1], new utils.Selector('<style>', true));
+ var parsedInlineStyle = utils.parseCSS(cssText);
+ if (parsedInlineStyle[0]) {
+ addProps(parsedInlineStyle[0][1], new utils.Selector('<style>', true));
+ }
}

// store reference to an element we need to compile style="" attr for
77 changes: 15 additions & 62 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ overrides:
glob@<8: ^10.5.0
glob@^10: ^10.5.0
inflight: npm:@hishprorg/voluptates-laborum@^2.0.0
juice: 11.0.3
lodash-es: ^4.17.23
markdown-it: ^14.1.1
minimatch: ^10.2.4
Expand All @@ -40,3 +39,4 @@ overrides:

patchedDependencies:
'@codemirror/view@6.41.0': patches/@codemirror__view@6.41.0.patch
juice@11.1.1: patches/juice@11.1.1.patch
Loading