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

.equal now checks for isImmutable instead of isIterable #213

Merged
merged 6 commits into from
Apr 21, 2019
Merged

.equal now checks for isImmutable instead of isIterable #213

merged 6 commits into from
Apr 21, 2019

Conversation

gugu
Copy link
Contributor

@gugu gugu commented Mar 31, 2019

Copies isImmutable function from #83, but no conflicts and check for isImmutable only for .equal. Other places have valid checks for isIterable (.empty or .size is not available in Record)

@astorije
Copy link
Owner

astorije commented Apr 2, 2019

Great stuff, thanks @gugu!
Could you add a test case to ensure that the new branch is covered? Cf. https://coveralls.io/builds/22516257/source?filename=chai-immutable.js#L20

@astorije astorije added this to the next milestone Apr 2, 2019
@gugu
Copy link
Contributor Author

gugu commented Apr 3, 2019

@astorije I updated immutable dependency version. Is it okay? It will test both branches

@astorije
Copy link
Owner

astorije commented Apr 7, 2019

Hey @gugu, thanks for following up!
I'm a little hesitant to depend on a RC version, especially since CI will now run against v4-RC only while the peerDependency version accepts v3.x.x.
What about keeping the current package.json but modifying CI setup to run against both v3.x and v4.x (starting with RC) versions?

@astorije
Copy link
Owner

Hey @gugu, do you have any plans to finish this? I'd love to merge your work :)

@gugu
Copy link
Contributor Author

gugu commented Apr 14, 2019

@astorije done, I'll check build results tomorrow

.travis.yml Outdated Show resolved Hide resolved
.travis.yml Outdated
- 'if [ "$IMMUTABLE_VERSION" ]; then npm install immutable@$IMMUTABLE_VERSION; fi'
env:
- IMMUTABLE_VERSION=3
- IMMUTABLE_VERSION=4.0.0-rc.12
Copy link
Owner

Choose a reason for hiding this comment

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

Can this accept a broader version, such as IMMUTABLE_VERSION=4 or something?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

only after release, this version does not follow semver :(

Copy link
Owner

Choose a reason for hiding this comment

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

Yeah I realized that, that's why I went with ^4.0.0-rc. When 4 gets stable, I'll revise that.

.travis.yml Outdated Show resolved Hide resolved
@astorije
Copy link
Owner

Very cool, thanks for keeping up with me, @gugu, I think we're getting there! :)

@gugu
Copy link
Contributor Author

gugu commented Apr 15, 2019

@astorije I fixed issues, but I don't know why does appveyor fails

Copy link
Owner

@astorije astorije left a comment

Choose a reason for hiding this comment

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

Very cool, thanks!

I added some changes in an extra commit. Before I merge, are you okay with those?

@gugu
Copy link
Contributor Author

gugu commented Apr 21, 2019

Yes, that's okay

@astorije
Copy link
Owner

Thank you! 🙏

@astorije astorije merged commit 9404913 into astorije:master Apr 21, 2019
@astorije
Copy link
Owner

This has now be released as part of v2.1.0. Thanks again!

astorije added a commit that referenced this pull request Jul 15, 2019
.equal now checks for isImmutable instead of isIterable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants