Skip to content

Commit

Permalink
5e90c1b fix(@angular/cli): remove Node.js v18 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Angular Builds committed Feb 20, 2025
1 parent 9b8041d commit c8e43f6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
9 changes: 1 addition & 8 deletions fesm2022/ssr.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1920,14 +1920,7 @@ class AngularServerApp {
const fileName = path.split('/').pop() ?? path;
return this.assets.getServerAsset(fileName).text();
});
// TODO(alanagius): remove once Node.js version 18 is no longer supported.
if (renderMode === RenderMode.Server && typeof crypto === 'undefined') {
// eslint-disable-next-line no-console
console.error(`The global 'crypto' module is unavailable. ` +
`If you are running on Node.js, please ensure you are using version 20 or later, ` +
`which includes built-in support for the Web Crypto module.`);
}
if (renderMode === RenderMode.Server && typeof crypto !== 'undefined') {
if (renderMode === RenderMode.Server) {
// Only cache if we are running in SSR Mode.
const cacheKey = await sha256(html);
let htmlWithCriticalCss = this.criticalCssLRUCache.get(cacheKey);
Expand Down
2 changes: 1 addition & 1 deletion fesm2022/ssr.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@angular/ssr",
"version": "20.0.0-next.0+sha-4255779",
"version": "20.0.0-next.0+sha-5e90c1b",
"description": "Angular server side rendering utilities",
"type": "module",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion uniqueId
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Wed Feb 19 2025 22:44:11 GMT+0000 (Coordinated Universal Time)
Thu Feb 20 2025 18:45:41 GMT+0000 (Coordinated Universal Time)

0 comments on commit c8e43f6

Please sign in to comment.