Skip to content

Commit d240299

Browse files
committed
fix(init-templates): upgrade jest to remove one deprecation warning
Via a long transitive dependency chain, jest 29 depends on a package called `inflight` that throws up a warning on install: ``` npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. ``` Upgrade the package.json we generate upon `cdk init` to jest 30 so that customers don't see this warning. Even though everything works fine and this module is being used for testing so even if it leaked it wouldn't matter, it still gives them bad vibes. We still have the following installation warning: ``` npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported ``` This dependency comes via: ``` jest 30.2 -> @jest/transform 30.2 -> babel-plugin-instanbul 7.0.1 -> test-exclude 6.0 -> glob 7.2.3 ``` So still present in the latest jest, and there's nothing we can do about it.
1 parent f4f9555 commit d240299

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/aws-cdk/lib/init-templates/app/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"aws-cdk": "%cdk-cli-version%",
14-
"jest": "^29.7.0"
14+
"jest": "^30"
1515
},
1616
"dependencies": {
1717
"aws-cdk-lib": "%cdk-version%",

packages/aws-cdk/lib/init-templates/app/typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"cdk": "cdk"
1212
},
1313
"devDependencies": {
14-
"@types/jest": "^29.5.14",
14+
"@types/jest": "^30",
1515
"@types/node": "^24.10.1",
16-
"jest": "^29.7.0",
17-
"ts-jest": "^29.2.5",
16+
"jest": "^30",
17+
"ts-jest": "^29",
1818
"aws-cdk": "%cdk-cli-version%",
1919
"ts-node": "^10.9.2",
2020
"typescript": "~5.9.3"

packages/aws-cdk/lib/init-templates/lib/typescript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
"test": "jest"
1010
},
1111
"devDependencies": {
12-
"@types/jest": "^29.5.14",
12+
"@types/jest": "^30",
1313
"@types/node": "^20.19.24",
1414
"aws-cdk-lib": "%cdk-version%",
1515
"constructs": "%constructs-version%",
16-
"jest": "^29.7.0",
17-
"ts-jest": "^29.2.5",
16+
"jest": "^29",
17+
"ts-jest": "^30",
1818
"typescript": "~5.9.3"
1919
},
2020
"peerDependencies": {
2121
"aws-cdk-lib": "%cdk-version%",
2222
"constructs": "%constructs-version%"
2323
}
24-
}
24+
}

packages/aws-cdk/lib/init-templates/sample-app/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"devDependencies": {
1313
"aws-cdk": "%cdk-cli-version%",
14-
"jest": "^29.7.0"
14+
"jest": "^30"
1515
},
1616
"dependencies": {
1717
"aws-cdk-lib": "%cdk-version%",

packages/aws-cdk/lib/init-templates/sample-app/typescript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"cdk": "cdk"
1212
},
1313
"devDependencies": {
14-
"@types/jest": "^29.5.14",
14+
"@types/jest": "^30",
1515
"@types/node": "^24.10.1",
16-
"jest": "^29.7.0",
17-
"ts-jest": "^29.2.5",
16+
"jest": "^30",
17+
"ts-jest": "^29",
1818
"aws-cdk": "%cdk-cli-version%",
1919
"ts-node": "^10.9.2",
2020
"typescript": "~5.9.3"
@@ -23,4 +23,4 @@
2323
"aws-cdk-lib": "%cdk-version%",
2424
"constructs": "%constructs-version%"
2525
}
26-
}
26+
}

0 commit comments

Comments
 (0)