putout 42.10.0 → 42.10.1

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,18 @@
1
+ 2026.07.23, v42.10.1
2
+
3
+ fix:
4
+ - 79ad1c072 @putout/plugin-apply-push: package
5
+
6
+ feature:
7
+ - 149ea157a putout: types: improve
8
+ - 9c0640de2 @putout/plugin-tape: remove-t-from-async
9
+ - 9c10efb53 @putout/plugin-react: remove-useless-memoizations: add
10
+ - 2ea143392 @putout/plugin-optional-chaining: simplify
11
+ - 7a1397ed0 @putout/processor-docker: apply bind
12
+ - d6f2ea8de @putout/eslint-flat: @eslint/config-helpers v0.7.0
13
+ - f5fb6a854 @putout/plugin-types: apply-number: add
14
+ - d91bf83de @putout/plugin-react-router: v7-apply-memory-router: add
15
+
1
16
  2026.07.19, v42.10.0
2
17
 
3
18
  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.1",
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",