React-dates: Browser support for Safari?

Created on 9 May 2017  路  9Comments  路  Source: airbnb/react-dates

What browsers does this module support?

In safari 10.0 Object.values() and Object.entries() are not available ( as added by #450 in v11 ). So the component is erroring out.

We could polyfill or version down, but also listing the browser requirements would be nice.

Thank you!

Most helpful comment

I'll give it a day or two before bumping a release; despite the fact that we've not properly documented the dependency, this is nowhere near the first version of react-dates that required a full ES shim to work.

In the meantime, anyone affected can (and should already be) shimming with https://npmjs.com/airbnb-js-shims or the equivalent.

All 9 comments

I was trying to find what the overall browser support is?

Sorry if it's documented somewhere but I couldn't find it.

@dancingshell we assume that you're using https://npmjs.com/airbnb-js-shims or the equivalent; but we can still fix this if I can locate something like https://www.npmjs.com/package/babel-plugin-transform-object-assign for Object.values and Object.entries.

In the meantime, I've added 768578ec06480c7b07003bae59aada661223ae56 which handles Object.values (Object.entries seems to have been removed as of v11.0.1)

@ljharb were you going to patch bump and release this to NPM? or just wait for it to go out in your next planned release?

I'll give it a day or two before bumping a release; despite the fact that we've not properly documented the dependency, this is nowhere near the first version of react-dates that required a full ES shim to work.

In the meantime, anyone affected can (and should already be) shimming with https://npmjs.com/airbnb-js-shims or the equivalent.

@ljharb where should the import 'airbnb-js-shims' be?

As the first line in the first entry point to every page.

Should we add this implicit dependency to the README?

Yes, probably.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

arthurvi picture arthurvi  路  3Comments

Jesus-Gonzalez picture Jesus-Gonzalez  路  3Comments

krissalvador27 picture krissalvador27  路  3Comments

maciej-w picture maciej-w  路  3Comments

AsasinCree picture AsasinCree  路  3Comments