Skip to content

Releases: paulmillr/es6-shim

v0.35.6

12 Aug 04:06
0.35.6
d4be3e6
Compare
Choose a tag to compare

Fixes

  • Math.hypot: fix a bug in node v12.11 - v12.15
  • internal ToString operation should throw on Symbols

Robustness

  • call-bind Array.prototype.join

Refactors

  • String.raw: match latest spec
  • address unused function args

Misc

  • [readme] updating standalone shim links
  • [Meta] Make LICENSE parseable by GitHub

v0.35.5

12 Aug 04:05
d5e8698
Compare
Choose a tag to compare

Fixes

  • es6-sham: Function.prototype.name: don’t poison the getter when the receiver is Function.prototype (#454)

v0.35.4

12 Aug 04:05
271142c
Compare
Choose a tag to compare

Fixes

  • protect against evil build processes by ensuring these feature tests don‘t look like no-ops that are safe to remove
  • broken hasULPDistance → working withinULPDistance helper
  • acosh: fix precision (#338)
  • Math.{asinh,atanh,cosh,sinh} precision (from #338)
  • Google Translate adds a broken Set to the global scope (#438)
  • Distinguish Set and Map iterators (#387)

Docs

  • Tweaking documentation specifying inclusion order (#435)

v0.35.3

12 Aug 04:04
1298191
Compare
Choose a tag to compare

Fixes

  • avoid needlessly shimming Array#{find, findIndex} (#433)

Dev Deps

  • update eslint, @ljharb/eslint-config, grunt-saucelabs

Tests

  • up to node v7.4, v4.7; improve test matrix

v0.35.2

12 Aug 04:04
Compare
Choose a tag to compare

Fix

  • ensure document.all is not treated as a non-object-coercible (#428)

Performance

  • Use original map for data backing when possible (#429, #422)

Dev Deps

  • update es5-shim, eslint, @ljharb/eslint-config, jscs, jshint, mocha, promises-plus-tests, uglify-js

Tests

  • up to node v7.2, v5.12, v4.6; improve test matrix
  • avoid function name inference in node 7+
  • add Firefox Nightly error messages to fix false failure

v0.35.1

12 May 08:22
3e46993
Compare
Choose a tag to compare

Fixes (shim)

  • Functions are objects (#418)
  • use createDataPropertyOrThrow in Array.from, rather than [[Put]] (#415)

Refactors

  • Use iteratorResult internally for iterator result objects
  • Simplify logic for Math.tanh (#412)

Robustness

  • cache Math constants
  • cache Math.exp
  • don’t rely on a Math lookup inside Math.asinh
  • use cached Number.isNaN
  • cache Math.sign

Dev Deps

  • update es5-shim, eslint, @ljharb/eslint-config, jscs, uglify-js, grunt-contrib-connect, grunt-contrib-watch, evalmd, jshint

Tests

  • up to node v6.1, v5.10, v4.4
  • npm run --silent, use “pretest” for linting
  • RegExp#toString: Chrome Canary 51 produces /undefined/

Docs

  • update ES6 draft comment URLs to point to the published spec

v0.35.0

01 Mar 05:40
Compare
Choose a tag to compare

Breaking Changes

  • remove Reflect.enumerate (#405)

New Stuff (shim)

  • Add Array#indexOf from post-ES6 errata
  • Ensure RegExp#toString is compliant

New Stuff (sham)

  • Add Function#toString to es6-sham

Fixes

  • ensure that a non-object globals.Reflect doesn’t break the shim (#392)
  • In ES3 browsers (like Safari 4) Reflect.getPrototypeOf is undefined
  • Object.keys: handle regexes in ES3 browsers (#287)

Performance

  • Early exit from tanh for values outside of +-20 at limits of JS precision (#411)

Tests

  • Function#name on new Functions is empty string in v8
  • Function#name is non-configurable pre-ES6
  • Test up to node v5.7, v4.3

v0.34.4

09 Feb 21:57
Compare
Choose a tag to compare

Fixes (shim)

  • Fix 'Uncaught (in promise) TypeError' in Chrome 48 (#408, #407)
  • handle the obscure case where startsWith throws on the second parameter (#399)

Tests

  • silence a promise rejection error in Chrome

v0.34.3

09 Feb 06:31
Compare
Choose a tag to compare

Fixes (shim)

  • Suppress “uncaught rejection” warnings in Chrome 50 console (#403)
  • ensure ES3 Number constants don’t get lost in ES3 browsers (#402)

Dev Deps

  • update chai, es5-shim, jscs, mocha

Tests

  • up to node v5.5

v0.34.2

22 Jan 23:16
Compare
Choose a tag to compare

Fixes

  • JSON.stringify should ignore a replacer arg unless it’s an array or function.
  • Array#copyWithin: check for inherited properties as well
  • Array#copyWithin: should delete the target key if the source key is not present

Performance

  • Optimize Map/Set fast key path (#397)

Tests

  • fix Reflect.enumerate tests to not call next too many times

Dev Deps

  • update jscs, jshint

Docs

  • update license year to 2016 (#400)