Skip to content

Releases: paulmillr/es6-shim

v0.33.5

28 Sep 19:35
Compare
Choose a tag to compare

IE 8 fixes, because yay old browsers

  • IE 6-8 have wacky scoping issues with named function expressions.
  • this broke NumberShim
  • Apparently in IE 8, RegExp#test is an own property of regexes, not a prototype method
    • this broke NumberShim
  • Make sure to treat es5-sham's Object.defineProperty as unsupported, in IE 8

v0.33.4

28 Sep 05:44
Compare
Choose a tag to compare

Fixes

  • Add test, and fix, for JSON.stringify(Object(Symbol())) throwing on Chrome 45
  • Wrap JSON.stringify when Symbol exists and it fails to serialize them correctly
  • fix Reflect.defineProperty on edge v0.12

Robustness

  • Cache Array.isArray internally

Refactoring

  • Use internal overrideNative helper for String.prototype HTML methods
  • Update is-arguments implementation; don't call down legacy code path in modern engines

Tests

  • Add evalmd to verify that example code blocks are valid
  • Adding a test for Safari 7.1 and later (runtime check added in 8a8ddd3)
  • Add additional JSON.stringify test for Symbol and object Symbol values
  • up to io.js v3.3, node v4.1

Dev Deps

  • update es5-shim, mocha, chai

v0.33.3

31 Aug 05:53
Compare
Choose a tag to compare

Fix

  • Handle Firefox Nightly's broken construct method

Tests

  • Add JSON.stringify tests for handling Symbols

v0.33.2

26 Aug 22:10
Compare
Choose a tag to compare

Fixes

  • Make sure that minified code preserves function names.
  • Skip the Promise shim when setTimeout is not available (#301)

Documentation

  • Add note about setPrototypeOf on null objects

v0.33.1

20 Aug 23:56
Compare
Choose a tag to compare

New

  • Add support for binary and octal literals in strings to the Number constructor (#358)

Docs

  • Update spec link to final spec

Fixes

  • Reflect.enumerate: does not necessarily wait until the first next() to determine keys.

Refactors

  • split up some tests; name some functions; remove unnecessary code
  • make ObjectIterator properties non-enumerable
  • Refactor RegExp wrapping code so most of it can be reused.

Tests

  • Test up to io.js v3.1

Dev Dependencies

  • update grunt-contrib-connect, jscs

v0.33.0

20 Aug 23:52
Compare
Choose a tag to compare

Breaking Change

  • Avoid CSP errors in Chrome apps by using global var detection (#301)

Performance

  • Rearranging some of the Map/Set runtime shim clobberings to be more efficient.

Refactor

  • Implement Array.of directly, rather than in terms of Array.from

Dev Deps

  • Update chai, es5-shim, promises-aplus-tests, uglify-js

Tests

  • Add test for Object.getPrototypeOf accepting primitives.
  • Bail out of individual Reflect tests when the methods don’t exist
  • Test on latest io.js

v0.32.3

21 Jun 17:36
Compare
Choose a tag to compare

Fixes

  • Override or wrap native Reflect methods in Microsoft Edge v0.11 as required.
  • Edge v0.11: Array.from([], undefined) should not throw
  • Fix a bug in Array.from handles iterables runtime clobbering, which would always replace the native function
  • Ensure that Set#has has the correct name in Edge v0.11

Tests

  • Add Map/Set error messages for Edge v0.11
  • Fix Math.fround test value for Edge v0.11
  • Bail out of Map/Set test blocks if they don't exist

Documentation

  • Update ES5 subclassing instructions in the README.

Dev Dependencies

  • Update es5-shim

v0.32.2

21 Jun 17:35
Compare
Choose a tag to compare

Fixes

  • Object.assign with no sources should coerce to an object (#348)
  • String#includes should throw when given a RegExp (#349)
  • RegExp() should not throw (#350)
  • Create Value.defineByDescriptor, fix internal create when Object.create is unavailable. (#352)

Spec Compliance

  • Update Promise.reject to match official ECMA-262 spec.

Dev Dependencies

  • Update es5-shim

v0.32.1

21 Jun 17:34
Compare
Choose a tag to compare

Fixes

  • Make sure that all Map/Set shim forms properly add an iterable to the collection instance.

Tests

  • Make sure none of the Array ToLength tests throw any error (#347)

v0.32.0

21 Jun 17:33
Compare
Choose a tag to compare

Spec Compliance

  • Update Promises to match finalized ES6 spec (#345, #344, #239)

Fixes

  • Ensure Map, Set, and Promise shims all throw when used without "new".

Tests

  • Fix the pending exceptions test for Safari 5.1

Refactoring

  • Since the String HTML shims will be iterated anyways, no need to defineProperties them twice.

Dev Dependencies

  • Update chai, es5-shim