Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-polyfill-es-shims

Package Overview
Dependencies
Maintainers
0
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-polyfill-es-shims

A Babel plugin to inject imports to es-shims polyfills

  • 0.10.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.8K
decreased by-38.32%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 11 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc