@openrewrite/recipes-nodejs 0.34.0-20251117-110757 → 0.34.0-20251117-150614
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/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/migrate/crypto-constructors.d.ts +9 -0
- package/dist/migrate/crypto-constructors.d.ts.map +1 -0
- package/dist/migrate/crypto-constructors.js +80 -0
- package/dist/migrate/crypto-constructors.js.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/migrate/crypto-constructors.ts +71 -0
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,cAAc,EAAC,MAAM,sBAAsB,CAAC;AAKpD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,cAAc,QAKhD"}
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,11 @@ exports.activate = activate;
|
|
|
4
4
|
const util_type_checking_1 = require("./migrate/util-type-checking");
|
|
5
5
|
const buffer_slice_1 = require("./migrate/buffer-slice");
|
|
6
6
|
const process_features_tls_1 = require("./migrate/process-features-tls");
|
|
7
|
+
const crypto_constructors_1 = require("./migrate/crypto-constructors");
|
|
7
8
|
function activate(registry) {
|
|
8
9
|
registry.register(util_type_checking_1.UseNativeTypeCheckingMethods);
|
|
9
10
|
registry.register(buffer_slice_1.ReplaceDeprecatedBufferSlice);
|
|
10
11
|
registry.register(process_features_tls_1.RemoveUsageOfProcessFeaturesTlsConstants);
|
|
12
|
+
registry.register(crypto_constructors_1.ReplaceCryptoConstructors);
|
|
11
13
|
}
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAOA,4BAKC;AAZD,qEAA0E;AAC1E,yDAAoE;AAEpE,yEAAwF;AACxF,uEAAwE;AAGxE,SAAgB,QAAQ,CAAC,QAAwB;IAC7C,QAAQ,CAAC,QAAQ,CAAC,iDAA4B,CAAC,CAAC;IAChD,QAAQ,CAAC,QAAQ,CAAC,2CAA4B,CAAC,CAAC;IAChD,QAAQ,CAAC,QAAQ,CAAC,+DAAwC,CAAC,CAAC;IAC5D,QAAQ,CAAC,QAAQ,CAAC,+CAAyB,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExecutionContext, Recipe, TreeVisitor } from "@openrewrite/rewrite";
|
|
2
|
+
export declare class ReplaceCryptoConstructors extends Recipe {
|
|
3
|
+
readonly name = "org.openrewrite.node.migrate.crypto.replace-hash-constructor";
|
|
4
|
+
readonly displayName: string;
|
|
5
|
+
readonly description: string;
|
|
6
|
+
readonly tags: string[];
|
|
7
|
+
editor(): Promise<TreeVisitor<any, ExecutionContext>>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=crypto-constructors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-constructors.d.ts","sourceRoot":"","sources":["../../src/migrate/crypto-constructors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,gBAAgB,EAAE,MAAM,EAAE,WAAW,EAAC,MAAM,sBAAsB,CAAC;AAUlF,qBAAa,yBAA0B,SAAQ,MAAM;IACjD,QAAQ,CAAC,IAAI,kEAAiE;IAC9E,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAyF;IACrH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAA2M;IACvO,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAA0B;IAE3C,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,gBAAgB,CAAC,CAAC;CAsD9D"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ReplaceCryptoConstructors = void 0;
|
|
13
|
+
const rewrite_1 = require("@openrewrite/rewrite");
|
|
14
|
+
const javascript_1 = require("@openrewrite/rewrite/javascript");
|
|
15
|
+
const java_1 = require("@openrewrite/rewrite/java");
|
|
16
|
+
class ReplaceCryptoConstructors extends rewrite_1.Recipe {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.name = "org.openrewrite.node.migrate.crypto.replace-hash-constructor";
|
|
20
|
+
this.displayName = "Replace deprecated `new crypto.Hash()` and `new crypto.Hmac()` with factory methods";
|
|
21
|
+
this.description = "Replace deprecated `new crypto.Hash(algorithm)` constructor calls with `crypto.createHash(algorithm)` and `new crypto.Hmac(algorithm, key)` with `crypto.createHmac(algorithm, key)` factory methods.";
|
|
22
|
+
this.tags = ["DEP0179", "DEP0181"];
|
|
23
|
+
}
|
|
24
|
+
editor() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return new class extends javascript_1.JavaScriptVisitor {
|
|
27
|
+
visitNewClass(newClass, p) {
|
|
28
|
+
const _super = Object.create(null, {
|
|
29
|
+
visitNewClass: { get: () => super.visitNewClass }
|
|
30
|
+
});
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
const clazz = newClass.class;
|
|
34
|
+
const args = (_a = newClass.arguments) === null || _a === void 0 ? void 0 : _a.elements;
|
|
35
|
+
if (!args || (args.length !== 1 && args.length !== 2)) {
|
|
36
|
+
return _super.visitNewClass.call(this, newClass, p);
|
|
37
|
+
}
|
|
38
|
+
const firstArg = args[0].element;
|
|
39
|
+
if (clazz && clazz.kind === java_1.J.Kind.FieldAccess) {
|
|
40
|
+
const fieldAccess = clazz;
|
|
41
|
+
const target = fieldAccess.target;
|
|
42
|
+
if (target.kind === java_1.J.Kind.Identifier
|
|
43
|
+
&& ((_b = clazz.type) === null || _b === void 0 ? void 0 : _b.kind) == java_1.Type.Kind.Class) {
|
|
44
|
+
const fullyQualifiedName = clazz.type.fullyQualifiedName;
|
|
45
|
+
const cryptoIdentifier = target;
|
|
46
|
+
if (fullyQualifiedName == "crypto.Hash" && args.length === 1) {
|
|
47
|
+
return yield (0, javascript_1.template) `${cryptoIdentifier}.createHash(${firstArg})`.apply(this.cursor, newClass);
|
|
48
|
+
}
|
|
49
|
+
else if (fullyQualifiedName == "crypto.Hmac" && args.length === 2) {
|
|
50
|
+
const secondArg = args[1].element;
|
|
51
|
+
return yield (0, javascript_1.template) `${cryptoIdentifier}.createHmac(${firstArg}, ${secondArg})`.apply(this.cursor, newClass);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
if (clazz && clazz.kind === java_1.J.Kind.Identifier) {
|
|
56
|
+
const constructorType = newClass.constructorType;
|
|
57
|
+
if ((constructorType === null || constructorType === void 0 ? void 0 : constructorType.declaringType.kind) == java_1.Type.Kind.Class
|
|
58
|
+
&& constructorType.declaringType.fullyQualifiedName == "crypto") {
|
|
59
|
+
if (constructorType.name == "Hash" && args.length === 1) {
|
|
60
|
+
(0, javascript_1.maybeAddImport)(this, { target: "crypto", member: "createHash", onlyIfReferenced: false });
|
|
61
|
+
(0, javascript_1.maybeRemoveImport)(this, "crypto", "Hash");
|
|
62
|
+
return yield (0, javascript_1.template) `createHash(${firstArg})`.apply(this.cursor, newClass);
|
|
63
|
+
}
|
|
64
|
+
else if (constructorType.name == "Hmac" && args.length === 2) {
|
|
65
|
+
const secondArg = args[1].element;
|
|
66
|
+
(0, javascript_1.maybeAddImport)(this, { target: "crypto", member: "createHmac", onlyIfReferenced: false });
|
|
67
|
+
(0, javascript_1.maybeRemoveImport)(this, "crypto", "Hmac");
|
|
68
|
+
return yield (0, javascript_1.template) `createHmac(${firstArg}, ${secondArg})`.apply(this.cursor, newClass);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return _super.visitNewClass.call(this, newClass, p);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.ReplaceCryptoConstructors = ReplaceCryptoConstructors;
|
|
80
|
+
//# sourceMappingURL=crypto-constructors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"crypto-constructors.js","sourceRoot":"","sources":["../../src/migrate/crypto-constructors.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAkF;AAClF,gEAMyC;AACzC,oDAA8D;AAE9D,MAAa,yBAA0B,SAAQ,gBAAM;IAArD;;QACa,SAAI,GAAG,8DAA8D,CAAA;QACrE,gBAAW,GAAW,qFAAqF,CAAC;QAC5G,gBAAW,GAAW,uMAAuM,CAAC;QAC9N,SAAI,GAAa,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;IAwDrD,CAAC;IAtDS,MAAM;;YACR,OAAO,IAA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AM,EAAE,YAAY,EAAE,gBAAgB,EAAE,KAAK,EAAC,CAAC,CAAC;oCACxF,IAAA,8BAAiB,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;oCAC1C,OAAO,MAAM,IAAA,qBAAQ,EAAA,cAAc,QAAQ,KAAK,SAAS,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;gCAC9F,CAAC;4BACL,CAAC;wBACL,CAAC;wBAED,OAAO,OAAM,aAAa,YAAC,QAAQ,EAAE,CAAC,EAAE;oBAC5C,CAAC;iBAAA;aACJ,CAAC;QACN,CAAC;KAAA;CACJ;AA5DD,8DA4DC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrewrite/recipes-nodejs",
|
|
3
|
-
"version": "0.34.0-20251117-
|
|
3
|
+
"version": "0.34.0-20251117-150614",
|
|
4
4
|
"license": "Moderne Source Available License",
|
|
5
5
|
"description": "OpenRewrite recipes for Node.js library migrations.",
|
|
6
6
|
"homepage": "https://github.com/moderneinc/rewrite-node",
|
package/src/index.ts
CHANGED
|
@@ -2,10 +2,12 @@ import {UseNativeTypeCheckingMethods} from "./migrate/util-type-checking";
|
|
|
2
2
|
import {ReplaceDeprecatedBufferSlice} from "./migrate/buffer-slice";
|
|
3
3
|
import {RecipeRegistry} from "@openrewrite/rewrite";
|
|
4
4
|
import {RemoveUsageOfProcessFeaturesTlsConstants} from "./migrate/process-features-tls";
|
|
5
|
+
import {ReplaceCryptoConstructors} from "./migrate/crypto-constructors";
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
export function activate(registry: RecipeRegistry) {
|
|
8
9
|
registry.register(UseNativeTypeCheckingMethods);
|
|
9
10
|
registry.register(ReplaceDeprecatedBufferSlice);
|
|
10
11
|
registry.register(RemoveUsageOfProcessFeaturesTlsConstants);
|
|
12
|
+
registry.register(ReplaceCryptoConstructors);
|
|
11
13
|
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {check, ExecutionContext, Recipe, TreeVisitor} from "@openrewrite/rewrite";
|
|
2
|
+
import {
|
|
3
|
+
JavaScriptVisitor,
|
|
4
|
+
maybeAddImport,
|
|
5
|
+
maybeRemoveImport,
|
|
6
|
+
template,
|
|
7
|
+
usesType
|
|
8
|
+
} from "@openrewrite/rewrite/javascript";
|
|
9
|
+
import {Expression, J, Type} from "@openrewrite/rewrite/java";
|
|
10
|
+
|
|
11
|
+
export class ReplaceCryptoConstructors extends Recipe {
|
|
12
|
+
readonly name = "org.openrewrite.node.migrate.crypto.replace-hash-constructor"
|
|
13
|
+
readonly displayName: string = "Replace deprecated `new crypto.Hash()` and `new crypto.Hmac()` with factory methods";
|
|
14
|
+
readonly description: string = "Replace deprecated `new crypto.Hash(algorithm)` constructor calls with `crypto.createHash(algorithm)` and `new crypto.Hmac(algorithm, key)` with `crypto.createHmac(algorithm, key)` factory methods.";
|
|
15
|
+
readonly tags: string[] = ["DEP0179", "DEP0181"];
|
|
16
|
+
|
|
17
|
+
async editor(): Promise<TreeVisitor<any, ExecutionContext>> {
|
|
18
|
+
return new class extends JavaScriptVisitor<ExecutionContext> {
|
|
19
|
+
protected async visitNewClass(newClass: J.NewClass, p: ExecutionContext): Promise<J | undefined> {
|
|
20
|
+
const clazz = newClass.class;
|
|
21
|
+
const args = newClass.arguments?.elements;
|
|
22
|
+
|
|
23
|
+
if (!args || (args.length !== 1 && args.length !== 2)) {
|
|
24
|
+
return super.visitNewClass(newClass, p);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const firstArg = args[0].element;
|
|
28
|
+
|
|
29
|
+
// Case 1: new crypto.Hash(...) or new crypto.Hmac(...) or new identifier.Hash(...) or new identifier.Hmac(...)
|
|
30
|
+
if (clazz && clazz.kind === J.Kind.FieldAccess) {
|
|
31
|
+
const fieldAccess = clazz as J.FieldAccess;
|
|
32
|
+
const target = fieldAccess.target;
|
|
33
|
+
|
|
34
|
+
if (target.kind === J.Kind.Identifier
|
|
35
|
+
&& (clazz as J.FieldAccess).type?.kind == Type.Kind.Class) {
|
|
36
|
+
const fullyQualifiedName = ((clazz as J.FieldAccess).type as Type.Class).fullyQualifiedName;
|
|
37
|
+
const cryptoIdentifier = target as J.Identifier;
|
|
38
|
+
|
|
39
|
+
if (fullyQualifiedName == "crypto.Hash" && args.length === 1) {
|
|
40
|
+
return await template`${cryptoIdentifier}.createHash(${firstArg})`.apply(this.cursor, newClass);
|
|
41
|
+
} else if (fullyQualifiedName == "crypto.Hmac" && args.length === 2) {
|
|
42
|
+
const secondArg = args[1].element;
|
|
43
|
+
return await template`${cryptoIdentifier}.createHmac(${firstArg}, ${secondArg})`.apply(this.cursor, newClass);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Case 2: new Hash(...) or new Hmac(...) - direct import
|
|
49
|
+
if (clazz && clazz.kind === J.Kind.Identifier) {
|
|
50
|
+
const constructorType = newClass.constructorType;
|
|
51
|
+
if (constructorType?.declaringType.kind == Type.Kind.Class
|
|
52
|
+
&& (constructorType.declaringType as Type.Class).fullyQualifiedName == "crypto") {
|
|
53
|
+
|
|
54
|
+
if (constructorType.name == "Hash" && args.length === 1) {
|
|
55
|
+
maybeAddImport(this, {target: "crypto", member: "createHash", onlyIfReferenced: false});
|
|
56
|
+
maybeRemoveImport(this, "crypto", "Hash");
|
|
57
|
+
return await template`createHash(${firstArg})`.apply(this.cursor, newClass);
|
|
58
|
+
} else if (constructorType.name == "Hmac" && args.length === 2) {
|
|
59
|
+
const secondArg = args[1].element;
|
|
60
|
+
maybeAddImport(this, {target: "crypto", member: "createHmac", onlyIfReferenced: false});
|
|
61
|
+
maybeRemoveImport(this, "crypto", "Hmac");
|
|
62
|
+
return await template`createHmac(${firstArg}, ${secondArg})`.apply(this.cursor, newClass);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return super.visitNewClass(newClass, p);
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}
|