-
-
Notifications
You must be signed in to change notification settings - Fork 856
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
immer 3.0 #309
immer 3.0 #309
Conversation
As I've said in #246, I'm highly against ignoring the return value by default. The current behavior is much better, and I think the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'll review this today, too. (New York timezone) Can you reword the commit messages to fit the Conventional Commits style? |
Also, I'm a little worried about the changes to the flow types, considering this comment. Maybe it would be best to leave the flow types alone, or remove them entirely? |
@aleclarson, I agree with your sentiment. The general intent of the changes I proposed are in the right direction, I think, but unless a newer version of Flow fixed a few things there were some issues with those Flow types. This is nothing that can't be tested, though. So if all the Flow tests are passing, and we should make sure they're not false positives, it should be alright. Perhaps adding some more Flow tests could help as well? If this is a change that you guys really want to get in for v3 maybe I can set aside some time to look into it this week. |
@migueloller, ah misunderstood the latest commits, thought that they addressed the open issues. Will revert this change (we can also merge it in later). I peeked in more detail at your changes, at least they are partially incorrect: |
@aleclarson sorry, I really should make that a habit! Rebasing... |
eh lol, I'll try again |
Note: build is currently not being executed due to the repo transfer. It didn't sync to travis yet.... |
That is correct. I made a mistake when writing these types to assume the issue I was trying to fix was because the return type of the recipe was I think the solution to this problem is proper use of type variance. |
.travis.yml
Outdated
@@ -18,7 +17,7 @@ script: | |||
- yarn coveralls | |||
- yarn test:flow | |||
- yarn test:dts | |||
- yarn add typescript@3.3 -D && yarn test:dts | |||
- yarn add typescript@latest -D && yarn test:dts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should test typescript@next
too (or instead), for early heads up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll revert it to 3.4, some hardcoded versions. TS is quite aggressive with their latest tag, and having random build failures is annoying. It is not the CI's responsibility to test compatible with random TS versions and gives us heads ups. The point is to make sure we didn't break anything ourselves
LGTM! 👍 I simplified the |
@aleclarson. Lol, thanks for doing the obvious thing :) |
@@ -734,10 +735,18 @@ Most important observation: | |||
|
|||
## Migration | |||
|
|||
**Immer 2.\* -> 3.0** | |||
|
|||
TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cancelled the deploy for you 👍
Lol, something isn't working as supossed to. Hopefully release works fine
on next build, otherwise, could you trigger the 3.0 release?
…On Wed, Apr 17, 2019 at 4:31 PM Alec Larson ***@***.***> wrote:
🎉 This PR is included in version 2.2.0 🎉
The release is available on:
- npm package ***@***.*** dist-tag) <https://www.npmjs.com/package/immer>
- GitHub release <https://github.com/immerjs/immer/releases/tag/v2.2.0>
Your *semantic-release
<https://github.com/semantic-release/semantic-release>* bot 📦🚀
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#309 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhCMJ1xIFhtwcAVIq_8ljum_lIe8Uks5vhzBbgaJpZM4agJ-v>
.
|
@mweststrate Did you see my review comment about the migration guide? |
@aleclarson ehh nope. I have to leave currently. Would you mind triggering a 3.0 release, and updating migration guide if needed? I didn't figure out how to trigger a major release with semantic-release yet. |
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
The |
Argh
Op wo 17 apr. 2019 17:17 schreef Alec Larson <[email protected]>:
… The BREAKING CHANGE part goes in the footer 😛
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#309 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABvGhPln-NuZYvipNf58NOjeoBjIFPabks5vhzr5gaJpZM4agJ-v>
.
|
this = draft
in recipes #308: nothis
Implement Idea: Ignore return value of producer #246, ignore return value, usereturn replace(value)
for replacementImprove minification by using property mangling?