@dextinity/mail-react 10.4.0-canary-20260903142105 → 10.4.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.
@@ -10,5 +10,14 @@ export function minifyHeadCss(css) {
10
10
  if (parseErrors.length > 0) {
11
11
  throw new Error(`The registered styles do not parse, so they cannot be minified: ${parseErrors.join("; ")}`);
12
12
  }
13
- return syntax.generate(syntax.compress(styleSheet).ast);
13
+ return separateConsecutiveClosingBraces(syntax.generate(syntax.compress(styleSheet).ast));
14
+ }
15
+ /**
16
+ * Outlook.com and the Outlook apps for iOS and Android drop everything that follows the first `}}`
17
+ * of a `<style>` tag.
18
+ *
19
+ * @see https://github.com/hteumeuleu/email-bugs/issues/92
20
+ */
21
+ function separateConsecutiveClosingBraces(css) {
22
+ return css.replace(/\}(?=\})/g, "} ");
14
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dextinity/mail-react",
3
- "version": "10.4.0-canary-20260903142105",
3
+ "version": "10.4.0",
4
4
  "description": "Utilities for building HTML emails with React",
5
5
  "license": "BSD-2-Clause",
6
6
  "type": "module",
@@ -50,8 +50,8 @@
50
50
  "typescript": "^5.9.3",
51
51
  "vite": "^7.3.1",
52
52
  "vitest": "^4.1.8",
53
- "@dextinity/cli": "10.4.0-canary-20260903142105",
54
- "@dextinity/eslint-config": "10.4.0-canary-20260903142105"
53
+ "@dextinity/cli": "10.4.0",
54
+ "@dextinity/eslint-config": "10.4.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",