@astrojs/compiler 0.27.1 → 0.28.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,21 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.28.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5da0dc2: Add `resolvePath` option to control hydration path resolution
8
+ - e816a61: Remove metadata export if `resolvePath` option provided
9
+
10
+ ## 0.27.2
11
+
12
+ ### Patch Changes
13
+
14
+ - 959f96b: Fix "missing sourcemap" issue
15
+ - 94f6f3e: Fix edge case with multi-line comment usage
16
+ - 85a654a: Fix `parse` causing a compiler panic when a component with a client directive was imported but didn't have a matching import
17
+ - 5e32cbe: Improvements to TSX output
18
+
3
19
  ## 0.27.1
4
20
 
5
21
  ### Patch Changes
package/README.md CHANGED
@@ -60,7 +60,7 @@ walk(result.ast, (node) => {
60
60
 
61
61
  ### VSCode / CodeSpaces
62
62
 
63
- A `devcontianer` configuration is available for use with VSCode's [Remote Development extension pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) and GitHub CodeSpaces.
63
+ A `devcontainer` configuration is available for use with VSCode's [Remote Development extension pack](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack) and GitHub CodeSpaces.
64
64
 
65
65
  ## Contributing
66
66
 
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.27.1",
8
+ "version": "0.28.0",
9
9
  "main": "./node/index.js",
10
10
  "types": "./node",
11
11
  "repository": {
@@ -27,13 +27,10 @@
27
27
  "./types": "./types.d.ts"
28
28
  },
29
29
  "devDependencies": {
30
- "@jridgewell/trace-mapping": "^0.3.14",
31
- "@types/node": "^16.4.12",
30
+ "@jridgewell/trace-mapping": "^0.3.16",
31
+ "@types/node": "^16.11.64",
32
32
  "@types/sass": "^1.43.1",
33
- "typescript": "^4.4.3"
34
- },
35
- "volta": {
36
- "node": "16.6.2"
33
+ "typescript": "~4.8.4"
37
34
  },
38
35
  "scripts": {
39
36
  "build": "tsc -p ."
package/shared/types.d.ts CHANGED
@@ -44,6 +44,7 @@ export interface TransformOptions {
44
44
  */
45
45
  as?: 'document' | 'fragment';
46
46
  projectRoot?: string;
47
+ resolvePath?: (specifier: string) => Promise<string>;
47
48
  preprocessStyle?: (content: string, attrs: Record<string, string>) => null | Promise<PreprocessorResult | PreprocessorError>;
48
49
  experimentalStaticExtraction?: boolean;
49
50
  }