@effectweb/compiler 0.2.2 → 0.2.3
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/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/compile.d.ts +0 -1
- package/dist/compile.js +0 -1
- package/dist/vite.d.ts +0 -1
- package/dist/vite.js +0 -1
- package/package.json +6 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -19,4 +19,4 @@ See [EffectWeb](https://github.com/DerpyCrabs/EffectWeb) for authoring and devel
|
|
|
19
19
|
|
|
20
20
|
For editor and CI diagnostics, add `@effectweb/compiler/oxlint` to Oxlint's `jsPlugins` and enable `effectweb/valid-view` as an error. The optional `effectweb/whole-model-dependency` rule reports coarse dependencies. Both use the compiler's Rust analysis; no second purity implementation is maintained. `diagnose` exposes the same structured view diagnostics for other tooling. Invalid syntax still throws and is handled by the host parser.
|
|
21
21
|
|
|
22
|
-
The Vite plugin enables plain-data snapshot freezing during development and disables it for production builds. This catches accidental mutation without changing object identity or introducing proxies.
|
|
22
|
+
The Vite plugin enables plain-data snapshot freezing during development and disables it for production builds. This catches accidental mutation without changing object identity or introducing proxies. Published snapshots must remain immutable; opaque mutable objects are outside these checks.
|
package/dist/compile.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ export interface CompilerResult {
|
|
|
17
17
|
readonly map: string | null;
|
|
18
18
|
readonly diagnostics: readonly Diagnostic[];
|
|
19
19
|
}
|
|
20
|
-
/** JSX analysis and lowering run in Rust/Oxc; this boundary only transports options and results. */
|
|
21
20
|
export declare function compile(source: string, filename: string, options?: CompilerOptions): CompilerResult;
|
|
22
21
|
/** Run the same view analysis as compilation, collecting one error per invalid view. */
|
|
23
22
|
export declare function diagnose(source: string, filename: string, options?: Omit<CompilerOptions, 'onDiagnostic'>): readonly Diagnostic[];
|
package/dist/compile.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { compile as nativeCompile } from '../native.cjs';
|
|
2
|
-
/** JSX analysis and lowering run in Rust/Oxc; this boundary only transports options and results. */
|
|
3
2
|
export function compile(source, filename, options = {}) {
|
|
4
3
|
const { onDiagnostic, ...nativeOptions } = { importSource: 'effectweb', ...options };
|
|
5
4
|
const result = JSON.parse(nativeCompile(source, filename, JSON.stringify(nativeOptions)));
|
package/dist/vite.d.ts
CHANGED
package/dist/vite.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effectweb/compiler",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Native Oxc compiler and Vite plugin for effectweb",
|
|
5
5
|
"homepage": "https://github.com/DerpyCrabs/EffectWeb",
|
|
6
6
|
"bugs": {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
|
-
"@effectweb/compiler-darwin-arm64": "0.2.
|
|
50
|
-
"@effectweb/compiler-darwin-x64": "0.2.
|
|
51
|
-
"@effectweb/compiler-linux-arm64-gnu": "0.2.
|
|
52
|
-
"@effectweb/compiler-linux-x64-gnu": "0.2.
|
|
53
|
-
"@effectweb/compiler-win32-x64-msvc": "0.2.
|
|
49
|
+
"@effectweb/compiler-darwin-arm64": "0.2.3",
|
|
50
|
+
"@effectweb/compiler-darwin-x64": "0.2.3",
|
|
51
|
+
"@effectweb/compiler-linux-arm64-gnu": "0.2.3",
|
|
52
|
+
"@effectweb/compiler-linux-x64-gnu": "0.2.3",
|
|
53
|
+
"@effectweb/compiler-win32-x64-msvc": "0.2.3"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=22.14"
|