@astrojs/compiler 0.5.4 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - b9e2b4b: Adds option to make CSS be extracted statically
8
+
9
+ ## 0.5.7
10
+
11
+ ### Patch Changes
12
+
13
+ - 75bd730: Fix regression with Components mixed with active formatting elements
14
+
15
+ ## 0.5.6
16
+
17
+ ### Patch Changes
18
+
19
+ - 7ca419e: Improve behavior of empty expressions in body and attributes, where `{}` is equivalent to `{(void 0)}`
20
+
21
+ ## 0.5.5
22
+
23
+ ### Patch Changes
24
+
25
+ - 7a41d7b: Fix `<>` syntax edge case inside of expressions
26
+ - b0d35b9: Fix edge case with conditional scripts
27
+
3
28
  ## 0.5.4
4
29
 
5
30
  ### Patch Changes
package/astro.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astrojs/compiler",
3
3
  "type": "module",
4
- "version": "0.5.4",
4
+ "version": "0.6.0",
5
5
  "scripts": {
6
6
  "build": "tsc -p ."
7
7
  },
package/shared/types.d.ts CHANGED
@@ -10,8 +10,10 @@ export interface TransformOptions {
10
10
  as?: 'document' | 'fragment';
11
11
  projectRoot?: string;
12
12
  preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
13
+ experimentalStaticExtraction?: boolean;
13
14
  }
14
15
  export interface TransformResult {
16
+ css: string[];
15
17
  code: string;
16
18
  map: string;
17
19
  }