Skip to content

Commit 686d021

Browse files
authored
Revert wasm using fast path due to dart-lang/sdk/issues/55266 (dart-archive/crypto#181)
Preparing to publish 3.0.5 Revert "Switch sha512 to use fastpath with wasm (dart-archive/crypto#165)" This reverts commit 61dca74.
1 parent 02bcf3e commit 686d021

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

pkgs/crypto/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 3.0.5
2+
3+
* Revert switch to enable fast "sinks" on Wasm because it breaks `dart2js` with
4+
server mode.
5+
16
## 3.0.4
27

38
* Fix WebAssembly support.

pkgs/crypto/lib/src/sha512.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:convert';
77
import 'digest.dart';
88
import 'hash.dart';
99
// ignore: uri_does_not_exist
10-
import 'sha512_fastsinks.dart' if (dart.library.html) 'sha512_slowsinks.dart';
10+
import 'sha512_fastsinks.dart' if (dart.library.js) 'sha512_slowsinks.dart';
1111
import 'utils.dart';
1212

1313
/// An implementation of the [SHA-384][rfc] hash function.

pkgs/crypto/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: crypto
2-
version: 3.0.4
2+
version: 3.0.5
33
description: Implementations of SHA, MD5, and HMAC cryptographic functions.
44
repository: https://github.com/dart-lang/crypto
55
topics:

0 commit comments

Comments
 (0)