Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade immer to v9 #1135

Merged
merged 2 commits into from
Aug 30, 2022
Merged

chore: Upgrade immer to v9 #1135

merged 2 commits into from
Aug 30, 2022

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Aug 30, 2022

Had a few issues with types and tests when I tried to tackle this in previous PR - #1047

All seems good now though 👌

@DafyddLlyr DafyddLlyr marked this pull request as draft August 30, 2022 15:40
Comment on lines 18 to +20
expect(ops).toEqual([
{ od: ["a", "b"], oi: ["b", "a"], p: ["_root", "edges"] },
{ p: ["_root", "edges", 0], ld: "a", li: "b" },
{ p: ["_root", "edges", 1], ld: "b", li: "a" },
Copy link
Contributor Author

@DafyddLlyr DafyddLlyr Aug 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A little tricky to get to the bottom of this one initially. The test fails once v8.0.2 is installed, changelog here - https://github.com/immerjs/immer/releases/tag/v8.0.2

I believe this is the relevant change - immerjs/immer#648

Essentially, the move() graph function now generates two "list" (li & ld) operations as opposed to a two "object" operations (od & oi).

@DafyddLlyr
Copy link
Contributor Author

Update Immer to v9

@DafyddLlyr DafyddLlyr marked this pull request as ready for review August 30, 2022 16:26
@DafyddLlyr DafyddLlyr requested a review from a team August 30, 2022 16:26
@github-actions
Copy link

github-actions bot commented Aug 30, 2022

Removed vultr server and associated DNS entries

@DafyddLlyr DafyddLlyr merged commit d91f83a into main Aug 30, 2022
@DafyddLlyr DafyddLlyr deleted the dp/upgrade-immer branch August 30, 2022 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants