Track ReScript compiler version compatibility — keep emitted syntax + compile-check pin moving with ReScript releases
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- github-actions
- Ambito
- build-system, ci-cd, documentation, testing
Direzione di ricerca
Inizia da test/sandbox/package.json e .github/workflows/ci.yml per comprendere il pin di compilazione di ReScript 12 e il job golden-compile, quindi esamina src/emit.mjs e le sezioni referenziate di README.md e docs/TYPE_MAPPING.md. Il lavoro è completato quando il repository dispone di un contratto concordato sulla versione target e di una checklist di release, con modifiche alla documentazione e a CI che coprano la strategia di compatibilità selezionata.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
The generator emits ReScript that's valid for a specific compiler version — ReScript 12 today. As ReScript releases 13, 14, … two things can drift and we have no explicit process to catch it:
- Emitted syntax may need to change. We rely on version-sensitive features: untagged/tagged variants (
@unboxed,@tag(…)+@as(…), ~24 + ~2 uses inemit.mjs),React.component<props>(relies on JSX v4 lowering, ~6 uses),React.componentWithProps(the #155 wrapper pattern),@asfield/variant naming (~13),JsxDOM.*, first-classbigint. A future ReScript could deprecate/rename any of these, and generated bindings would stop compiling for consumers on the new version. - Our compile gate is pinned and could silently lag. The golden compile check (
test/sandbox) pinsrescript ^12.0.0+@rescript/react ^0.13.0, and CI names the job "Golden compile (ReScript 12)". Nothing verifies the output still compiles on a newer ReScript, so a break would only surface downstream (as it did for the blend beta line — caught only by consumer validation).
There's already mild drift in the wild: blend-rescript builds against rescript ^12.2.0 / @rescript/react ^0.15.0, while our sandbox pins ^12.0.0 / ^0.13.0.
What we should track / decide
- A stated "targets ReScript N" contract (README already says "ReScript 12" in ~5 places — make it the single source of truth, e.g. a
RESCRIPT_TARGETconstant or a README badge). - An "on new ReScript release" checklist, e.g.:
- bump
test/sandbox(rescript,@rescript/react) to the new version, re-runnpm run test:compile— all goldens must still compile. - update the CI job name + any README "ReScript 12" references.
- note any emitted-syntax change in
docs/TYPE_MAPPING.md(like the@tag/@unboxed/bigintrows already do). - regenerate
blend-rescriptagainst it as the downstream smoke.
- bump
- Consider a compile MATRIX — run the golden-compile job against both the current target and the next ReScript (e.g. 12 + 13-rc) so a break is caught in our CI, not a consumer's.
- A compatibility note — which
@juspay/rescript-bindgenversion emits for which ReScript range (a small table in README/CHANGELOG), so consumers know what to pair.
Concrete anchors
test/sandbox/package.json— the compile-check ReScript pin (^12.0.0,@rescript/react ^0.13.0)..github/workflows/ci.yml— the "Golden compile (ReScript 12)" job.src/emit.mjs— the version-sensitive syntax the emitter produces.README.md(lines ~8/40/115/185/193) +docs/TYPE_MAPPING.md— where "ReScript 12" is stated.
Why now
Filed as a tracking issue off the v1.3.0 release — no change needed today (ReScript 12 is current and stable), but we want a deliberate process so a future ReScript bump is a checklist we run, not a surprise a consumer reports.
- Lingua principale
- ReScript
- Stelle
- 11
- Fork
- 0
- Merge medio
- 7h 27m
- PR unite (30g)
- 6
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di juspay/rescript-bindgen
-
--subpaths: a shadowed subpath export is dropped. Bind it under a subpath-qualified name (blend V1 deprecated paths)Forse già presa @jagguji l’ha presa 2 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 64/100
juspay/rescript-bindgen#248 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 22/100
juspay/rescript-bindgen#241 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
juspay/rescript-bindgen#164 · 2 commenti ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
juspay/rescript-bindgen#162 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
juspay/rescript-bindgen#159 ·
Tutte le issue di juspay/rescript-bindgen
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
NucleusFramework/Nucleus#1020 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfForse già presa @fedonman l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
[bug] --affected remote with --base and --head finds no changes when the head is behind the baseAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
ardia-browser/ardia#6391 ·
I maintainer di solito rispondono entro 1 giorno