putout 42.10.0 → 42.10.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.
package/ChangeLog CHANGED
@@ -1,3 +1,32 @@
1
+ 2026.07.26, v42.10.2
2
+
3
+ fix:
4
+ - 6f2709e8c putout: config: convert-quotes-to-backticks: yaml: disable
5
+ - e2df4cd4f @putout/plugin-tape: move-out-result-from-assertion -> extract-result-from-assertion
6
+
7
+ feature:
8
+ - 25268c776 @putout/plugin-try-catch: assign
9
+ - 17ecc13d4 @putout/plugin-extract-result-from-assertion: object
10
+ - 91b0f1728 @putout/plugin-tape: convert-equal-to-deep-equal: no-t
11
+ - 35c7df4ef @putout/plugin-tape: add-args: async
12
+ - e04abf16f @putout/plugin-tape: extract-result-from-assertion: no-t
13
+ - 48a84e7fc @putout/plugin-tape: extract-result-from-assertion: expected: array
14
+
15
+ 2026.07.23, v42.10.1
16
+
17
+ fix:
18
+ - 79ad1c072 @putout/plugin-apply-push: package
19
+
20
+ feature:
21
+ - 149ea157a putout: types: improve
22
+ - 9c0640de2 @putout/plugin-tape: remove-t-from-async
23
+ - 9c10efb53 @putout/plugin-react: remove-useless-memoizations: add
24
+ - 2ea143392 @putout/plugin-optional-chaining: simplify
25
+ - 7a1397ed0 @putout/processor-docker: apply bind
26
+ - d6f2ea8de @putout/eslint-flat: @eslint/config-helpers v0.7.0
27
+ - f5fb6a854 @putout/plugin-types: apply-number: add
28
+ - d91bf83de @putout/plugin-react-router: v7-apply-memory-router: add
29
+
1
30
  2026.07.19, v42.10.0
2
31
 
3
32
  fix:
package/lib/index.d.ts CHANGED
@@ -45,10 +45,20 @@ export type TransformOptions = {
45
45
 
46
46
  type Options = ParseOptions & TransformOptions;
47
47
 
48
- export default function putout(source: string, options: Options): PutoutReturn;
48
+ export interface Putout {
49
+ (source: string, options: Options): PutoutReturn;
50
+ parse(source: string, options?: ParseOptions): Node;
51
+ print(ast: Node, options?: PrinterOptions): string;
52
+ }
53
+
54
+ export const putout: Putout;
55
+
56
+ export default putout;
49
57
 
50
58
  export function putoutAsync(source: string, options: Options): Promise<PutoutReturn>;
51
59
 
60
+ export function parse(source: string, options?: ParseOptions): Node;
61
+
52
62
  export function print(ast: Node, options?: PrinterOptions): string;
53
63
 
54
64
  export interface Place {
@@ -61,8 +71,11 @@ export interface Place {
61
71
  }
62
72
 
63
73
  export function transform(ast: Node, options?: TransformOptions): Place[];
74
+
64
75
  export function transformAsync(ast: Node, options?: TransformOptions): Promise<Place[]>;
76
+
65
77
  export function findPlaces(ast: Node, options?: TransformOptions): Place[];
78
+
66
79
  export function findPlacesAsync(ast: Node, options?: TransformOptions): Promise<Place[]>;
67
80
 
68
81
  export function codeframe(args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "putout",
3
- "version": "42.10.0",
3
+ "version": "42.10.2",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊 Pluggable and configurable code transformer with built-in ESLint, Babel and support of js, jsx, typescript, flow, markdown, yaml and json",
package/putout.json CHANGED
@@ -90,7 +90,7 @@
90
90
  "*.svelte": {
91
91
  "variables/remove-unused": "off"
92
92
  },
93
- "{Dockerfile*,*rc,*.{json,yml}}": {
93
+ "{Dockerfile*,*rc,*.{json,yml,yaml}}": {
94
94
  "convert-quotes-to-backticks": "off",
95
95
  "remove-useless-escape": "off",
96
96
  "math/apply-numeric-separators": "off"