@a-2-c-2-anpm/ducimus-vero-explicabo
v1.0.0
Published
<!-- prettier-ignore-start --> [](https://badge.fury.io/js/@a-2-c-2-anpm/ducimus-vero-explicabo) [, or CSS (see doiuse).
ECMAScript version coverage
1 Excluding features not statically detectable: revised Function.prototype.toString, stable Array.prototype.sort, well-formed JSON.stringify.
2 Excluding Symbol.prototype.description; as a debug feature, it's not worth the false positives that arise due to its name and not being a method.
3 ES2015 (ES6) is out of scope; it's been supported by evergreen browsers for many years. Assisting you to continue supporting IE11 is not a goal of this tool.
4 ES5 is out of scope; it's over 10 years old and supported even in IE10.
Browser compatibility data
We use a pinned version of @mdn/browser-compat-data, because their SemVer policy allows for breaking changes to the data structure even in minor and patch releases. If you need to use more up to date data, use the overrides facility of package.json to specify a later version - but be aware that it might break.
Limitations
Because JavaScript is untyped, detection of some features' usage (namely prototype methods) through static analysis requires some assumptions to be made. This shouldn't be a problem as long as you avoid creating your own methods having the same names, or write code in an unusual way to deliberately evade detection.
Support can only be checked for the browsers and runtimes covered by the MDN compatibility dataset.
The MDN compatibility dataset has very good feature coverage of the top ~6 desktop and mobile browsers, and Node.js (much more than kangax/compat-table). In case of missing data for a feature (support unknown, or unknown in which version support was added), we currently assume support.
Contributing
Contributions and feedback welcome. Please see the GitHub issues or create one, as appropriate.
Related
- eslint-plugin-compat - for browser APIs
- doiuse - for CSS
- eslint-plugin-es-x (formerly eslint-plugin-es)*
- @mdn/browser-compat-data*
* Thanks to these projects in particular (and many others) for making this project possible.
