@effectweb/compiler 0.2.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 TeleVecha contributors
3
+ Copyright (c) 2026 EffectWeb contributors
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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. See the authoring guide for the readonly type contract, opaque values, and explicit test configuration.
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
@@ -1,5 +1,4 @@
1
1
  import type { Plugin } from 'vite';
2
2
  import { type CompilerOptions } from './compile.js';
3
- /** Rust/Oxc lowers snapshot JSX before Vite's TypeScript pass. */
4
3
  export declare function effectweb(options?: CompilerOptions): Plugin;
5
4
  export default effectweb;
package/dist/vite.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { compile } from './compile.js';
2
- /** Rust/Oxc lowers snapshot JSX before Vite's TypeScript pass. */
3
2
  export function effectweb(options = {}) {
4
3
  let development = false;
5
4
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectweb/compiler",
3
- "version": "0.2.1",
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.1",
50
- "@effectweb/compiler-darwin-x64": "0.2.1",
51
- "@effectweb/compiler-linux-arm64-gnu": "0.2.1",
52
- "@effectweb/compiler-linux-x64-gnu": "0.2.1",
53
- "@effectweb/compiler-win32-x64-msvc": "0.2.1"
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"