@octanejs/email 0.0.8 → 0.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/email",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -42,7 +42,7 @@
42
42
  "tailwindcss": "4.3.3"
43
43
  },
44
44
  "peerDependencies": {
45
- "octane": "^0.6.0"
45
+ "octane": "^0.8.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@react-email/components": "1.0.12",
@@ -52,7 +52,7 @@
52
52
  "react": "19.2.7",
53
53
  "react-dom": "19.2.7",
54
54
  "vitest": "^4.1.10",
55
- "octane": "0.6.0"
55
+ "octane": "0.8.0"
56
56
  },
57
57
  "scripts": {
58
58
  "test": "vitest run"
@@ -11,6 +11,7 @@ import {
11
11
  type NumberNode,
12
12
  type Percentage,
13
13
  type Rule,
14
+ type WalkOptionsVisit,
14
15
  } from 'css-tree';
15
16
  import { readFile } from 'node:fs/promises';
16
17
  import { createRequire } from 'node:module';
@@ -99,7 +100,7 @@ ${options.utility ?? ''}
99
100
  if (value.property.startsWith('--'))
100
101
  customProperties.set(value.property, generate(value.value));
101
102
  },
102
- });
103
+ } satisfies WalkOptionsVisit<Declaration>);
103
104
  list?.remove(item);
104
105
  return;
105
106
  }
@@ -116,11 +117,11 @@ ${options.utility ?? ''}
116
117
  declarations += `${value.property}:${sanitizeOklchColors(resolvedValue, 'value')}${important};`;
117
118
  }
118
119
  },
119
- });
120
+ } satisfies WalkOptionsVisit<Declaration>);
120
121
  if (declarations) inline.set(className, declarations);
121
122
  list?.remove(item);
122
123
  },
123
- });
124
+ } satisfies WalkOptionsVisit<Rule>);
124
125
  // What remains is media/pseudo CSS plus Tailwind's supporting at-rules.
125
126
  if (ast.type !== 'StyleSheet') throw new Error('Tailwind generated an invalid stylesheet.');
126
127
  for (const node of ast.children) nonInlineNodes.push(node as Rule | Atrule);
@@ -407,7 +408,7 @@ function sanitizeOklchColors(value: string, context: 'stylesheet' | 'value'): st
407
408
  if (color.name.toLowerCase() !== 'oklch') return;
408
409
  item.data = oklchToRgbNode(color);
409
410
  },
410
- });
411
+ } satisfies WalkOptionsVisit<FunctionNode>);
411
412
  return generate(ast);
412
413
  }
413
414