From 686d0217f6e8d2ed6a872bb4fdfc7f93e0f1236d Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 14 Aug 2024 17:06:55 -0700 Subject: [PATCH] Revert wasm using fast path due to dart-lang/sdk/issues/55266 (dart-lang/crypto#181) Preparing to publish 3.0.5 Revert "Switch sha512 to use fastpath with wasm (dart-lang/crypto#165)" This reverts commit 61dca74b29b0caa3912a1090c8f7287680462f57. --- pkgs/crypto/CHANGELOG.md | 5 +++++ pkgs/crypto/lib/src/sha512.dart | 2 +- pkgs/crypto/pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/crypto/CHANGELOG.md b/pkgs/crypto/CHANGELOG.md index 86c9378c..7e1739f3 100644 --- a/pkgs/crypto/CHANGELOG.md +++ b/pkgs/crypto/CHANGELOG.md @@ -1,3 +1,8 @@ +## 3.0.5 + +* Revert switch to enable fast "sinks" on Wasm because it breaks `dart2js` with + server mode. + ## 3.0.4 * Fix WebAssembly support. diff --git a/pkgs/crypto/lib/src/sha512.dart b/pkgs/crypto/lib/src/sha512.dart index 97f84448..557954c6 100644 --- a/pkgs/crypto/lib/src/sha512.dart +++ b/pkgs/crypto/lib/src/sha512.dart @@ -7,7 +7,7 @@ import 'dart:convert'; import 'digest.dart'; import 'hash.dart'; // ignore: uri_does_not_exist -import 'sha512_fastsinks.dart' if (dart.library.html) 'sha512_slowsinks.dart'; +import 'sha512_fastsinks.dart' if (dart.library.js) 'sha512_slowsinks.dart'; import 'utils.dart'; /// An implementation of the [SHA-384][rfc] hash function. diff --git a/pkgs/crypto/pubspec.yaml b/pkgs/crypto/pubspec.yaml index 483eaf53..424bf1f9 100644 --- a/pkgs/crypto/pubspec.yaml +++ b/pkgs/crypto/pubspec.yaml @@ -1,5 +1,5 @@ name: crypto -version: 3.0.4 +version: 3.0.5 description: Implementations of SHA, MD5, and HMAC cryptographic functions. repository: https://github.com/dart-lang/crypto topics: