Optional example: portable inverse-patch regression fixtures

オープン
#1,347 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
testing

調査の方向性

The proposal links an external adapter and replay example at interaction-check/adapters/javascript/README.md and describes 12 passing steps for Immer 11.2.9. Read that example and the native Immer tests to understand the scenarios and how native tests serve as the reference. The proposal asks for feedback on sharing small reproducers, so first determine whether the project wants this example; no project files or acceptance criteria are named.

索引モデルが issue の本文から書いたものです。

説明

Proposal

I built an external adapter and replay example for small, shareable regression traces. Three scenarios exercise immer 11.2.9 produceWithPatches/applyPatches: array removal/inverse replay, Unicode values, no-op identity and structural sharing. All 12 steps pass.

Motivation

A fixed sequence and expected state can make a patch bug report easier to reproduce without writing a new harness. Native tests remain the reference.

Can this be solved in user-land code?

Yes. The adapter retains one patch pair; it is not an undo-stack or patch-rebasing implementation. I maintain the experimental interaction-check runner. The example uses pinned stable packages, stays outside the project and adds no runtime dependency. Feedback on whether this helps share small reproducers is welcome. This is not a request for a new Immer API.

主要言語
JavaScript
スター
29k
フォーク
905
平均マージ
3日 16時間
マージ済み PR(30日)
22

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

immerjs/immer のほかの issue

immerjs/immer の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。