robatwilliams / es-compat

*** DEPRECATED*** Check JavaScript code compatibility with target runtime environments
MIT License
66 stars 13 forks source link

Alignment of polyfill names to real polyfill collections #98

Open robatwilliams opened 8 months ago

robatwilliams commented 8 months ago

They're currently aligned with no particular strategy, probably mostly with how detection is implemented.

e.g. 'String.prototype.trimEnd', 'String.prototype.trimLeft', 'String.prototype.trimRight', 'String.prototype.trimStart',

Those are actually distributed as a single polyfill. Would be better to just have to specify one thing rather than the 4 individually.

https://github.com/zloirock/core-js?tab=readme-ov-file#stringprototypetrimstart--stringprototypetrimend

Would be a breaking change, albeit not particularly inconvenient.

Came up in #96