-
Notifications
You must be signed in to change notification settings - Fork 141
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
Remove ImmutableJS dependency #214
base: master
Are you sure you want to change the base?
Remove ImmutableJS dependency #214
Conversation
+1 |
What would be the ideal way to use this if you do not want to opt in to a bundled ImmutableJS Nuclear build. It seems improper to break backwards compatibility if you are already relying on ImmutableJS being bundled. @raulmatei would you be okay with having to require a sepcific src file or dist file that isn't the package.json main entrypoint? |
Starting with npm3 this has actually become a breaking change:
As the PR shows, it doesn't require any changes to the code. That however does mean that if you want to avoid a breaking change, you cannot easily solve it by providing a different entry point. One reason why I think it is a good move is that it would make it easier to include NuclearJS in projects that already depend on ImmutableJS without having to adopt the version that comes with NuclearJS. This for example would also remove the push for NuclearJS to release a new version every time ImmutableJS releases a new version. |
What about a major version bump? |
@jordangarcia - for time being, having a second build without ImmutableJS would be a way to solve the backwards compatibility issue: @balloob - yes, I think is a breaking change too and it would probably mean a major version bump as @iansinnott said. |
I'll work on getting a major version out this week. I just want to make sure it's natural for people to include ImmutableJS with going through too much trouble. |
As discussed in #213 I was able to keep the current codebase and only remove Immutable dependency. Nothing else is touched, so everything should work as expected. Distribution files are not updated, so if you want to test please make sure you recompile them with webpack. Do not forget to install ImmutableJS as a dependecy in your project's
package.json
.