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
What browsers does sprintf.js targets? #137
Comments
I haven't had access to any IE for a couple of years now so I don't really know what [still] works and what doesn't. Afaik IE > Edge so dropping it entirely is not really an option. Do note however the cache is based on a pure object so that means IE >= 11 I think. So then what optimizations are you thinking about? i.e. that would still include IE 11 |
According to our metrics, dropping IE definitely not an option so far, unfortunately. |
For instance, all modern browsers (IE is not modern) support @ArmorDarks, I do not suggest deleting all of existing versions from Bower or NPM, you can use older version that supports IE as long as you need to. I just don't think that those who work with modern browsers should pull polyfills for something as simple as Don't you agree it is always easier to add stuff you need rather than remove something you don't need? |
Indeed one can use a polyfill for I looked |
@nazar-pc if you have suggestions likes this one, please open an issue for each one and mark them as |
I'll just look around for improvements and will create a PR with the list of changes, so we can discuss them concretely there. |
Just don't forget to document all things, that should be polyfilled for IE. I imagine that digging into internals to find out which ones should will be quite not enjoyable ride... |
Sure |
@alexei FYI, version 1.1.1's use of |
Node 0.12 is EOL for almost half a year now, you should really consider upgrade for security and performance reasons. |
@nazar-pc We're actually in the process of upgrading our apps, including that one. However, it's still unpleasant to have a patch release include a change that broke the next build of our application. |
Well, I think it would be useful to add a compatibility table for supported browsers and node.js versions. If that is dynamic like
*Indicates the current version of the browser |
Well, @idubinskiy is right that such breaking change shouldn't be released as patch.... |
@idubinskiy if it broke on your live server, well good for you! @ArmorDarks I thought semver refers to public API, not implementation details 😕 Re compatibility table: what do you guys use to test JS in various browsers? I mean how would one generate a compatibility table automatically? |
@alexei It isn't just implementation detail. It's breaking change, which broke lib in old Node and IE9, thus compromised API for those consumers. I don't care much, because I nor use Node 0.12, nor target IE9, but I'm quite sure on some people it came unexpectedly, especially considering that it was bumped with patch, thus passed | don't want to sound rude. Just want to eliminate misconception about semver. Well, now there is not much can be done about it. You still can drop old version or revert changes and make proper releases chain, but I think most people already done something with it anyway. |
This is a somewhat relevant discussion on the SemVer repo: semver/semver#311 It's certainly not a settled matter. Just wanted to point that perhaps more care should have been taken. As far as I can tell, the README wasn't updated even with the known incompatibility for older browsers requiring a polyfill. |
I updated the readme file and I apologize for not doing so earlier. |
Also I opened an issue to remind myself to set up some automated browsers tests. Any pointer would be appreciated. |
What I'm actually curious about is whether you're fine with dropping IE entirely and only support last 2 versions of any evergreen browser in next major release?
If this is the case it would be possible to reduce and simplify code a bit.
The text was updated successfully, but these errors were encountered: