oxc-transform 0.48.1 → 0.49.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.
Files changed (2) hide show
  1. package/index.d.ts +15 -0
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -20,6 +20,19 @@ export interface CompilerAssumptions {
20
20
  setPublicClassFields?: boolean
21
21
  }
22
22
 
23
+ export interface DecoratorOptions {
24
+ /**
25
+ * Enables experimental support for decorators, which is a version of decorators that predates the TC39 standardization process.
26
+ *
27
+ * Decorators are a language feature which hasn’t yet been fully ratified into the JavaScript specification.
28
+ * This means that the implementation version in TypeScript may differ from the implementation in JavaScript when it it decided by TC39.
29
+ *
30
+ * @see https://www.typescriptlang.org/tsconfig/#experimentalDecorators
31
+ * @default false
32
+ */
33
+ legacy?: boolean
34
+ }
35
+
23
36
  export interface ErrorLabel {
24
37
  message?: string
25
38
  start: number
@@ -270,6 +283,8 @@ export interface TransformOptions {
270
283
  define?: Record<string, string>
271
284
  /** Inject Plugin */
272
285
  inject?: Record<string, string | [string, string]>
286
+ /** Decorator plugin */
287
+ decorator?: DecoratorOptions
273
288
  }
274
289
 
275
290
  export interface TransformResult {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-transform",
3
- "version": "0.48.1",
3
+ "version": "0.49.0",
4
4
  "description": "Oxc transform Node API",
5
5
  "keywords": [
6
6
  "transform"
@@ -23,13 +23,13 @@
23
23
  "index.js"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@oxc-transform/binding-win32-x64-msvc": "0.48.1",
27
- "@oxc-transform/binding-win32-arm64-msvc": "0.48.1",
28
- "@oxc-transform/binding-linux-x64-gnu": "0.48.1",
29
- "@oxc-transform/binding-linux-arm64-gnu": "0.48.1",
30
- "@oxc-transform/binding-linux-x64-musl": "0.48.1",
31
- "@oxc-transform/binding-linux-arm64-musl": "0.48.1",
32
- "@oxc-transform/binding-darwin-x64": "0.48.1",
33
- "@oxc-transform/binding-darwin-arm64": "0.48.1"
26
+ "@oxc-transform/binding-win32-x64-msvc": "0.49.0",
27
+ "@oxc-transform/binding-win32-arm64-msvc": "0.49.0",
28
+ "@oxc-transform/binding-linux-x64-gnu": "0.49.0",
29
+ "@oxc-transform/binding-linux-arm64-gnu": "0.49.0",
30
+ "@oxc-transform/binding-linux-x64-musl": "0.49.0",
31
+ "@oxc-transform/binding-linux-arm64-musl": "0.49.0",
32
+ "@oxc-transform/binding-darwin-x64": "0.49.0",
33
+ "@oxc-transform/binding-darwin-arm64": "0.49.0"
34
34
  }
35
35
  }