@astrojs/compiler 0.29.16 → 0.29.18

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,22 @@
1
1
  # @astrojs/compiler
2
2
 
3
+ ## 0.29.18
4
+
5
+ ### Patch Changes
6
+
7
+ - 80de395: fix: avoid nil pointer dereference in table parsing
8
+ - aa3ad9d: Fix `parse` output to properly account for the location of self-closing tags
9
+ - b89dec4: Internally, replace `astro.ParseFragment` in favor of `astro.ParseFragmentWithOptions`. We now check whether an error handler is passed when calling `astro.ParseFragmentWithOptions`
10
+
11
+ ## 0.29.17
12
+
13
+ ### Patch Changes
14
+
15
+ - 1e7e098: Add warning for invalid spread attributes
16
+ - 3cc6f55: Fix handling of unterminated template literal attributes
17
+ - 48c5677: Update default `internalURL` to `astro/runtime/server/index.js`
18
+ - 2893f33: Fix a number of `table` and `expression` related bugs
19
+
3
20
  ## 0.29.16
4
21
 
5
22
  ### Patch Changes
package/README.md CHANGED
@@ -17,7 +17,7 @@ The Astro compiler can convert `.astro` syntax to a TypeScript Module whose defa
17
17
  **Some notes**...
18
18
 
19
19
  - TypeScript is valid `.astro` syntax! The output code may need an additional post-processing step to generate valid JavaScript.
20
- - `.astro` files rely on a server implementation exposed as `astro/internal` in the Node ecosystem. Other runtimes currently need to bring their own rendering implementation and reference it via `internalURL`. This is a pain point we're looking into fixing.
20
+ - `.astro` files rely on a server implementation exposed as `astro/runtime/server/index.js` in the Node ecosystem. Other runtimes currently need to bring their own rendering implementation and reference it via `internalURL`. This is a pain point we're looking into fixing.
21
21
 
22
22
  ```js
23
23
  import { transform } from '@astrojs/compiler';
@@ -26,7 +26,7 @@ const result = await transform(source, {
26
26
  site: 'https://mysite.dev',
27
27
  sourcefile: '/Users/astro/Code/project/src/pages/index.astro',
28
28
  sourcemap: 'both',
29
- internalURL: 'astro/internal',
29
+ internalURL: 'astro/runtime/server/index.js',
30
30
  });
31
31
  ```
32
32
 
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.29.16",
8
+ "version": "0.29.18",
9
9
  "main": "./node/index.js",
10
10
  "types": "./node",
11
11
  "repository": {
@@ -30,6 +30,7 @@
30
30
  "@jridgewell/trace-mapping": "^0.3.16",
31
31
  "@types/node": "^16.11.64",
32
32
  "@types/sass": "^1.43.1",
33
+ "acorn": "^8.8.1",
33
34
  "typescript": "~4.8.4"
34
35
  },
35
36
  "scripts": {
@@ -0,0 +1,6 @@
1
+ <Fragment>
2
+ {/** prettier-ignore */}<li />
3
+
4
+ </Fragment>
5
+ export default function Index__AstroComponent_(_props: Record<string, any>): any {}
6
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiaW5kZXguYXN0cm8iXSwKICAic291cmNlc0NvbnRlbnQiOiBbIlxuXHUwMDNjIS0tIHByZXR0aWVyLWlnbm9yZSAtLVx1MDAzZVxuXHUwMDNjbGkgL1x1MDAzZVxuIl0sCiAgIm1hcHBpbmdzIjogIkFBQUEsQUFBQTtBQUFBLElBQ0ksQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxBQURwQixJQUVBLENBQUMsRUFBRSxDQUFDLEVBQUU7QUFDTixBQUhBO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9