@octanejs/codemod 0.2.2 → 0.2.4

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/dist/types.d.ts CHANGED
@@ -22,6 +22,8 @@ export interface TransformOptions {
22
22
  strong?: boolean;
23
23
  /** The project checks with `strictNullChecks`, so TypeScript types can prove text holes and boolean guards. */
24
24
  strictNullChecks?: boolean;
25
+ /** Whether the project can expose the selected module through mutable exports. */
26
+ mutableExports?(): boolean;
25
27
  /** This module in a program over the whole project, whose resolved imports type what the module's own program cannot. */
26
28
  types?: {
27
29
  sourceFile: ts.SourceFile;
@@ -66,6 +68,8 @@ export interface TransformOptions {
66
68
  } | null;
67
69
  /** Relative path to the project-local React Intl adapter, when its installed peers support it. */
68
70
  reactIntlAdapter?: string;
71
+ /** Whether the installed React Intl factory and FormatJS error paths match the supported release. */
72
+ originalIntlFactory?(): boolean;
69
73
  /** Whether a directly imported, selected component forwards this prop only to text attributes. */
70
74
  forwardedText?(module: string, exported: string, prop: string, ordinaryCaller?: boolean, through?: boolean): boolean;
71
75
  /** Whether this selected component accepts one explicit element, with separate review for path aliases. */
@@ -79,7 +83,7 @@ export interface TransformOptions {
79
83
  imported: string;
80
84
  }): boolean;
81
85
  /** Whether an imported name is a context, with separate review for selected alias targets. */
82
- isContext?(specifier: string, name: string, local: string): boolean | 'review-alias' | null;
86
+ isContext?(specifier: string, name: string, local: string, attributed?: boolean): boolean | 'review-alias' | null;
83
87
  /** The React package an import specifier names when the codemod keeps it on React, or null. */
84
88
  unported?(specifier: string): string | null;
85
89
  /** The project has React and React DOM 19.2 or newer in the React 19 series, so `ReactCompat` can host an unported package's components. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/codemod",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22.22.2"
@@ -47,7 +47,7 @@
47
47
  "dependencies": {
48
48
  "@octanejs/cli": "0.3.6",
49
49
  "@tsrx/oxc": "0.23.0",
50
- "octane": "0.19.0",
50
+ "octane": "0.19.2",
51
51
  "parse5": "8.0.1",
52
52
  "picocolors": "^1.1.1",
53
53
  "typescript": "^5.9.3"