Skip to content

Commit c098787

Browse files
committed
refactor(core): remove old jit.ts and rename jit2.ts to jit.ts
Consolidate the JIT system to use only the unified expression tree architecture. The old Context/Slot API is removed in favor of Builder/Ref. Changes: - Delete old jit.ts (Context, Slot, jit.fn pattern) - Rename jit2.ts to jit.ts (Builder, Ref, fn pattern) - Update core/index.ts exports - Migrate change-detector.ts, snapshot.ts, path.ts to new API - Migrate benchmark files to new API - Update compat.ts documentation All 1949 type package tests passing.
1 parent 239ab73 commit c098787

File tree

9 files changed

+1554
-3130
lines changed

9 files changed

+1554
-3130
lines changed

packages/core/index.ts

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -18,64 +18,6 @@ export * from './src/network.js';
1818
export * from './src/perf.js';
1919
export * from './src/compiler.js';
2020
export * from './src/jit.js';
21-
// jit2 exports - Builder API for unified expression trees (JIT + Exec)
22-
// Note: Some exports overlap with jit.js (Arg, canJIT, etc.), so we selectively export
23-
export {
24-
// Expression tree types
25-
type LitExpr,
26-
type InputExpr,
27-
type VarExpr,
28-
type GetExpr,
29-
type AtExpr,
30-
type CallExpr,
31-
type NewExpr,
32-
type ObjExpr,
33-
type ArrExpr,
34-
type EqExpr,
35-
type NeqExpr,
36-
type LtExpr,
37-
type GtExpr,
38-
type LteExpr,
39-
type GteExpr,
40-
type NotExpr,
41-
type AndExpr,
42-
type OrExpr,
43-
type NullishExpr,
44-
type TypeofExpr,
45-
type IsTypeExpr,
46-
type IsNullExpr,
47-
type IsNullishExpr,
48-
type HasExpr,
49-
type LenExpr,
50-
type TernaryExpr,
51-
type InstanceofExpr,
52-
type ConcatExpr,
53-
type MapExpr,
54-
type Expr,
55-
// Statement types
56-
type LetStmt,
57-
type SetStmt,
58-
type PushStmt,
59-
type SetVarStmt,
60-
type ExecStmt,
61-
type ReturnStmt,
62-
type ThrowStmt,
63-
type IfStmt,
64-
type LoopStmt,
65-
type ForInStmt,
66-
type SwitchStmt,
67-
type Stmt,
68-
type Block,
69-
// Core classes
70-
Ref,
71-
VarRef,
72-
Builder,
73-
// Functions
74-
arg,
75-
fn,
76-
fnJIT,
77-
fnExec,
78-
} from './src/jit2.js';
7921
export * from './src/string.js';
8022
export * from './src/emitter.js';
8123
export * from './src/reactive.js';

0 commit comments

Comments
 (0)