@oxc-project/runtime 0.50.0 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to this package will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project does not adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) until v1.0.0.
6
6
 
7
+ ## [0.52.0] - 2025-02-21
8
+
9
+ ### Features
10
+
11
+ - 6c24357 npm/runtime: Add `decorateMetadata` helper function (#9189) (Dunqing)
12
+
13
+ ## [0.51.0] - 2025-02-15
14
+
15
+ ### Bug Fixes
16
+
17
+ - 5f15605 npm/runtime: Incorrect file paths in `exports` (#9069) (Dunqing)
18
+
7
19
  ## [0.50.0] - 2025-02-12
8
20
 
9
21
  ### Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oxc-project/runtime",
3
- "version": "0.50.0",
3
+ "version": "0.52.0",
4
4
  "description": "Oxc's modular runtime helpers",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -298,6 +298,15 @@
298
298
  "./src/helpers/decorate.js"
299
299
  ],
300
300
  "./helpers/esm/decorate": "./src/helpers/esm/decorate.js",
301
+ "./helpers/decorateMetadata": [
302
+ {
303
+ "node": "./src/helpers/decorateMetadata.js",
304
+ "import": "./src/helpers/esm/decorateMetadata.js",
305
+ "default": "./src/helpers/decorateMetadata.js"
306
+ },
307
+ "./src/helpers/decorateMetadata.js"
308
+ ],
309
+ "./helpers/esm/decorateMetadata": "./src/helpers/esm/decorateMetadata.js",
301
310
  "./helpers/decorateParam": [
302
311
  {
303
312
  "node": "./src/helpers/decorateParam.js",
@@ -306,7 +315,6 @@
306
315
  },
307
316
  "./src/helpers/decorateParam.js"
308
317
  ],
309
- "./helpers/esm/decorateParam": "./src/helpers/esm/decorateParam.js",
310
318
  "./helpers/defaults": [
311
319
  {
312
320
  "node": "./src/helpers/defaults.js",
@@ -0,0 +1,9 @@
1
+ // Copy from https://github.com/microsoft/TypeScript/blob/d85767abfd83880cea17cea70f9913e9c4496dcc/src/compiler/factory/emitHelpers.ts#L744-L753
2
+
3
+ function __decorateMetadata(k, v) {
4
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
5
+ };
6
+
7
+ (module.exports = __decorateMetadata),
8
+ (module.exports.__esModule = true),
9
+ (module.exports["default"] = module.exports);
@@ -0,0 +1,7 @@
1
+ // Copy from https://github.com/microsoft/TypeScript/blob/d85767abfd83880cea17cea70f9913e9c4496dcc/src/compiler/factory/emitHelpers.ts#L744-L753
2
+
3
+ function __decorateMetadata(k, v) {
4
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
5
+ };
6
+
7
+ export { __decorateMetadata as default };