@openrewrite/rewrite 8.67.0-20251104-084009 → 8.67.0-20251104-114312

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 (71) hide show
  1. package/dist/javascript/comparator.d.ts +67 -4
  2. package/dist/javascript/comparator.d.ts.map +1 -1
  3. package/dist/javascript/comparator.js +523 -2794
  4. package/dist/javascript/comparator.js.map +1 -1
  5. package/dist/javascript/format.d.ts.map +1 -1
  6. package/dist/javascript/format.js +3 -2
  7. package/dist/javascript/format.js.map +1 -1
  8. package/dist/javascript/index.d.ts +1 -1
  9. package/dist/javascript/index.d.ts.map +1 -1
  10. package/dist/javascript/index.js +1 -1
  11. package/dist/javascript/index.js.map +1 -1
  12. package/dist/javascript/templating/capture.d.ts +226 -0
  13. package/dist/javascript/templating/capture.d.ts.map +1 -0
  14. package/dist/javascript/templating/capture.js +371 -0
  15. package/dist/javascript/templating/capture.js.map +1 -0
  16. package/dist/javascript/templating/comparator.d.ts +61 -0
  17. package/dist/javascript/templating/comparator.d.ts.map +1 -0
  18. package/dist/javascript/templating/comparator.js +393 -0
  19. package/dist/javascript/templating/comparator.js.map +1 -0
  20. package/dist/javascript/templating/engine.d.ts +75 -0
  21. package/dist/javascript/templating/engine.d.ts.map +1 -0
  22. package/dist/javascript/templating/engine.js +228 -0
  23. package/dist/javascript/templating/engine.js.map +1 -0
  24. package/dist/javascript/templating/index.d.ts +6 -0
  25. package/dist/javascript/templating/index.d.ts.map +1 -0
  26. package/dist/javascript/templating/index.js +42 -0
  27. package/dist/javascript/templating/index.js.map +1 -0
  28. package/dist/javascript/templating/pattern.d.ts +171 -0
  29. package/dist/javascript/templating/pattern.d.ts.map +1 -0
  30. package/dist/javascript/templating/pattern.js +681 -0
  31. package/dist/javascript/templating/pattern.js.map +1 -0
  32. package/dist/javascript/templating/placeholder-replacement.d.ts +58 -0
  33. package/dist/javascript/templating/placeholder-replacement.d.ts.map +1 -0
  34. package/dist/javascript/templating/placeholder-replacement.js +365 -0
  35. package/dist/javascript/templating/placeholder-replacement.js.map +1 -0
  36. package/dist/javascript/templating/rewrite.d.ts +39 -0
  37. package/dist/javascript/templating/rewrite.d.ts.map +1 -0
  38. package/dist/javascript/templating/rewrite.js +81 -0
  39. package/dist/javascript/templating/rewrite.js.map +1 -0
  40. package/dist/javascript/templating/template.d.ts +204 -0
  41. package/dist/javascript/templating/template.d.ts.map +1 -0
  42. package/dist/javascript/templating/template.js +293 -0
  43. package/dist/javascript/templating/template.js.map +1 -0
  44. package/dist/javascript/templating/types.d.ts +263 -0
  45. package/dist/javascript/templating/types.d.ts.map +1 -0
  46. package/dist/javascript/templating/types.js +3 -0
  47. package/dist/javascript/templating/types.js.map +1 -0
  48. package/dist/javascript/templating/utils.d.ts +118 -0
  49. package/dist/javascript/templating/utils.d.ts.map +1 -0
  50. package/dist/javascript/templating/utils.js +253 -0
  51. package/dist/javascript/templating/utils.js.map +1 -0
  52. package/dist/version.txt +1 -1
  53. package/package.json +2 -1
  54. package/src/javascript/comparator.ts +554 -3323
  55. package/src/javascript/format.ts +2 -1
  56. package/src/javascript/index.ts +1 -1
  57. package/src/javascript/templating/capture.ts +503 -0
  58. package/src/javascript/templating/comparator.ts +430 -0
  59. package/src/javascript/templating/engine.ts +252 -0
  60. package/src/javascript/templating/index.ts +60 -0
  61. package/src/javascript/templating/pattern.ts +727 -0
  62. package/src/javascript/templating/placeholder-replacement.ts +372 -0
  63. package/src/javascript/templating/rewrite.ts +95 -0
  64. package/src/javascript/templating/template.ts +326 -0
  65. package/src/javascript/templating/types.ts +300 -0
  66. package/src/javascript/templating/utils.ts +284 -0
  67. package/dist/javascript/templating.d.ts +0 -265
  68. package/dist/javascript/templating.d.ts.map +0 -1
  69. package/dist/javascript/templating.js +0 -1027
  70. package/dist/javascript/templating.js.map +0 -1
  71. package/src/javascript/templating.ts +0 -1226
@@ -0,0 +1,60 @@
1
+ /*
2
+ * Copyright 2025 the original author or authors.
3
+ * <p>
4
+ * Licensed under the Moderne Source Available License (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ * <p>
8
+ * https://docs.moderne.io/licensing/moderne-source-available-license
9
+ * <p>
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ // Export public types
18
+ export type {
19
+ VariadicOptions,
20
+ CaptureOptions,
21
+ Capture,
22
+ Any,
23
+ TemplateParam,
24
+ PatternOptions,
25
+ TemplateParameter,
26
+ TemplateOptions,
27
+ RewriteRule,
28
+ RewriteConfig
29
+ } from './types';
30
+
31
+ // Export capture functionality
32
+ export {
33
+ and,
34
+ or,
35
+ not,
36
+ capture,
37
+ any,
38
+ param,
39
+ _
40
+ } from './capture';
41
+
42
+ // Export pattern functionality
43
+ export {
44
+ Pattern,
45
+ PatternBuilder,
46
+ MatchResult,
47
+ pattern
48
+ } from './pattern';
49
+
50
+ // Export rewrite functionality
51
+ export {
52
+ rewrite
53
+ } from './rewrite';
54
+
55
+ // Export template functionality
56
+ export {
57
+ Template,
58
+ TemplateBuilder,
59
+ template
60
+ } from './template';