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

Update to mobx 6.13.6 #7488

Closed
wants to merge 1 commit into from
Closed

Update to mobx 6.13.6 #7488

wants to merge 1 commit into from

Conversation

pjonsson
Copy link
Contributor

@pjonsson pjonsson commented Feb 22, 2025

What this PR does

Depends on: #7485

This was restricted in #7315
because mobx 6.13 started using
Iterator helper types introduced
in TypeScript 5.6.

Test me

I believe this is tested by CI.

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

@pjonsson pjonsson force-pushed the update-mobx branch 3 times, most recently from d2b1b01 to db94ccd Compare February 27, 2025 13:14
This was restricted in TerriaJS#7315
because mobx 6.13 started using
Iterator helper types introduced
in TypeScript 5.6.
@@ -1,6 +1,9 @@
{
"compilerOptions": {
"target": "es2019",
// Use ES2024.collection, otherwise mobx 6.13 fails with:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The mobx tickets suggest to set skipLibCheck to true, but I'm not convinced that less static checking is what we want. The tickets for this issue are from mid-2024, so as second option they suggest setting lib to ESNext since that was the only place for ReadonlySetLike at the time.

Since ReadonlySetLike is also present in ES2024.collection now, I opted for that, and kept ES2019 for the rest. For some reason StoryBody.tsx failed to compile then because of a missing iterator in some HTMLCollection, so added DOM.Iterable to fix that.

@pjonsson
Copy link
Contributor Author

This breaks yarn build-for-node for some reason, so closing this.

@pjonsson pjonsson closed this Mar 18, 2025
@pjonsson pjonsson deleted the update-mobx branch March 18, 2025 07:08
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.

1 participant