@rsvelte/compiler 0.10.11 → 0.10.12

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/README.md CHANGED
@@ -10,9 +10,10 @@ The whole compile pipeline — parse, analyze, transform — for client, SSR and
10
10
  hydration, with output that matches the official compiler across the in-scope
11
11
  test suite.
12
12
 
13
- > **⚠️ Early stage.** The API surface is stabilising. Output is verified
14
- > byte-for-byte against the official compiler across the in-scope Svelte test
15
- > suite, but treat this as experimental for production use.
13
+ > **⚠️ Early stage.** This package exposes a browser-oriented low-level WASM
14
+ > API, not the public `svelte/compiler` API. Output is verified byte-for-byte
15
+ > against the official compiler across the in-scope Svelte test suite, but treat
16
+ > this package as experimental for production use.
16
17
 
17
18
  ## Install
18
19
 
@@ -44,7 +45,7 @@ initSync({ module: bytes });
44
45
  stable across releases; the on-disk filename is an internal build detail and may
45
46
  change.
46
47
 
47
- ## Usage
48
+ ## WASM API
48
49
 
49
50
  ```js
50
51
  import init, {
@@ -96,6 +97,10 @@ const result = JSON.parse(
96
97
  console.log(result.js.code, result.warnings);
97
98
  ```
98
99
 
100
+ The exported names and JSON-string return values below are specific to this
101
+ WASM package. They are deliberately not presented as `svelte/compiler`
102
+ equivalents.
103
+
99
104
  ## Why it is fast
100
105
 
101
106
  - Written in Rust with a memory-efficient AST (`u32` spans, compact strings) and
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@rsvelte/compiler",
3
3
  "type": "module",
4
4
  "description": "A high-performance Rust implementation of the Svelte compiler",
5
- "version": "0.10.11",
5
+ "version": "0.10.12",
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "rsvelte_lint_bg.wasm",
Binary file