From 52fdf1a23ffd8c9774894a3931c51e800e9fa70e Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Wed, 14 Aug 2024 14:25:42 -0700 Subject: [PATCH] Revert wasm using fast path due to dart-lang/sdk/issues/55266 Preparing to publish 3.0.5 Revert "Switch sha512 to use fastpath with wasm (#165)" This reverts commit 69d13c9903d4134582ce1bbd9a31cfd8a510c22d. --- CHANGELOG.md | 5 +++++ lib/src/sha512.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86c9378..7e1739f 100644 --- a/CHANGELOG.md +++ b/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/lib/src/sha512.dart b/lib/src/sha512.dart index 97f8444..557954c 100644 --- a/lib/src/sha512.dart +++ b/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/pubspec.yaml b/pubspec.yaml index 483eaf5..424bf1f 100644 --- a/pubspec.yaml +++ b/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: