ts-codemod-lib 3.3.0 → 3.3.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/dist/entry-point.mjs +2 -24
- package/dist/entry-point.mjs.map +1 -1
- package/dist/functions/ast-transformers/append-as-const.mjs +330 -292
- package/dist/functions/ast-transformers/append-as-const.mjs.map +1 -1
- package/dist/functions/ast-transformers/convert-interface-to-type.mjs +85 -70
- package/dist/functions/ast-transformers/convert-interface-to-type.mjs.map +1 -1
- package/dist/functions/ast-transformers/convert-to-readonly.mjs +969 -840
- package/dist/functions/ast-transformers/convert-to-readonly.mjs.map +1 -1
- package/dist/functions/ast-transformers/enable-no-unchecked-indexed-access.mjs +276 -134
- package/dist/functions/ast-transformers/enable-no-unchecked-indexed-access.mjs.map +1 -1
- package/dist/functions/ast-transformers/index.mjs +10 -12
- package/dist/functions/ast-transformers/index.mjs.map +1 -1
- package/dist/functions/ast-transformers/readonly-transformer-helpers/compare-union-types.mjs +14 -7
- package/dist/functions/ast-transformers/readonly-transformer-helpers/compare-union-types.mjs.map +1 -1
- package/dist/functions/ast-transformers/readonly-transformer-helpers/constants.mjs +12 -15
- package/dist/functions/ast-transformers/readonly-transformer-helpers/constants.mjs.map +1 -1
- package/dist/functions/ast-transformers/readonly-transformer-helpers/group-union-types.mjs +63 -58
- package/dist/functions/ast-transformers/readonly-transformer-helpers/group-union-types.mjs.map +1 -1
- package/dist/functions/ast-transformers/readonly-transformer-helpers/index.mjs +5 -5
- package/dist/functions/ast-transformers/readonly-transformer-helpers/index.mjs.map +1 -1
- package/dist/functions/ast-transformers/readonly-transformer-helpers/readonly-context.mjs +15 -20
- package/dist/functions/ast-transformers/readonly-transformer-helpers/readonly-context.mjs.map +1 -1
- package/dist/functions/ast-transformers/replace-any-with-unknown.mjs +30 -34
- package/dist/functions/ast-transformers/replace-any-with-unknown.mjs.map +1 -1
- package/dist/functions/ast-transformers/replace-record-with-unknown-record.mjs +197 -156
- package/dist/functions/ast-transformers/replace-record-with-unknown-record.mjs.map +1 -1
- package/dist/functions/ast-transformers/transform-source-code.mjs +74 -75
- package/dist/functions/ast-transformers/transform-source-code.mjs.map +1 -1
- package/dist/functions/ast-transformers/types.mjs +2 -2
- package/dist/functions/ast-transformers/types.mjs.map +1 -1
- package/dist/functions/constants/ignore-comment-text.mjs +11 -13
- package/dist/functions/constants/ignore-comment-text.mjs.map +1 -1
- package/dist/functions/constants/index.mjs +2 -2
- package/dist/functions/constants/index.mjs.map +1 -1
- package/dist/functions/functions/has-disable-next-line-comment.mjs +67 -38
- package/dist/functions/functions/has-disable-next-line-comment.mjs.map +1 -1
- package/dist/functions/functions/index.mjs +11 -11
- package/dist/functions/functions/index.mjs.map +1 -1
- package/dist/functions/functions/is-as-const-node.mjs +25 -20
- package/dist/functions/functions/is-as-const-node.mjs.map +1 -1
- package/dist/functions/functions/is-atomic-type-node.mjs +245 -25
- package/dist/functions/functions/is-atomic-type-node.mjs.map +1 -1
- package/dist/functions/functions/is-conditional-type-distribution-guard.mjs +34 -13
- package/dist/functions/functions/is-conditional-type-distribution-guard.mjs.map +1 -1
- package/dist/functions/functions/is-readonly-node.mjs +120 -14
- package/dist/functions/functions/is-readonly-node.mjs.map +1 -1
- package/dist/functions/functions/is-spread-parameter-node.mjs +5 -6
- package/dist/functions/functions/is-spread-parameter-node.mjs.map +1 -1
- package/dist/functions/functions/remove-parentheses.mjs +4 -4
- package/dist/functions/functions/remove-parentheses.mjs.map +1 -1
- package/dist/functions/functions/should-avoid-parentheses-for-readonly.mjs +23 -9
- package/dist/functions/functions/should-avoid-parentheses-for-readonly.mjs.map +1 -1
- package/dist/functions/functions/unwrap-readonly.mjs +3 -4
- package/dist/functions/functions/unwrap-readonly.mjs.map +1 -1
- package/dist/functions/functions/wrap-with-parentheses.d.mts.map +1 -1
- package/dist/functions/functions/wrap-with-parentheses.mjs +54 -29
- package/dist/functions/functions/wrap-with-parentheses.mjs.map +1 -1
- package/dist/functions/index.mjs +5 -24
- package/dist/functions/index.mjs.map +1 -1
- package/dist/functions/utils/index.mjs +2 -2
- package/dist/functions/utils/index.mjs.map +1 -1
- package/dist/functions/utils/replace-with-debug.mjs +4 -6
- package/dist/functions/utils/replace-with-debug.mjs.map +1 -1
- package/dist/index.mjs +2 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -12
- package/src/functions/ast-transformers/convert-to-readonly.test.mts +10 -1
- package/src/functions/ast-transformers/enable-no-unchecked-indexed-access.test.mts +76 -22
- package/src/functions/functions/wrap-with-parentheses.mts +5 -2
|
@@ -1,62 +1,67 @@
|
|
|
1
1
|
import * as tsm from 'ts-morph';
|
|
2
|
-
import '
|
|
3
|
-
|
|
4
|
-
import { isReadonlyTupleOrArrayTypeNode, isReadonlyTypeReferenceNode } from '../../functions/is-readonly-node.mjs';
|
|
5
|
-
import { removeParentheses } from '../../functions/remove-parentheses.mjs';
|
|
2
|
+
import { isAtomicTypeNode, isReadonlyTupleOrArrayTypeNode, isReadonlyTypeReferenceNode, removeParentheses, } from '../../functions/index.mjs';
|
|
3
|
+
export const groupUnionIntersectionTypes = (
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
5
|
+
types) => {
|
|
6
|
+
const mut_grouped = {
|
|
7
|
+
primitives: undefined,
|
|
8
|
+
arraysAndTuples: undefined,
|
|
9
|
+
typeLiterals: undefined,
|
|
10
|
+
others: undefined,
|
|
11
|
+
};
|
|
12
|
+
for (const [i, t_] of types.entries()) {
|
|
13
|
+
const t = removeParentheses(t_);
|
|
14
|
+
|
|
15
|
+
if (isAtomicTypeNode(t)) {
|
|
16
|
+
if (mut_grouped.primitives === undefined) {
|
|
17
|
+
mut_grouped.primitives = {
|
|
18
|
+
firstPosition: i,
|
|
19
|
+
nodes: [t],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
mut_grouped.primitives.nodes.push(t);
|
|
24
|
+
}
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
if (t.isKind(tsm.SyntaxKind.ArrayType) ||
|
|
28
|
+
t.isKind(tsm.SyntaxKind.TupleType) ||
|
|
29
|
+
isReadonlyTupleOrArrayTypeNode(t)) {
|
|
30
|
+
if (mut_grouped.arraysAndTuples === undefined) {
|
|
31
|
+
mut_grouped.arraysAndTuples = {
|
|
32
|
+
firstPosition: i,
|
|
33
|
+
nodes: [t],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
mut_grouped.arraysAndTuples.nodes.push(t);
|
|
38
|
+
}
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
if (t.isKind(tsm.SyntaxKind.TypeLiteral) ||
|
|
42
|
+
isReadonlyTypeReferenceNode(t)) {
|
|
43
|
+
if (mut_grouped.typeLiterals === undefined) {
|
|
44
|
+
mut_grouped.typeLiterals = {
|
|
45
|
+
firstPosition: i,
|
|
46
|
+
nodes: [t],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
mut_grouped.typeLiterals.nodes.push(t);
|
|
51
|
+
}
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (mut_grouped.others === undefined) {
|
|
56
|
+
mut_grouped.others = {
|
|
57
|
+
firstPosition: i,
|
|
58
|
+
nodes: [t],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
mut_grouped.others.nodes.push(t);
|
|
63
|
+
}
|
|
56
64
|
}
|
|
57
|
-
|
|
58
|
-
return mut_grouped;
|
|
65
|
+
return mut_grouped;
|
|
59
66
|
};
|
|
60
|
-
|
|
61
|
-
export { groupUnionIntersectionTypes };
|
|
62
|
-
//# sourceMappingURL=group-union-types.mjs.map
|
|
67
|
+
//# sourceMappingURL=group-union-types.mjs.map
|
package/dist/functions/ast-transformers/readonly-transformer-helpers/group-union-types.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group-union-types.mjs","sources":["../../../../src/functions/ast-transformers/readonly-transformer-helpers/group-union-types.mts"],"
|
|
1
|
+
{"version":3,"file":"group-union-types.mjs","sourceRoot":"","sources":["../../../../src/functions/ast-transformers/readonly-transformer-helpers/group-union-types.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EACL,gBAAgB,EAChB,8BAA8B,EAC9B,2BAA2B,EAC3B,iBAAiB,GAKlB,MAAM,2BAA2B,CAAC;AAEnC,MAAM,CAAC,MAAM,2BAA2B,GAAG;AACzC,8EAA8E;AAC9E,KAA8B,EAkC7B,EAAE;IACH,MAAM,WAAW,GAiCb;QACF,UAAU,EAAE,SAAS;QACrB,eAAe,EAAE,SAAS;QAC1B,YAAY,EAAE,SAAS;QACvB,MAAM,EAAE,SAAS;KAClB,CAAC;IAEF,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;QACtC,MAAM,CAAC,GAAG,iBAAiB,CAAC,EAAE,CAAC,CA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,CAAC;QAED,8BAA8B;QAC9B,IAAI,WAAW,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACrC,WAAW,CAAC,MAAM,GAAG;gBACnB,aAAa,EAAE,CAAC;gBAChB,KAAK,EAAE,CAAC,CAAC,CAAC;aACF,CAAC;QACb,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnC,CAAC;IACH,CAAC;IAED,OAAO,WAAW,CAAC;AACrB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from './compare-union-types.mjs';
|
|
2
|
+
export * from './constants.mjs';
|
|
3
|
+
export * from './group-union-types.mjs';
|
|
4
|
+
export * from './readonly-context.mjs';
|
|
5
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/functions/ast-transformers/readonly-transformer-helpers/index.mts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import { SafeUint, match } from 'ts-data-forge';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
})
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export { nextReadonlyContext };
|
|
21
|
-
//# sourceMappingURL=readonly-context.mjs.map
|
|
2
|
+
export const nextReadonlyContext = ({ currentReadonlyContext: curr, nextReadonlyContextType: next, indexedAccessDepthChange = 'infinity', }) => curr.type === 'DeepReadonly'
|
|
3
|
+
? {
|
|
4
|
+
type: 'DeepReadonly',
|
|
5
|
+
indexedAccessDepth: SafeUint.MAX_VALUE,
|
|
6
|
+
}
|
|
7
|
+
: {
|
|
8
|
+
type: next,
|
|
9
|
+
indexedAccessDepth: match(indexedAccessDepthChange, {
|
|
10
|
+
decr: SafeUint.sub(curr.indexedAccessDepth, 1),
|
|
11
|
+
keep: curr.indexedAccessDepth,
|
|
12
|
+
incr: SafeUint.add(curr.indexedAccessDepth, 1),
|
|
13
|
+
infinity: SafeUint.MAX_VALUE,
|
|
14
|
+
}),
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=readonly-context.mjs.map
|
package/dist/functions/ast-transformers/readonly-transformer-helpers/readonly-context.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readonly-context.mjs","sources":["../../../../src/functions/ast-transformers/readonly-transformer-helpers/readonly-context.mts"],"
|
|
1
|
+
{"version":3,"file":"readonly-context.mjs","sourceRoot":"","sources":["../../../../src/functions/ast-transformers/readonly-transformer-helpers/readonly-context.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAyBhD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAGjC,EACA,sBAAsB,EAAE,IAAI,EAC5B,uBAAuB,EAAE,IAAI,EAC7B,wBAAwB,GAAG,UAAU,GAiBtC,EAGE,EAAE,CACH,IAAI,CAAC,IAAI,KAAK,cAAc;IAC1B,CAAC,CAAE;QACC,IAAI,EAAE,cAAc;QACpB,kBAAkB,EAAE,QAAQ,CAAC,SAAS;KAC7B;IACb,CAAC,CAAE;QACC,IAAI,EAAE,IAAI;QACV,kBAAkB,EAAE,KAAK,CAAC,wBAAwB,EAAE;YAClD,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;YAC9C,IAAI,EAAE,IAAI,CAAC,kBAAkB;YAC7B,IAAI,EAAE,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC;YAC9C,QAAQ,EAAE,QAAQ,CAAC,SAAS;SAC7B,CAAC;KACO,CAAC"}
|
|
@@ -1,39 +1,35 @@
|
|
|
1
1
|
import * as tsm from 'ts-morph';
|
|
2
|
-
import { hasDisableNextLineComment } from '../functions/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
for (const node of sourceAst.getChildren()) {
|
|
12
|
-
transformNode(node);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
2
|
+
import { hasDisableNextLineComment, isSpreadNamedTupleMemberNode, isSpreadParameterNode, } from '../functions/index.mjs';
|
|
3
|
+
const TRANSFORMER_NAME = 'replace-any-with-unknown';
|
|
4
|
+
export const replaceAnyWithUnknownTransformer = () => ({
|
|
5
|
+
name: TRANSFORMER_NAME,
|
|
6
|
+
transform: (sourceAst) => {
|
|
7
|
+
for (const node of sourceAst.getChildren()) {
|
|
8
|
+
transformNode(node);
|
|
9
|
+
}
|
|
10
|
+
},
|
|
15
11
|
});
|
|
16
12
|
const transformNode = (node) => {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
if (node.isKind(tsm.SyntaxKind.AnyKeyword)) {
|
|
22
|
-
const anyKeywordNode = node;
|
|
23
|
-
const parent = anyKeywordNode.getParent();
|
|
24
|
-
if (parent !== void 0 && // `(...args: any) => any` -> `(...args: unknown[]) => any`
|
|
25
|
-
(isSpreadParameterNode(parent) || // `[name: E0, ...args: any)]` -> `[name: E0, ...args: unknown[]]`
|
|
26
|
-
isSpreadNamedTupleMemberNode(parent))) {
|
|
27
|
-
anyKeywordNode.replaceWithText("readonly unknown[]");
|
|
28
|
-
return;
|
|
13
|
+
if (hasDisableNextLineComment(node, TRANSFORMER_NAME)) {
|
|
14
|
+
console.debug('skipped by disable-next-line comment');
|
|
15
|
+
return;
|
|
29
16
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
};
|
|
17
|
+
if (node.isKind(tsm.SyntaxKind.AnyKeyword)) {
|
|
18
|
+
const anyKeywordNode = node;
|
|
19
|
+
const parent = anyKeywordNode.getParent();
|
|
20
|
+
if (parent !== undefined &&
|
|
21
|
+
|
|
22
|
+
(isSpreadParameterNode(parent) ||
|
|
37
23
|
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
isSpreadNamedTupleMemberNode(parent))) {
|
|
25
|
+
anyKeywordNode.replaceWithText('readonly unknown[]');
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
anyKeywordNode.replaceWithText('unknown');
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
for (const child of node.getChildren()) {
|
|
32
|
+
transformNode(child);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=replace-any-with-unknown.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replace-any-with-unknown.mjs","sources":["../../../src/functions/ast-transformers/replace-any-with-unknown.mts"],"
|
|
1
|
+
{"version":3,"file":"replace-any-with-unknown.mjs","sourceRoot":"","sources":["../../../src/functions/ast-transformers/replace-any-with-unknown.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,EACL,yBAAyB,EACzB,4BAA4B,EAC5B,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAGhC,MAAM,gBAAgB,GAAG,0BAA0B,CAAC;AAEpD,MAAM,CAAC,MAAM,gCAAgC,GAAG,GAAuB,EAAE,CACvE,CAAC;IACC,IAAI,EAAE,gB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