@astrojs/compiler 1.1.0 → 1.1.2
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 +14 -0
- package/astro.wasm +0 -0
- package/package.json +1 -1
- package/shared/types.d.ts +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @astrojs/compiler
|
|
2
2
|
|
|
3
|
+
## 1.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2de6128: Preserve namespaced attributes when using expressions
|
|
8
|
+
- af13f2d: Fix incorrect `convertToTSX` types. The function accepts `filename`, not `sourcefile`.
|
|
9
|
+
- 5eb4fff: Compile `set:html` and `set:text` quoted and template literal attributes as strings
|
|
10
|
+
|
|
11
|
+
## 1.1.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 6765f01: Fix attributes starting with : not being properly transformed in the TSX output
|
|
16
|
+
|
|
3
17
|
## 1.1.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/astro.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/shared/types.d.ts
CHANGED
|
@@ -46,6 +46,7 @@ export interface TransformOptions {
|
|
|
46
46
|
resolvePath?: (specifier: string) => Promise<string>;
|
|
47
47
|
preprocessStyle?: (content: string, attrs: Record<string, string>) => null | Promise<PreprocessorResult | PreprocessorError>;
|
|
48
48
|
}
|
|
49
|
+
export declare type ConvertToTSXOptions = Pick<TransformOptions, 'filename' | 'normalizedFilename'>;
|
|
49
50
|
export declare type HoistedScript = {
|
|
50
51
|
type: string;
|
|
51
52
|
} & ({
|
|
@@ -91,9 +92,7 @@ export interface ParseResult {
|
|
|
91
92
|
}
|
|
92
93
|
export declare function transform(input: string, options?: TransformOptions): Promise<TransformResult>;
|
|
93
94
|
export declare function parse(input: string, options?: ParseOptions): Promise<ParseResult>;
|
|
94
|
-
export declare function convertToTSX(input: string, options?:
|
|
95
|
-
sourcefile?: string;
|
|
96
|
-
}): Promise<TSXResult>;
|
|
95
|
+
export declare function convertToTSX(input: string, options?: ConvertToTSXOptions): Promise<TSXResult>;
|
|
97
96
|
export declare function initialize(options: InitializeOptions): Promise<void>;
|
|
98
97
|
export interface InitializeOptions {
|
|
99
98
|
wasmURL?: string;
|