@astrojs/compiler 0.9.1 → 0.10.1

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,27 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 38ae39a: Add support for `set:html` and `set:text` directives, as designed in the [`set:html` RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-set-html.md).
8
+
9
+ ## 0.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 02d41a8: Adds support for `Astro.self` (as accepted in the [Recursive Components RFC](https://github.com/withastro/rfcs/blob/main/active-rfcs/0000-recursive-components.md)).
14
+
15
+ ### Patch Changes
16
+
17
+ - 4fe522b: Fixes inclusion of define:vars scripts/styles using the StaticExtraction flag
18
+
19
+ ## 0.9.2
20
+
21
+ ### Patch Changes
22
+
23
+ - 92cc76b: Fix wasm build for use in Astro
24
+
3
25
  ## 0.9.1
4
26
 
5
27
  ### Patch Changes
package/astro.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "bugs": "https://github.com/withastro/compiler/issues",
7
7
  "homepage": "https://astro.build",
8
- "version": "0.9.1",
8
+ "version": "0.10.1",
9
9
  "scripts": {
10
10
  "build": "tsc -p ."
11
11
  },
package/shared/types.d.ts CHANGED
@@ -13,8 +13,18 @@ export interface TransformOptions {
13
13
  preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
14
14
  experimentalStaticExtraction?: boolean;
15
15
  }
16
+ export declare type HoistedScript = {
17
+ type: string;
18
+ } & ({
19
+ type: 'external';
20
+ src: string;
21
+ } | {
22
+ type: 'inline';
23
+ code: string;
24
+ });
16
25
  export interface TransformResult {
17
26
  css: string[];
27
+ scripts: HoistedScript[];
18
28
  code: string;
19
29
  map: string;
20
30
  }