Track ReScript compiler version compatibility — keep emitted syntax + compile-check pin moving with ReScript releases
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- Calme
- Stack technique
- github-actions
- Domaine
- build-system, ci-cd, documentation, testing
Piste de recherche
Commencez par test/sandbox/package.json et .github/workflows/ci.yml afin de comprendre le pin de compilation ReScript 12 et le job golden-compile, puis examinez src/emit.mjs ainsi que les sections référencées de README.md et docs/TYPE_MAPPING.md. Le travail est considéré comme terminé lorsque le dépôt dispose d’un contrat convenu sur la version cible et d’une checklist de release, avec des modifications de la documentation et de CI couvrant la stratégie de compatibilité sélectionnée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- ReScript
- Étoiles
- 11
- Forks
- 0
- Merge moyen
- 7 h 27 min
- PR mergées (30 j)
- 6
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de juspay/rescript-bindgen
-
--subpaths: a shadowed subpath export is dropped. Bind it under a subpath-qualified name (blend V1 deprecated paths)Peut-être pris @jagguji l’a pris il y a 2 jours. Ouverte
Difficulté 3/5 Une demi-journée Accessibilité débutants 64/100
juspay/rescript-bindgen#248 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 22/100
juspay/rescript-bindgen#241 ·
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
juspay/rescript-bindgen#164 · 2 commentaires ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
juspay/rescript-bindgen#162 ·
-
enhancement
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
juspay/rescript-bindgen#159 ·
Toutes les issues de juspay/rescript-bindgen
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
NucleusFramework/Nucleus#1020 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 2 jours
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itselfPeut-être pris @fedonman l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
[bug] --affected remote with --base and --head finds no changes when the head is behind the baseOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 86/100
ardia-browser/ardia#6391 ·
Les mainteneurs répondent en général sous 1 jour