-
Notifications
You must be signed in to change notification settings - Fork 60
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
Fixes #76. IE 11 now runs library out of the box #77
Conversation
I am kind of mixed about that. Going with this idea, libraries will never be able to use new standards and we will write only legacy code, which is sad. Also the question is up to which browser should we support? You want IE11, but what if someone else wanted IE9? I think that it's up to the final user to decide which target (s)he wants to supports and include polyfills or use Babel to compile code that works on it. Is there any issue with you putting that code as a polyfill inside your project? |
@pauldijou I totally agree with you on overall state of supporting older browsers, however, in this particular case i want to point out 2 things:
PS: to summarize my point, i think it's crucial that a library should be able to complete its main goal without polyfills for relevant versions of browsers, which is IE 11, being part of Windows 10. |
Sorry but I cannot agree with that. Even if IE11 is bundle with Windows 10, it is not the default browser. As far as I understand it, Microsoft has no plan to release a new major version of Windows any time soon but rather update the current one. So, going by your comment, libs would be stuck with IE11, which is years old, outdated and no longer updated, for just as much time. It has reached end of life as far as I am concerned. That said, I agree that the lib should work on IE11 and it can if you include the needed polyfill. The Copy/pasting the one from MDN should do the trick in 5 lines of code. |
Maybe add a hint to the README so that users won't be confused when they encounter this issue? |
Sure I can do that. But is it ok for your project? Would feel a bit bad if that was the only reason preventing you from using it. |
Well, it's clear that we have different opinions on using polyfills and who's responsible for library compatibility - author or developer that uses the library, and that is perfectly fine. It's just nice when things work out of the box, you know. Your library has proven itself very useful and it was a bit of a bummer when I found this issue. I am still planning on using redux-act, just need to find a clean way to inject a polyfill that could've been avoided :-) |
Done in 3ea7b0e |
o/ Just a heads-up from long-time Release We did not expect this to happen given that we had a similar discussion a while back in #48 One could argue that the following statement from the README is no longer true: We would have prefered not to, but we now polyfill Of course, we also should have checked the changes before updating to Thanks again for everything. bisous |
First of all, sorry about that. But, to be honest, this makes me think about removing babel altogether actually. Final users, meaning devs using libs, should compile their full code, including Even if you did check the diff, what if it's a dependency of one of your dependency which introduce such problem? How deep are you checking? Don't trust 3rd party code to compile to the same prod env as the one you are targeting. I feel like having babel in this lib make people think "Oh, it's compiling to something which is probably safe enough for my use-case". And that's wrong unfortunately. If you are not applying Babel to your I will probably remove that line from the README and the compiled file. As far as I am concerned, this does not encourage best-practices. The goal of this file was to be included into online editors like JSBin, see #23, not as source of truth for production build. |
TLDR: not to worry, we (users of While I'm not strictly opposed to having our whole Thank you for your suggestion, though we're not going down that road. All that said, I understand your point of view and I cannot object (as already discussed a while back in #48). I believe you should keep both the compiled file and the mention in the README but give your users a piece of warning about production use, browser compatibility, etc. Thanks again for your time, bisous. |
This PR introduces a small rework of a reduce function in createReducers.js that was using String.startsWith method that is not supported in IE 11, now it works fine out of the box.