v0.0.6-beta.3
Pre-release
Pre-release
README Changes
- [New] Added a GitHub hit counter (because that's How Idiots Track Success)
- [Enhancement] Updated script size stats now there's
Promisesupport
Bug fixes
- [Fix] Fix an issue where polyfill's were being individually called, due to missing
.join(",");on the end of filtering through thepolyfillReqarray
Script Changes
- [New] Included polyfill for
Promisedependency (see #1) - [New] Added a
lastWord in firstWord.prototype != trueand split out checks for array items containing.'s into nestedif's as we were getting false positives 😢 - [Enhancement] JSLint'ed the scripts - now we have nice and consistent formatting!
- [Enhancement] Move a couple of
var's around, so that if they're not needed (aka ifif (check.indexOf(splitChars) >= 1)is not true) don't use them/don't generate the overhead - [Enhancement] Store the polyfill.io URL as a
constso it can be reused (rather than having duplicates all over the place!)
Previous Beta
README Changes
- [Enhancement] Updated script size statistics
- [New] Add "with inline comments" size stat
- [Enhancement] Update script size statistics based on cognitive complexity improvements
Bug fixes
- [Fix] Re-add missing
} - [Fix]
dynamicPolyfill()was passing each polyfill item through to polyfill.io individually, rather than all at once. This was resulting in each item within an array (for example, 3 items needing polyfill) having it's own polyfill.io request - a waste of 2 requests for example! See #22
Script Changes
- [Enhancement] Furthermore, if nothing needed polyfilling, we were still calling out to polyfill.io for absolutely nothing... a wasted request! See #21.
- [Enhancement] Minified using Uglify: The minified output (1079 bytes, saved 69.48%)
- [Enhancement] Reduce cognitive complexity within
checking()by combining nestedif's into a singleif - [Enhancement] Minified using Uglify again: The minified output (1061 bytes, saved 69.18%)
File additions
Create a version of the script with inline comments, so that people can understand what each line is doing and why... might help with further development? See #20