@astrojs/compiler 1.1.1 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.1.1
4
12
 
5
13
  ### 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": "1.1.1",
8
+ "version": "1.1.2",
9
9
  "main": "./node/index.js",
10
10
  "types": "./node",
11
11
  "repository": {
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;