Skip to content

Commit e98f0c8

Browse files
committed
Auto-commit: Sync changes [2026-03-02]
1 parent 008dadb commit e98f0c8

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

URGENT-RESCRIPT-MIGRATION.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# URGENT: ReScript Migration Required
2+
3+
**Generated:** 2026-03-02
4+
**Current stable ReScript:** 12.2.0
5+
**Pre-release:** 13.0.0-alpha.2 (2025-02-27)
6+
7+
This repo has ReScript code that needs migration. Address in priority order.
8+
9+
## HIGH: ReScript 11.x → 12.2.0 Upgrade Required
10+
11+
ReScript 11 is outdated. v12 has breaking changes that need migration.
12+
13+
- `netstack/interface (^11.1.4)`
14+
15+
**Key v11 → v12 migration steps:**
16+
1. Update `package.json`: `"rescript": "^12.2.0"`
17+
2. Add `@rescript/core` and `@rescript/react` (if applicable) to dependencies
18+
3. Config: `bs-dependencies``dependencies`, `bs-dev-dependencies``dev-dependencies`
19+
4. Remove `bsc-flags` from config
20+
5. JSX: v3 is removed in v12 — must use JSX v4
21+
6. Module format: `es6`/`es6-global``esmodule` (now default)
22+
7. Migrate deprecated `Js.*` APIs → `@rescript/core` equivalents:
23+
- `Js.Dict``Dict`, `Js.Console.log``Console.log`
24+
- `Js.String2``String`, `Js.Array2``Array`
25+
- `Js.Math``Math`, `Js.Float``Float`, `Js.Int``Int`
26+
- `Js.Promise``Promise`, `Js.Nullable``Nullable`
27+
8. Functions ending in `Exn``OrThrow` (e.g. `getExn``getOrThrow`)
28+
9. Run `npx rescript-tools migrate` for automated codemods
29+
30+
## MEDIUM: ReScript 12.0.0-alpha → 12.2.0 Stable
31+
32+
Pinned to pre-release alpha. Upgrade to stable.
33+
34+
- `netstack/modules/poly-k8s-mcp (^12.0.0-alpha.13)`
35+
36+
**Action:** Update `package.json` to `"rescript": "^12.2.0"`
37+
38+
## CHECK: Version Unknown or Unpinned
39+
40+
- `netstack/modules/poly-secret-mcp (no version pinned)`
41+
- `netstack/modules/poly-observability-mcp (no version pinned)`
42+
43+
**Action:** Pin to `"rescript": "^12.2.0"` explicitly.
44+
45+
---
46+
47+
## ReScript 13 Preparation (v13.0.0-alpha.2 available)
48+
49+
v13 is in alpha. These breaking changes are CONFIRMED — prepare now:
50+
51+
1. **`bsconfig.json` support removed** — must use `rescript.json` only
52+
2. **`rescript-legacy` command removed** — only modern build system
53+
3. **`bs-dependencies`/`bs-dev-dependencies`/`bsc-flags` config keys removed**
54+
4. **Uncurried `(. args) => ...` syntax removed** — use standard `(args) => ...`
55+
5. **`es6`/`es6-global` module format names removed** — use `esmodule`
56+
6. **`external-stdlib` config option removed**
57+
7. **`--dev`, `--create-sourcedirs`, `build -w` CLI flags removed**
58+
8. **`Int.fromString`/`Float.fromString` API changes** — no explicit radix arg
59+
9. **`js-post-build` behaviour changed** — now passes correct output paths
60+
61+
**Migration path:** Complete all v12 migration FIRST, then test against v13-alpha.

0 commit comments

Comments
 (0)