Skip to content

v0.0.6-beta.3

Pre-release
Pre-release

Choose a tag to compare

@willstocks willstocks released this 19 Feb 16:22
· 19 commits to develop since this release
e5de255

README Changes

  • [New] Added a GitHub hit counter (because that's How Idiots Track Success)
  • [Enhancement] Updated script size stats now there's Promise support

Bug fixes

  • [Fix] Fix an issue where polyfill's were being individually called, due to missing .join(","); on the end of filtering through the polyfillReq array

Script Changes

  • [New] Included polyfill for Promise dependency (see #1)
  • [New] Added a lastWord in firstWord.prototype != true and split out checks for array items containing .'s into nested if'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 if if (check.indexOf(splitChars) >= 1) is not true) don't use them/don't generate the overhead
  • [Enhancement] Store the polyfill.io URL as a const so 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 nested if's into a single if
  • [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