Releases: paulmillr/es6-shim
Releases · paulmillr/es6-shim
v0.35.6
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
v0.35.4
Fixes
- protect against evil build processes by ensuring these feature tests don‘t look like no-ops that are safe to remove
- broken
hasULPDistance
→ workingwithinULPDistance
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
v0.35.2
Fix
- ensure
document.all
is not treated as a non-object-coercible (#428)
Performance
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
Fixes (shim)
- Functions are objects (#418)
- use
createDataPropertyOrThrow
inArray.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 insideMath.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 lintingRegExp#toString
: Chrome Canary 51 produces/undefined/
Docs
- update ES6 draft comment URLs to point to the published spec
v0.35.0
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
toes6-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
onnew Function
s is empty string in v8Function#name
is non-configurable pre-ES6- Test up to
node
v5.7
,v4.3
v0.34.4
v0.34.3
v0.34.2
Fixes
JSON.stringify
should ignore a replacer arg unless it’s an array or function.Array#copyWithin
: check for inherited properties as wellArray#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 callnext
too many times
Dev Deps
- update
jscs
,jshint
Docs
- update license year to 2016 (#400)