putout 42.9.1 → 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,43 @@
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
+
16
+ 2026.07.19, v42.10.0
17
+
18
+ fix:
19
+ - 00f32d2d3 @putout/plugin-github: remove-empty-needs: string: exclude
20
+ - f50fa128c @putout/plugin-github: add-madrun-init: exclude when exists
21
+ - 494ae63b4 @putout/plugin-tape: apply-assetions-order: no t.__(__args) before
22
+ - e8c359733 @putout/plugin-tape: apply-assertions-order: no prev: exclude
23
+
24
+ feature:
25
+ - b6ea0aa49 @putout/plugin-apply-push: add
26
+ - c4e80d572 @putout/plugin-tape: apply-stub: no-var: include
27
+ - 567bcd8fa @putout/plugin-minify: merge-assignment-expressions: array: exclude (coderaiser/minify#147)
28
+ - a7f483856 @putout/plugin-github: set-message-of-commit-fixes: deploy: exclude
29
+ - 4ddd09cfb @putout/plugin-tape: apply-stringify: add
30
+ - 139801c66 @putout/plugin-declare: object: defineProperty: top (putoutjs/minify#32)
31
+ - 9a5c7cef4 @putout/operator-declare: top (putoutjs/minify#32)
32
+ - 847093045 @putout/plugin-github: remove-empty-needs
33
+ - 09d2adeb3 @putout/plugin-github: convert-typos-to-typos-ai: parse-step: move out
34
+ - 63d5a33bb @putout/engine-parser: hermes-parser v0.37.0
35
+ - fe4a2574f @putout/plugin-tape: move-out-expected-from-assertion: improve¬
36
+ - 1e6be891c @putout/plugin-tape: move-out-result-from-assertion
37
+ - 6de924c9d @putout/plugin-tape: apply-assertions-order
38
+ - ea8f50c74 @putout/plugin-putout: add-path-arg-to-fix: not-member
39
+ - d272ef2f6 @putout/plugin-nextjs: drop support of 🐊 < 42
40
+
1
41
  2026.07.13, v42.9.1
2
42
 
3
43
  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.9.1",
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",
@@ -98,6 +98,7 @@
98
98
  "@putout/plugin-apply-flat-map": "^3.0.0",
99
99
  "@putout/plugin-apply-global-this": "^2.0.0",
100
100
  "@putout/plugin-apply-overrides": "^3.0.0",
101
+ "@putout/plugin-apply-push": "^1.0.0",
101
102
  "@putout/plugin-apply-shorthand-properties": "^7.0.0",
102
103
  "@putout/plugin-apply-starts-with": "^2.0.0",
103
104
  "@putout/plugin-apply-template-literals": "^5.0.0",
package/putout.json CHANGED
@@ -216,6 +216,7 @@
216
216
  "apply-dot-notation",
217
217
  "apply-flat-map",
218
218
  "apply-global-this",
219
+ "apply-push",
219
220
  "apply-shorthand-properties",
220
221
  "apply-starts-with",
221
222
  "apply-template-literals",