0.10.5 • Published 11 days ago

babel-plugin-polyfill-es-shims v0.10.5

Weekly downloads
2,038
License
MIT
Repository
github
Last release
11 days ago

babel-plugin-polyfill-es-shims

Install

Using npm:

npm install --save-dev babel-plugin-polyfill-es-shims

or using yarn:

yarn add babel-plugin-polyfill-es-shims --dev

Usage

Add this plugin to your Babel configuration:

{
  "plugins": [["polyfill-es-shims", { "method": "usage-pure" }]]
}

This package supports the usage-pure and usage-global methods.

Supported polyfills

This polyfill provider is compatible with polyfills that follow the es-shims-api specification. Those polyfills must live under the @es-shims organization, but for historical reasons some of them are owned by different people: they are explicitly marked as such in the following tables.

ES2024

Builtin object or functionPackage nameOwner
String.prototype.isWellFormedstring.prototype.iswellformed
String.prototype.toWellFormedstring.prototype.towellformed

ES2023

Builtin object or functionPackage nameOwner
Array.prototype.findLastarray.prototype.findlast
Array.prototype.findLastIndexarray.prototype.findlastindex
Array.prototype.toReversedarray.prototype.toreversed
Array.prototype.toSortedarray.prototype.tosorted
Array.prototype.toSplicedarray.prototype.tospliced
Array.prototype.witharray.prototype.with

ES2022

Builtin object or functionPackage nameOwner
Array.prototype.atarray.prototype.at
Error's cause propertyerror-cause
Object.hasOwnobject.hasown
String.prototype.atstring.prototype.at

ES2021

Builtin object or functionPackage nameOwner
AggregateError (for Promise.any)es-aggregate-error
Promise.anypromise.any
String.prototype.replaceAllstring.prototype.replaceall

ES2020

Builtin object or functionPackage nameOwner
globalThisglobalthis
Promise.allSettledpromise.allsettled
String.prototype.matchAllstring.prototype.matchall

ES2019

Builtin object or functionPackage nameOwner
Array.prototype.flatarray.prototype.flat
Array.prototype.flatMaparray.prototype.flatmap
Object.fromEntriesobject.fromentries
String.prototype.trimStartstring.prototype.trimstart
String.prototype.trimEndstring.prototype.trimend
String.prototype.trimLeftstring.prototype.trimleft
String.prototype.trimRightstring.prototype.trimright
Symbol.prototype.descriptionsymbol.prototype.description

ES2018

Builtin object or functionPackage nameOwner
Promise.prototype.finallypromise.prototype.finally

ES2017

Builtin object or functionPackage nameOwner
Object.valuesobject.values
Object.entriesobject.entries
Object.getOwnPropertyDescriptorsobject.getownpropertydescriptors
String.prototype.padStartstring.prototype.padstart
String.prototype.padEndstring.prototype.padend

ES2016

Builtin object or functionPackage nameOwner
Array.prototype.includesarray-includes

ES2015 (ES6)

⚠️ This provider fully supports ES2016+ polyfills, but we are still working on ES5 and ES6 support. You can find the list of missing polyfills at missing-polyfills.md.

Builtin object or functionPackage nameOwner
Array.fromarray.from@mathiasbynens
Array.ofarray.of@mathiasbynens
Array.prototype.concat (updated from ES5)array.prototype.concat
Array.prototype.copyWithinarray.prototype.copywithin
Array.prototype.entriesarray.prototype.entries
Array.prototype.findarray.prototype.find@paulmillr
Array.prototype.findIndexarray.prototype.findindex@paulmillr
Array.prototype.keysarray.prototype.keys
Array.prototype.splice (updated from ES5)array.prototype.splice
Array.prototype.valuesarray.prototype.values
Function.prototype.namefunction.prototype.name
Math.acoshmath.acosh
Math.atanhmath.atanh
Math.clz32math.clz32
Math.cbrtmath.cbrt
Math.froundmath.fround
Math.imulmath.log1p
Math.log10math.log1p
Math.log1pmath.log1p
Math.signmath.sign
Number.isNaNnumber.isnan
Object.assignobject.assign@ljharb
Object.getPrototypeOfobject.getprototypeof
Object.isobject-is
Reflect.applyreflect.apply
Reflect.getPrototypeOfreflect.getprototypeof
Reflect.ownKeysreflect.ownkeys
RegExp.prototype.flagsregexp.prototype.flags
String.fromCodePointstring.fromcodepoint@mathiasbynens
String.rawstring.raw
String.prototype.codePointAtstring.prototype.codepointat@mathiasbynens
String.prototype.endsWithstring.prototype.endswith@mathiasbynens
String.prototype.includesstring.prototype.includes@mathiasbynens
String.prototype.repeatstring.prototype.repeat@mathiasbynens
String.prototype.startWithstring.prototype.startwith@mathiasbynens
Annex B String.prototype.*es-string-html-methods

ES5

⚠️ This provider fully supports ES2016+ polyfills, but we are still working on ES5 and ES6 support. You can find the list of missing polyfills at missing-polyfills.md.

Builtin object or functionPackage nameOwner
parseIntparseint
Array.prototype.everyarray.prototype.every
Array.prototype.indexOfarray.prototype.indexof
Array.prototype.lastIndexOfarray.prototype.lastindexof
Array.prototype.maparray.prototype.map
Array.prototype.reducearray.prototype.reduce
Array.prototype.reduceRightarray.prototype.reduceright
Array.prototype.somearray.prototype.some
Number.prototype.toExponentialnumber.prototype.toexponential
Object.definePropertiesobject.defineproperties
String.prototype.splitstring.prototype.split
String.prototype.substrstring.prototype.substr
String.prototype.trimstring.prototype.trim
0.10.5

11 days ago

0.10.4

2 months ago

0.10.3

2 months ago

0.10.2

4 months ago

0.10.1

5 months ago

0.10.0

7 months ago

0.9.2

10 months ago

0.9.1

10 months ago

0.9.0

12 months ago

0.8.0

1 year ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.0

3 years ago

0.2.3

3 years ago

0.2.1

3 years ago

0.2.2

3 years ago

0.2.0

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.3

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.1

4 years ago

0.0.2

4 years ago

0.0.0

4 years ago