@openrewrite/rewrite 8.97.0 → 8.97.2

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 (152) hide show
  1. package/README.md +42 -0
  2. package/dist/java/visitor.d.ts +2 -0
  3. package/dist/java/visitor.d.ts.map +1 -1
  4. package/dist/java/visitor.js +7 -3
  5. package/dist/java/visitor.js.map +1 -1
  6. package/dist/javascript/add-import.d.ts +1 -6
  7. package/dist/javascript/add-import.d.ts.map +1 -1
  8. package/dist/javascript/add-import.js +90 -58
  9. package/dist/javascript/add-import.js.map +1 -1
  10. package/dist/javascript/comparator.d.ts +16 -10
  11. package/dist/javascript/comparator.d.ts.map +1 -1
  12. package/dist/javascript/comparator.js +10 -8
  13. package/dist/javascript/comparator.js.map +1 -1
  14. package/dist/javascript/package-json-parser.d.ts +2 -0
  15. package/dist/javascript/package-json-parser.d.ts.map +1 -1
  16. package/dist/javascript/package-json-parser.js +27 -15
  17. package/dist/javascript/package-json-parser.js.map +1 -1
  18. package/dist/javascript/package-manager.d.ts +13 -4
  19. package/dist/javascript/package-manager.d.ts.map +1 -1
  20. package/dist/javascript/package-manager.js +134 -17
  21. package/dist/javascript/package-manager.js.map +1 -1
  22. package/dist/javascript/parser.d.ts +2 -0
  23. package/dist/javascript/parser.d.ts.map +1 -1
  24. package/dist/javascript/parser.js +23 -58
  25. package/dist/javascript/parser.js.map +1 -1
  26. package/dist/javascript/print.d.ts.map +1 -1
  27. package/dist/javascript/print.js +1 -1
  28. package/dist/javascript/print.js.map +1 -1
  29. package/dist/javascript/recipes/change-method-target-to-import.d.ts +4 -0
  30. package/dist/javascript/recipes/change-method-target-to-import.d.ts.map +1 -1
  31. package/dist/javascript/recipes/change-method-target-to-import.js +20 -2
  32. package/dist/javascript/recipes/change-method-target-to-import.js.map +1 -1
  33. package/dist/javascript/recipes/dependencies.d.ts +19 -0
  34. package/dist/javascript/recipes/dependencies.d.ts.map +1 -1
  35. package/dist/javascript/recipes/dependencies.js +8 -0
  36. package/dist/javascript/recipes/dependencies.js.map +1 -1
  37. package/dist/javascript/recipes/order-imports.js +3 -3
  38. package/dist/javascript/recipes/order-imports.js.map +1 -1
  39. package/dist/javascript/remove-import.d.ts.map +1 -1
  40. package/dist/javascript/remove-import.js +115 -33
  41. package/dist/javascript/remove-import.js.map +1 -1
  42. package/dist/javascript/scope.d.ts +7 -0
  43. package/dist/javascript/scope.d.ts.map +1 -1
  44. package/dist/javascript/scope.js +23 -0
  45. package/dist/javascript/scope.js.map +1 -1
  46. package/dist/javascript/templating/bindings.d.ts.map +1 -1
  47. package/dist/javascript/templating/bindings.js +0 -4
  48. package/dist/javascript/templating/bindings.js.map +1 -1
  49. package/dist/javascript/templating/comparator.d.ts +32 -79
  50. package/dist/javascript/templating/comparator.d.ts.map +1 -1
  51. package/dist/javascript/templating/comparator.js +35 -628
  52. package/dist/javascript/templating/comparator.js.map +1 -1
  53. package/dist/javascript/templating/debug.d.ts +143 -0
  54. package/dist/javascript/templating/debug.d.ts.map +1 -0
  55. package/dist/javascript/templating/debug.js +769 -0
  56. package/dist/javascript/templating/debug.js.map +1 -0
  57. package/dist/javascript/templating/engine.d.ts +12 -3
  58. package/dist/javascript/templating/engine.d.ts.map +1 -1
  59. package/dist/javascript/templating/engine.js +135 -76
  60. package/dist/javascript/templating/engine.js.map +1 -1
  61. package/dist/javascript/templating/index.d.ts +1 -1
  62. package/dist/javascript/templating/index.d.ts.map +1 -1
  63. package/dist/javascript/templating/index.js.map +1 -1
  64. package/dist/javascript/templating/pattern.d.ts +44 -35
  65. package/dist/javascript/templating/pattern.d.ts.map +1 -1
  66. package/dist/javascript/templating/pattern.js +224 -238
  67. package/dist/javascript/templating/pattern.js.map +1 -1
  68. package/dist/javascript/templating/rewrite.d.ts +4 -0
  69. package/dist/javascript/templating/rewrite.d.ts.map +1 -1
  70. package/dist/javascript/templating/rewrite.js +5 -1
  71. package/dist/javascript/templating/rewrite.js.map +1 -1
  72. package/dist/javascript/templating/template.js +1 -1
  73. package/dist/javascript/templating/template.js.map +1 -1
  74. package/dist/javascript/templating/types.d.ts +38 -35
  75. package/dist/javascript/templating/types.d.ts.map +1 -1
  76. package/dist/javascript/templating/utils.d.ts.map +1 -1
  77. package/dist/javascript/templating/utils.js +18 -9
  78. package/dist/javascript/templating/utils.js.map +1 -1
  79. package/dist/javascript/tree.d.ts +3 -1
  80. package/dist/javascript/tree.d.ts.map +1 -1
  81. package/dist/javascript/tree.js +5 -0
  82. package/dist/javascript/tree.js.map +1 -1
  83. package/dist/json/tree.d.ts +1 -2
  84. package/dist/json/tree.d.ts.map +1 -1
  85. package/dist/json/tree.js +10 -7
  86. package/dist/json/tree.js.map +1 -1
  87. package/dist/rewrite-javascript-version.txt +1 -1
  88. package/dist/rpc/request/get-object.d.ts.map +1 -1
  89. package/dist/rpc/request/get-object.js +5 -3
  90. package/dist/rpc/request/get-object.js.map +1 -1
  91. package/dist/rpc/request/install-recipes.d.ts +10 -0
  92. package/dist/rpc/request/install-recipes.d.ts.map +1 -1
  93. package/dist/rpc/request/install-recipes.js +125 -51
  94. package/dist/rpc/request/install-recipes.js.map +1 -1
  95. package/dist/rpc/request/prepare-recipe.d.ts +1 -0
  96. package/dist/rpc/request/prepare-recipe.d.ts.map +1 -1
  97. package/dist/rpc/request/prepare-recipe.js +13 -6
  98. package/dist/rpc/request/prepare-recipe.js.map +1 -1
  99. package/dist/rpc/rewrite-rpc.d.ts +1 -1
  100. package/dist/rpc/rewrite-rpc.d.ts.map +1 -1
  101. package/dist/rpc/rewrite-rpc.js +2 -3
  102. package/dist/rpc/rewrite-rpc.js.map +1 -1
  103. package/dist/rpc/worker-transport.d.ts +7 -3
  104. package/dist/rpc/worker-transport.d.ts.map +1 -1
  105. package/dist/rpc/worker-transport.js +54 -41
  106. package/dist/rpc/worker-transport.js.map +1 -1
  107. package/dist/test/rewrite-test.d.ts +1 -16
  108. package/dist/test/rewrite-test.d.ts.map +1 -1
  109. package/dist/test/rewrite-test.js +7 -58
  110. package/dist/test/rewrite-test.js.map +1 -1
  111. package/dist/util.d.ts +16 -0
  112. package/dist/util.d.ts.map +1 -1
  113. package/dist/util.js +53 -0
  114. package/dist/util.js.map +1 -1
  115. package/dist/yaml/parser.js +8 -5
  116. package/dist/yaml/parser.js.map +1 -1
  117. package/dist/yaml/print.js +9 -3
  118. package/dist/yaml/print.js.map +1 -1
  119. package/package.json +1 -1
  120. package/src/java/visitor.ts +8 -3
  121. package/src/javascript/add-import.ts +98 -64
  122. package/src/javascript/comparator.ts +66 -53
  123. package/src/javascript/package-json-parser.ts +25 -16
  124. package/src/javascript/package-manager.ts +121 -15
  125. package/src/javascript/parser.ts +29 -81
  126. package/src/javascript/print.ts +1 -2
  127. package/src/javascript/recipes/change-method-target-to-import.ts +23 -3
  128. package/src/javascript/recipes/dependencies.ts +23 -0
  129. package/src/javascript/recipes/order-imports.ts +5 -5
  130. package/src/javascript/remove-import.ts +113 -41
  131. package/src/javascript/scope.ts +23 -0
  132. package/src/javascript/templating/bindings.ts +1 -6
  133. package/src/javascript/templating/comparator.ts +76 -766
  134. package/src/javascript/templating/debug.ts +806 -0
  135. package/src/javascript/templating/engine.ts +138 -77
  136. package/src/javascript/templating/index.ts +1 -0
  137. package/src/javascript/templating/pattern.ts +267 -270
  138. package/src/javascript/templating/rewrite.ts +5 -1
  139. package/src/javascript/templating/template.ts +1 -1
  140. package/src/javascript/templating/types.ts +40 -37
  141. package/src/javascript/templating/utils.ts +4 -12
  142. package/src/javascript/tree.ts +6 -1
  143. package/src/json/tree.ts +9 -7
  144. package/src/rpc/request/get-object.ts +34 -28
  145. package/src/rpc/request/install-recipes.ts +128 -52
  146. package/src/rpc/request/prepare-recipe.ts +18 -15
  147. package/src/rpc/rewrite-rpc.ts +2 -4
  148. package/src/rpc/worker-transport.ts +63 -43
  149. package/src/test/rewrite-test.ts +2 -59
  150. package/src/util.ts +58 -0
  151. package/src/yaml/parser.ts +9 -5
  152. package/src/yaml/print.ts +9 -3
@@ -52,7 +52,8 @@ export declare class PatternBuilder {
52
52
  build(): Pattern;
53
53
  }
54
54
  /**
55
- * Represents a pattern that can be matched against AST nodes.
55
+ * Represents a pattern that can be matched against AST nodes. Where it does not match code you
56
+ * expected it to, {@link Pattern.match} with `{debug: true}` prints why, as {@link PatternOptions.debug} describes.
56
57
  */
57
58
  export declare class Pattern {
58
59
  readonly templateParts: TemplateStringsArray;
@@ -62,6 +63,7 @@ export declare class Pattern {
62
63
  private _cachedAstPatterns;
63
64
  private static nextPatternId;
64
65
  private readonly patternId;
66
+ private readonly printedAttempts;
65
67
  private readonly unnamedCaptureMapping;
66
68
  /**
67
69
  * Gets the configuration options for this pattern.
@@ -102,6 +104,10 @@ export declare class Pattern {
102
104
  * context: ['import { forwardRef } from "react"'],
103
105
  * dependencies: {'@types/react': '^18.0.0'}
104
106
  * })
107
+ *
108
+ * @example
109
+ * // Print why each match attempt of this pattern matched or not
110
+ * pat.configure({debug: true})
105
111
  */
106
112
  configure(options: PatternOptions): Pattern;
107
113
  /**
@@ -116,12 +122,14 @@ export declare class Pattern {
116
122
  */
117
123
  getAstPattern(expression?: boolean): Promise<J>;
118
124
  /**
119
- * Creates a matcher for this pattern against a specific AST node.
125
+ * Matches this pattern against `tree`, returning what its captures hold, or `undefined` where it
126
+ * does not match. To see why it does not match, pass `{debug: true}`, or a predicate that picks
127
+ * the attempts to print, as {@link PatternOptions.debug} describes.
120
128
  *
121
129
  * @param tree The AST node to match against
122
130
  * @param cursor Cursor at the node's position in a larger tree. Used for context-aware
123
131
  * capture constraints to navigate to parent nodes.
124
- * @param options Optional match options (e.g., debug flag)
132
+ * @param options Optional match options, such as `debug`
125
133
  * @returns A MatchResult if the pattern matches, undefined otherwise
126
134
  *
127
135
  * @example
@@ -129,66 +137,64 @@ export declare class Pattern {
129
137
  * // Normal match
130
138
  * const match = await pattern.match(node, cursor);
131
139
  *
132
- * // Debug this specific call
133
- * const match = await pattern.match(node, cursor, { debug: true });
140
+ * // Print why this attempt matched or not
141
+ * const match = await pattern.match(node, cursor, {debug: true});
134
142
  * ```
135
143
  */
136
144
  match(tree: J, cursor: Cursor, options?: MatchOptions): Promise<MatchResult | undefined>;
137
145
  /**
138
- * Formats and logs the match result to stderr.
139
- * @private
146
+ * Prints a match attempt to stderr, followed by a blank line. An attempt that prints the same as
147
+ * an earlier one prints only its heading.
140
148
  */
141
149
  private logMatchResult;
142
150
  /**
143
- * Compacts array index navigations into the previous path element.
144
- * For example: ['J$VariableDeclarations#variables', '0'] → ['J$VariableDeclarations#variables[0]']
145
- * @private
146
- */
147
- private compactPath;
148
- /**
149
- * Gets the source code representation of this pattern for logging.
150
- * @private
151
+ * The lines debug output prints for a match attempt. They start with the pattern and a heading that
152
+ * says where the code is. A success follows with the code and each capture lettered. A failure follows
153
+ * with the pattern and the code around the mismatch marked, and how they differ.
151
154
  */
152
- private getPatternSource;
155
+ private render;
156
+ /** The lines of `tree` around the mismatch, with it marked on `element` and narrowed to `focus` there. */
157
+ private printMismatch;
158
+ /** The lines of `tree` with each capture's code between its letter, as in `Ⓐuser?Ⓐ.name`. */
159
+ private printCaptures;
153
160
  /**
154
- * Formats a captured value for logging.
161
+ * Replaces placeholder names in tree strings with clean display names.
162
+ * Uses 🪝 prefix to make captures easily identifiable.
155
163
  * @private
156
164
  */
157
- private formatCapturedValue;
165
+ private replacePlaceholderNames;
158
166
  /**
159
- * Formats a single AST node for logging.
167
+ * Gets the source code representation of this pattern for logging.
160
168
  * @private
161
169
  */
162
- private formatSingleValue;
170
+ private getPatternSource;
163
171
  /**
164
- * Matches a pattern against an AST node with detailed debug information.
165
- * Part of Layer 2 (Public API).
166
- *
167
- * This method always enables debug logging and returns detailed information about
168
- * the match attempt, including:
169
- * - Whether the pattern matched
170
- * - Captured nodes (if matched)
171
- * - Explanation of failure (if not matched)
172
- * - Debug log entries showing the matching process
172
+ * Matches like {@link match}, and returns why the pattern did not match rather than printing it.
173
+ * A failed attempt's `explanation` holds the reason, the expected and actual code, and the pattern
174
+ * and source nodes where they differ. `debugLog` holds an entry for each capture constraint evaluated.
173
175
  *
174
176
  * @param tree The AST node to match against
175
177
  * @param cursor Cursor at the node's position in a larger tree
176
- * @param debugOptions Optional debug options (defaults to all logging enabled)
177
- * @returns Detailed result with debug information
178
+ * @param debugOptions Which entries `debugLog` collects, by default all of them
179
+ * @returns Whether the pattern matched, with the captures where it did and the explanation where it did not
178
180
  *
179
181
  * @example
180
182
  * const x = capture('x');
181
183
  * const pat = pattern`console.log(${x})`;
182
184
  * const attempt = await pat.matchWithExplanation(node, cursor);
183
185
  * if (attempt.matched) {
184
- * console.log('Matched!');
185
186
  * console.log('Captured x:', attempt.result.get('x'));
186
187
  * } else {
187
- * console.log('Failed:', attempt.explanation);
188
- * console.log('Debug log:', attempt.debugLog);
188
+ * const {reason, expected, actual} = attempt.explanation!;
189
+ * console.log(`${reason}: the pattern has ${expected} where the source has ${actual}`);
189
190
  * }
190
191
  */
191
192
  matchWithExplanation(tree: J, cursor: Cursor, debugOptions?: DebugOptions): Promise<MatchAttemptResult>;
193
+ /**
194
+ * The attempt, the pattern tree it compared, which holds the explanation's pattern element, and
195
+ * where on each side the mismatch is narrower than its marked node.
196
+ */
197
+ private attempt;
192
198
  }
193
199
  /**
194
200
  * Result of a successful pattern match containing captured values.
@@ -269,6 +275,8 @@ export declare class MatchResult implements IMatchResult {
269
275
  */
270
276
  /**
271
277
  * Creates a pattern from a template literal (direct usage).
278
+ * To see why it does or does not match some code, pass `{debug: true}` to `match()`
279
+ * or create it with `pattern({debug: true})`, as {@link PatternOptions.debug} describes.
272
280
  *
273
281
  * @example
274
282
  * ```typescript
@@ -281,7 +289,8 @@ export declare function pattern(strings: TemplateStringsArray, ...captures: (Cap
281
289
  *
282
290
  * @example
283
291
  * ```typescript
284
- * const pat = pattern({ debug: true })`console.log(${x})`;
292
+ * // Prints why each match attempt matched or not, as PatternOptions.debug describes
293
+ * const pat = pattern({debug: true})`console.log(${x})`;
285
294
  * ```
286
295
  */
287
296
  export declare function pattern(options: PatternOptions): (strings: TemplateStringsArray, ...captures: (Capture | Any<any> | RawCode | string)[]) => Pattern;
@@ -1 +1 @@
1
- {"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../../src/javascript/templating/pattern.ts"],"names":[],"mappings":"AAeA,OAAO,EAAC,MAAM,EAAC,MAAM,OAAO,CAAC;AAC7B,OAAO,EAAe,CAAC,EAAC,MAAM,YAAY,CAAC;AAC3C,OAAO,EACH,GAAG,EACH,OAAO,EAEP,YAAY,EACZ,kBAAkB,EAElB,YAAY,EACZ,WAAW,IAAI,YAAY,EAC3B,cAAc,EACjB,MAAM,SAAS,CAAC;AACjB,OAAO,EAA8E,OAAO,EAAC,MAAM,WAAW,CAAC;AAE/G,OAAO,EAEH,mBAAmB,EAGnB,uBAAuB,EAEvB,mBAAmB,EACtB,MAAM,SAAS,CAAC;AAQjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,cAAc;IACvB,OAAO,CAAC,KAAK,CAAgB;IAC7B,OAAO,CAAC,QAAQ,CAAwC;IAExD;;;;;OAKG;IACH,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAcvB;;;;;OAKG;IACH,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,GAAG,MAAM,GAAG,IAAI;IAa3D;;;;OAIG;IACH,KAAK,IAAI,OAAO;CAiBnB;AAED;;GAEG;AACH,qBAAa,OAAO;aAyCI,aAAa,EAAE,oBAAoB;aACnC,QAAQ,EAAE,CAAC,OAAO,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,EAAE;IAzC9D,OAAO,CAAC,QAAQ,CAAsB;IACtC,+EAA+E;IAC/E,OAAO,CAAC,kBAAkB,CAAyB;IACnD,OAAO,CAAC,MAAM,CAAC,aAAa,CAAK;IACjC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,QAAQ,CAAC,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