Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
core-js-builder
Advanced tools
For some cases could be useful to exclude some core-js
features or generate a polyfill for target engines. This API helps conditionally include or exclude certain parts of core-js
and build for targets. modules
, exclude
and targets
options are specified in the core-js-compat
format.
import builder from 'core-js-builder';
const bundle = await builder({
// entry / module / namespace / an array of them, by default - all `core-js` modules
modules: ['core-js/actual', /^esnext\.reflect\./],
// a blacklist of entries / modules / namespaces, by default - empty list
exclude: [/^es\.math\./, 'es.number.constructor'],
// optional browserslist or core-js-compat format query
targets: '> 0.5%, not dead, ie 9-11',
// shows summary for the bundle, disabled by default
summary: {
// in the console, you could specify required parts or set `true` for enable all of them
console: { size: true, modules: false },
// in the comment in the target file, similarly to `summary.console`
comment: { size: false, modules: true },
},
// output format, 'bundle' by default, can be 'cjs' or 'esm', and in this case
// the result will not be bundled and will contain imports of required modules
format: 'bundle',
// optional target filename, if it's missed a file will not be created
filename: PATH_TO_MY_COREJS_BUNDLE,
});
ℹ️ When using TypeScript, make sure to set esModuleInterop
to true
.
Array
by copy proposal:
Array.prototype.toReversed
Array.prototype.toSorted
Array.prototype.toSpliced
Array.prototype.with
%TypedArray%.prototype.toReversed
%TypedArray%.prototype.toSorted
%TypedArray%.prototype.with
es.
namespace modules, /es/
and /stable/
namespaces entriesJSON.parse
source text access Stage 3 proposal
JSON.parse
patched for support source
in reviver
function argumentsJSON.rawJSON
JSON.isRawJSON
JSON.stringify
patched for support JSON.rawJSON
ArrayBuffer.prototype.transfer
and friends Stage 3 proposal:
ArrayBuffer.prototype.detached
ArrayBuffer.prototype.transfer
(only in runtimes with native structuredClone
with ArrayBuffer
transfer support)ArrayBuffer.prototype.transferToFixedLength
(only in runtimes with native structuredClone
with ArrayBuffer
transfer support)ArrayBuffer.prototype.transfer
, but without proper structuredClone
, added ArrayBuffer
transfer support to structuredClone
polyfillAsyncIterator
helpers, proposal-iterator-helpers/262InstallErrorCause
removed from SuppressedError
, January 2023 TC39 meeting, proposal-explicit-resource-management/145{ AsyncDisposableStack, DisposableStack }.prototype.use
, proposal-explicit-resource-management/143Symbol
predicates Stage 2 proposal
Symbol.isRegistered
Symbol.isWellKnown
Number.range
Stage 1 proposal and method renamed to Iterator.range
Function.prototype.unThis
Stage 0 proposal and method renamed to Function.prototype.demethodize
String.prototype.toWellFormed
ToString
conversion bugJSON.stringify
symbols handling fixJSON.{ parse, stringify }
bugs (numbers instead of strings as keys in replacer, handling negative zeroes, spaces, some more handling symbols cases, etc.)ToString
conversion of some accessorsArrayBuffer
and DataView
methodsDataView
and %TypedArray%
polyfills optimizations=
in the atob
polyfillString.prototype.{ trim, trimEnd, trimRight }
, parse(Int|Float)
, Number
, atob
, and URL
polyfills in some ancient enginesRegExp.prototype.flags
marked as fixed from V8 ~ Chrome 111core-js-builder
FAQs
core-js builder
The npm package core-js-builder receives a total of 9,006 weekly downloads. As such, core-js-builder popularity was classified as popular.
We found that core-js-builder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.