angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.78k stars 11.98k forks source link

fix(@angular/build): use `sha256` instead of `sha-256` as hash algorithm name #28926

Closed clydin closed 1 day ago

clydin commented 1 day ago

Stackblitz appears to fail when attempting to use crypto.createHash with an algorithm value of sha-256. Since Node.js supports both the hyphenated and unhyphenated values, the later is now used to avoid issues when running on Stackblitz.

clydin commented 1 day ago

The changes were merged into the following branches: main, 19.0.x