@astrojs/compiler 0.5.7 → 0.7.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,29 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 43cbac3: Adds metadata on hydration directives used by the component
8
+
9
+ ## 0.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - e785310: Fix issue with import assertions creating additional imports
14
+
15
+ ## 0.6.1
16
+
17
+ ### Patch Changes
18
+
19
+ - e40ea9c: Include LICENSE information
20
+
21
+ ## 0.6.0
22
+
23
+ ### Minor Changes
24
+
25
+ - b9e2b4b: Adds option to make CSS be extracted statically
26
+
3
27
  ## 0.5.7
4
28
 
5
29
  ### Patch Changes
package/astro.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,11 @@
1
1
  {
2
2
  "name": "@astrojs/compiler",
3
+ "author": "withastro",
4
+ "license": "MIT",
3
5
  "type": "module",
4
- "version": "0.5.7",
6
+ "bugs": "https://github.com/withastro/compiler/issues",
7
+ "homepage": "https://astro.build",
8
+ "version": "0.7.0",
5
9
  "scripts": {
6
10
  "build": "tsc -p ."
7
11
  },
package/shared/types.d.ts CHANGED
@@ -6,12 +6,15 @@ export interface TransformOptions {
6
6
  internalURL?: string;
7
7
  site?: string;
8
8
  sourcefile?: string;
9
+ pathname?: string;
9
10
  sourcemap?: boolean | 'inline' | 'external' | 'both';
10
11
  as?: 'document' | 'fragment';
11
12
  projectRoot?: string;
12
13
  preprocessStyle?: (content: string, attrs: Record<string, string>) => Promise<PreprocessorResult>;
14
+ experimentalStaticExtraction?: boolean;
13
15
  }
14
16
  export interface TransformResult {
17
+ css: string[];
15
18
  code: string;
16
19
  map: string;
17
20
  }