adopted-ember-addons / adopted-ember-addons/validated-changeset

Add a more ergonomic structure to represent the changes structure

オープン
#144 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
38
フォーク
27
PR マージ指標
30日以内にマージされた PR はありません

説明

Reference: https://runkit.com/nullvoxpopuli/how-to-use-changeset-data-and-changes

instead of .changes being:
```
[ {key: "foo", value: 1}, Object {key: "bar", value: "there"}, …]
```
it should be something easier to understand in isolation, like:
```js
{
"foo": {
original: 0,
current: 1,
},
"property.path.0.deep": {
original: 'hello',
current: 'there'
}
}
```
now, this can easily be computed from the existing .changes, but I think because it is a common desire to build this structure, it should be provided out of the box. maybe via:
```js
changeset.changedValues;
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

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

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