Track & test the target ReScript version — output is implicitly ReScript 12 with no declared/CI-enforced compatibility range
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
調査の方向性
まず bindgen の package.json、「Golden compile (ReScript 12)」ジョブを含む CI workflow、および生成された _REPORT.md と _bindgen-summary.json アーティファクトを調査します。バージョンメタデータと Golden コンパイルがどこで生成されるかを整理し、その後、範囲を限定した互換性契約、検証マトリクス、追跡用ドキュメントを定義します。サポート対象範囲とアップグレードパスが明示され、確認済みであれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
The emitted bindings are idiomatic ReScript 12 — type props = {…} + React.component<props>, @tag/@as variants, record spreads (...HtmlAttrs.x), optional record fields (field?: t), @react.component, and the v12 stdlib surface (Nullable.t, Dict.t, JSON.t, React.element, JsxDOM.style). This target is currently implicit and untracked:
package.jsondeclares noenginesfield and nopeerDependency/peerDependenciesMetaonrescript, so nothing records which ReScript major(s) the output is known to compile on. The README says "ReScript 12 is recommended for the generated output," but that's prose, not a checked contract.- CI has a single
Golden compile (ReScript 12)job — one version, no matrix. There's no signal if the output breaks on a future ReScript, and no evidence of the floor it still works on. - The generated artifacts don't carry the target either:
_REPORT.md/.bindgen-manifest.json/_bindgen-summary.jsonrecord component buckets and dep status but not "these bindings target ReScript ≥ X".
When ReScript 13+ lands this bites: stdlib modules can be renamed or remapped (the Belt/Js → core-stdlib churn is precedent), @react.component / JSX lowering can change, record-props or @tag semantics can shift, and formatting (rescript format) output can drift — silently invalidating the "same Blend version → byte-identical output" guarantee against a newer toolchain. A consumer on a newer ReScript has no declared compatibility range to check against, and this repo (the pinned-preview validation loop for blend-rescript) would only discover breakage by regenerating and compiling by hand.
Impact
Medium — not urgent while ReScript 12 is current, but it's latent tech-debt that turns into a scramble the moment a consumer or CI moves to the next major. A declared, tested version contract is what lets an upgrade be a deliberate, reviewed step instead of a surprise.
Suggested fix (a few independently-shippable pieces)
- Declare the contract. Add an
engines/peerDependency-style statement of the supported ReScript range to bindgen'spackage.json(e.g."rescript": ">=12 <13"), and stamp the target into the generated_REPORT.mdheader +_bindgen-summary.json(arescriptTargetfield) so every output says what it was built for. - Test the range, not a point. Turn the golden-compile job into a small matrix over the supported ReScript majors (and the intended-next prerelease, allowed-to-fail) so a break on an upcoming version surfaces as a red check with a known cause, not a downstream mystery.
- Track the upgrade explicitly. A short
docs/note (or a tracking issue template) capturing the v12-specific idioms bindgen emits —React.component<props>,@react.component,@tag/@as, record spreads/optionals, the stdlib module set — so that when ReScript N+1 changes any of them, there's a checklist of emit sites to revisit rather than rediscovering them. If/when the emit surface needs to diverge per major, a--rescript-version(or auto-detected) switch on the emitter is the natural home; not needed until a real divergence exists, but the tracking note is what tells us when that day arrives.
Filing as a tracking issue for now — no code change requested yet; the goal is that "which ReScript version does the output target, and how do we know when to upgrade" stops being implicit.
- 主要言語
- ReScript
- スター
- 11
- フォーク
- 0
- 平均マージ
- 7時間 27分
- マージ済み PR(30日)
- 6
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
juspay/rescript-bindgen のほかの issue
-
--subpaths: a shadowed subpath export is dropped. Bind it under a subpath-qualified name (blend V1 deprecated paths)対応中かも @jagguji が 2 日前に担当しました。 オープン
難易度 3/5 半日 初心者へのやさしさ 64/100
juspay/rescript-bindgen#248 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 22/100
juspay/rescript-bindgen#241 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
juspay/rescript-bindgen#164 · コメント 2 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
juspay/rescript-bindgen#162 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
juspay/rescript-bindgen#160 ·
juspay/rescript-bindgen の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NucleusFramework/Nucleus#1020 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 2 日以内に返信
-
[Bug]: pip install -U cudaq-qec fails with a conflict that names cudaq-qec itself対応中かも @fedonman が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
[bug] --affected remote with --base and --head finds no changes when the head is behind the baseオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
ardia-browser/ardia#6391 ·
メンテナーはふだん 1 日以内に返信