oxc-transform 0.29.0 → 0.30.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 +17 -6
  2. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -18,10 +18,19 @@ export interface Es2015BindingOptions {
18
18
  }
19
19
 
20
20
  /** TypeScript Isolated Declarations for Standalone DTS Emit */
21
- export declare function isolatedDeclaration(filename: string, sourceText: string, options: IsolatedDeclarationsOptions): IsolatedDeclarationsResult
21
+ export declare function isolatedDeclaration(filename: string, sourceText: string, options?: IsolatedDeclarationsOptions | undefined | null): IsolatedDeclarationsResult
22
22
 
23
23
  export interface IsolatedDeclarationsOptions {
24
- sourcemap: boolean
24
+ /**
25
+ * Do not emit declarations for code that has an @internal annotation in its JSDoc comment.
26
+ * This is an internal compiler option; use at your own risk, because the compiler does not check that the result is valid.
27
+ *
28
+ * Default: `false`
29
+ *
30
+ * See <https://www.typescriptlang.org/tsconfig/#stripInternal>
31
+ */
32
+ stripInternal?: boolean
33
+ sourcemap?: boolean
25
34
  }
26
35
 
27
36
  export interface IsolatedDeclarationsResult {
@@ -33,7 +42,7 @@ export interface IsolatedDeclarationsResult {
33
42
  /**
34
43
  * Configure how TSX and JSX are transformed.
35
44
  *
36
- * @see [@babel/plugin-transform-react-jsx](https://babeljs.io/docs/babel-plugin-transform-react-jsx#options)
45
+ * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx#options}
37
46
  */
38
47
  export interface ReactBindingOptions {
39
48
  /**
@@ -50,7 +59,7 @@ export interface ReactBindingOptions {
50
59
  *
51
60
  * @default false
52
61
  *
53
- * @see [@babel/plugin-transform-react-jsx-development](https://babeljs.io/docs/babel-plugin-transform-react-jsx-development)
62
+ * @see {@link https://babeljs.io/docs/babel-plugin-transform-react-jsx-development}
54
63
  */
55
64
  development?: boolean
56
65
  /**
@@ -64,10 +73,12 @@ export interface ReactBindingOptions {
64
73
  */
65
74
  throwIfNamespace?: boolean
66
75
  /**
67
- * Enables [@babel/plugin-transform-react-pure-annotations](https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations).
76
+ * Enables `@babel/plugin-transform-react-pure-annotations`.
68
77
  *
69
78
  * It will mark top-level React method calls as pure for tree shaking.
70
79
  *
80
+ * @see {@link https://babeljs.io/docs/en/babel-plugin-transform-react-pure-annotations}
81
+ *
71
82
  * @default true
72
83
  */
73
84
  pure?: boolean
@@ -249,7 +260,7 @@ export interface TypeScriptBindingOptions {
249
260
  *
250
261
  * @default false
251
262
  */
252
- declaration?: boolean
263
+ declaration?: IsolatedDeclarationsOptions
253
264
  /**
254
265
  * Rewrite or remove TypeScript import/export declaration extensions.
255
266
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxc-transform",
3
- "version": "0.29.0",
3
+ "version": "0.30.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.29.0",
27
- "@oxc-transform/binding-win32-arm64-msvc": "0.29.0",
28
- "@oxc-transform/binding-linux-x64-gnu": "0.29.0",
29
- "@oxc-transform/binding-linux-arm64-gnu": "0.29.0",
30
- "@oxc-transform/binding-linux-x64-musl": "0.29.0",
31
- "@oxc-transform/binding-linux-arm64-musl": "0.29.0",
32
- "@oxc-transform/binding-darwin-x64": "0.29.0",
33
- "@oxc-transform/binding-darwin-arm64": "0.29.0"
26
+ "@oxc-transform/binding-win32-x64-msvc": "0.30.0",
27
+ "@oxc-transform/binding-win32-arm64-msvc": "0.30.0",
28
+ "@oxc-transform/binding-linux-x64-gnu": "0.30.0",
29
+ "@oxc-transform/binding-linux-arm64-gnu": "0.30.0",
30
+ "@oxc-transform/binding-linux-x64-musl": "0.30.0",
31
+ "@oxc-transform/binding-linux-arm64-musl": "0.30.0",
32
+ "@oxc-transform/binding-darwin-x64": "0.30.0",
33
+ "@oxc-transform/binding-darwin-arm64": "0.30.0"
34
34
  }
35
35
  }