@astrojs/compiler 0.8.3-pre.0 → 0.9.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,15 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c1a0172: changing raw_with_expression_loop in tokenizer to only handle string that has '`' differently otherwise it should treat it as normal string
8
+
9
+ ### Patch Changes
10
+
11
+ - 1fa2162: Improved types for TransformResult with hoisted scripts
12
+
3
13
  ## 0.8.2
4
14
 
5
15
  ### 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.8.3-pre.0",
8
+ "version": "0.9.0",
9
9
  "scripts": {
10
10
  "build": "tsc -p ."
11
11
  },
package/shared/types.d.ts CHANGED
@@ -13,11 +13,15 @@ export interface TransformOptions {
13
13
  preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
14
14
  experimentalStaticExtraction?: boolean;
15
15
  }
16
- export interface HoistedScript {
17
- src?: string;
18
- code?: string;
19
- type: 'external' | 'inline';
20
- }
16
+ export declare type HoistedScript = {
17
+ type: string;
18
+ } & ({
19
+ type: 'external';
20
+ src: string;
21
+ } | {
22
+ type: 'inline';
23
+ code: string;
24
+ });
21
25
  export interface TransformResult {
22
26
  css: string[];
23
27
  scripts: HoistedScript[];