@oxc-project/runtime
Oxc's modular runtime helpers
Last updated 25 days ago by GitHub Actions .
MIT · Repository · Original npm · Tarball · package.json
$ npm install @oxc-project/runtime 
SYNC missed versions from official npm registry.

Oxc's modular runtime helpers

Vendored from the complete published @babel/runtime@8.0.8 package, including all 95 CommonJS/ESM helper pairs and Babel's MIT license. All credits to the Babel team.

upstream.json records the upstream version, SHA-256 of every upstream helper file, and the local patches. The tests check these hashes so unrecorded edits cannot silently diverge from Babel.

Differences from Babel

  • setFunctionName.js and esm/setFunctionName.js preserve "[]" for Symbol(""), matching native computed method names. Babel 8.0.8 returns an empty name. These files are unchanged from Oxc's existing helpers and are the only patches to the upstream helper tree.
  • Oxc retains its three TypeScript legacy decorator helpers: decorate, decorateParam, and decorateMetadata. They are adapted from TypeScript and are absent from Babel 8.
  • The 26 older Babel helpers removed in Babel 8 remain available for compatibility with previously generated code. Their names are listed in upstream.json; they are outside the Babel 8 source snapshot.
  • Package identity, Oxc's version and Node.js requirements, and the src/ layout remain Oxc-specific. Babel's export targets and sideEffects: false are synchronized while preserving Oxc's existing conditional-export precedence; explicit helpers/esm/* and older package exports remain supported.

Updating

Download and extract a specific published version of @babel/runtime, then run from this directory:

node scripts/sync.mjs /path/to/extracted/babel-runtime

The script copies every unpatched upstream helper and the license, updates exports and the hash manifest, and preserves compatibility helpers and recorded local patches. Before writing, it checks that each patched helper still matches its recorded local hash and that its upstream source is unchanged. If upstream changes a patched helper, the script stops so its local changes can be reviewed against the new version.

The manifest uses the script's generated JSON formatting and is excluded from repository formatting. Repeating the command with the recorded upstream version leaves the runtime tree unchanged. Tests reconstruct that upstream tree offline, using the vendored helpers and the original sources of the two patched helpers.

Run the import, integrity, and runtime behavior tests with:

node --run test

Current Tags

  • 0.158.0                                ...           latest (18 days ago)

132 Versions

  • 0.158.0                                ...           18 days ago
  • 0.157.0                                ...           25 days ago
  • 0.156.0                                ...           a month ago
  • 0.155.0                                ...           a month ago
  • 0.154.0                                ...           a month ago
  • 0.153.0                                ...           2 months ago
  • 0.152.0                                ...           2 months ago
  • 0.151.0                                ...           2 months ago
  • 0.150.0                                ...           2 months ago
  • 0.149.0                                ...           3 months ago
  • 0.148.0                                ...           3 months ago
  • 0.147.0                                ...           3 months ago
  • 0.146.0                                ...           3 months ago
  • 0.145.0                                ...           3 months ago
  • 0.144.0                                ...           4 months ago
  • 0.143.0                                ...           4 months ago
  • 0.142.0                                ...           4 months ago
  • 0.141.0                                ...           4 months ago
  • 0.140.0                                ...           4 months ago
  • 0.139.0                                ...           5 months ago
  • 0.138.0                                ...           5 months ago
  • 0.137.0                                ...           5 months ago
  • 0.136.0                                ...           5 months ago
  • 0.135.0                                ...           6 months ago
  • 0.134.0                                ...           6 months ago
  • 0.133.0                                ...           6 months ago
  • 0.132.0                                ...           6 months ago
  • 0.131.0                                ...           6 months ago
  • 0.130.0                                ...           7 months ago
  • 0.129.0                                ...           7 months ago
  • 0.128.0                                ...           7 months ago
  • 0.127.0                                ...           7 months ago
  • 0.126.0                                ...           7 months ago
  • 0.125.0                                ...           7 months ago
  • 0.124.0                                ...           8 months ago
  • 0.123.0                                ...           8 months ago
  • 0.122.0                                ...           8 months ago
  • 0.121.0                                ...           8 months ago
  • 0.120.0                                ...           8 months ago
  • 0.119.0                                ...           8 months ago
  • 0.118.0                                ...           8 months ago
  • 0.117.0                                ...           9 months ago
  • 0.116.0                                ...           9 months ago
  • 0.115.0                                ...           9 months ago
  • 0.114.0                                ...           9 months ago
  • 0.113.0                                ...           10 months ago
  • 0.112.0                                ...           10 months ago
  • 0.111.0                                ...           10 months ago
  • 0.110.0                                ...           10 months ago
  • 0.109.0                                ...           10 months ago
  • 0.108.0                                ...           10 months ago
  • 0.107.0                                ...           a year ago
  • 0.106.0                                ...           a year ago
  • 0.105.0                                ...           a year ago
  • 0.104.0                                ...           a year ago
  • 0.103.0                                ...           a year ago
  • 0.102.0                                ...           a year ago
  • 0.101.0                                ...           a year ago
  • 0.100.0                                ...           a year ago
  • 0.99.0                                ...           a year ago
  • 0.98.0                                ...           a year ago
  • 0.97.0                                ...           a year ago
  • 0.96.0                                ...           a year ago
  • 0.95.0                                ...           a year ago
  • 0.94.0                                ...           a year ago
  • 0.93.0                                ...           a year ago
  • 0.92.0                                ...           a year ago
  • 0.91.0                                ...           a year ago
  • 0.90.0                                ...           a year ago
  • 0.89.0                                ...           a year ago
  • 0.88.0                                ...           a year ago
  • 0.87.0                                ...           a year ago
  • 0.86.0                                ...           a year ago
  • 0.85.0                                ...           a year ago
  • 0.84.0                                ...           a year ago
  • 0.83.0                                ...           a year ago
  • 0.82.3                                ...           a year ago
  • 0.82.2                                ...           a year ago
  • 0.82.1                                ...           a year ago
  • 0.82.0                                ...           a year ago
  • 0.81.0                                ...           a year ago
  • 0.80.0                                ...           a year ago
  • 0.79.1                                ...           a year ago
  • 0.79.0                                ...           a year ago
  • 0.78.0                                ...           a year ago
  • 0.77.3                                ...           a year ago
  • 0.77.2                                ...           a year ago
  • 0.77.1                                ...           a year ago
  • 0.77.0                                ...           a year ago
  • 0.76.0                                ...           a year ago
  • 0.75.1                                ...           a year ago
  • 0.75.0                                ...           a year ago
  • 0.74.0                                ...           a year ago
  • 0.73.2                                ...           a year ago
  • 0.73.1                                ...           a year ago
  • 0.73.0                                ...           a year ago
  • 0.72.3                                ...           a year ago
  • 0.72.2                                ...           a year ago
  • 0.72.1                                ...           a year ago
  • 0.72.0                                ...           2 years ago
  • 0.71.0                                ...           2 years ago
  • 0.70.0                                ...           2 years ago
  • 0.69.0                                ...           2 years ago
  • 0.68.1                                ...           2 years ago
  • 0.68.0                                ...           2 years ago
  • 0.67.0                                ...           2 years ago
  • 0.66.0                                ...           2 years ago
  • 0.65.0                                ...           2 years ago
  • 0.64.0                                ...           2 years ago
  • 0.63.0                                ...           2 years ago
  • 0.62.0                                ...           2 years ago
  • 0.61.2                                ...           2 years ago
  • 0.61.1                                ...           2 years ago
  • 0.61.0                                ...           2 years ago
  • 0.60.0                                ...           2 years ago
  • 0.59.0                                ...           2 years ago
  • 0.58.1                                ...           2 years ago
  • 0.58.0                                ...           2 years ago
  • 0.57.0                                ...           2 years ago
  • 0.56.5                                ...           2 years ago
  • 0.56.4                                ...           2 years ago
  • 0.56.3                                ...           2 years ago
  • 0.56.2                                ...           2 years ago
  • 0.56.1                                ...           2 years ago
  • 0.56.0                                ...           2 years ago
  • 0.55.0                                ...           2 years ago
  • 0.54.0                                ...           2 years ago
  • 0.53.0                                ...           2 years ago
  • 0.52.0                                ...           2 years ago
  • 0.51.0                                ...           2 years ago
  • 0.50.0                                ...           2 years ago
  • 0.49.0                                ...           2 years ago
Maintainers (1)
Downloads
Total 443
Today 0
This Week 5
This Month 399
Last Day 2
Last Week 392
Last Month 44
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (3)

© 2010 - cnpmjs.org x YWFE | Home | YWFE