diff --git a/CHANGELOG.md b/CHANGELOG.md index 679dc95f..7de75cc2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog + +## Version 4.0.1 (2026-09-11) + +* Migrate away from using `dart.library.js` in conditional import (the library + is going to be removed in the future, which will make the condition + evaluate to false) + ## Version 4.0.0 (2025-02-12) * Add support for utf-16 in ans1_bmp_string.dart diff --git a/lib/src/platform_check/platform_check.dart b/lib/src/platform_check/platform_check.dart index 07e99656..ca5142fc 100644 --- a/lib/src/platform_check/platform_check.dart +++ b/lib/src/platform_check/platform_check.dart @@ -2,7 +2,7 @@ import 'package:pointycastle/src/impl/entropy.dart'; import 'abstract.dart' if (dart.library.io) 'native.dart' - if (dart.library.js) 'web.dart'; + if (dart.library.js_interop) 'web.dart'; abstract class Platform { static Platform get instance => getPlatform(); diff --git a/pubspec.yaml b/pubspec.yaml index c4571de7..cbf9b7c6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: pointycastle -version: 4.0.0 +version: 4.0.1 description: A Dart library implementing cryptographic algorithms and primitives, modeled on the BouncyCastle library. homepage: https://github.com/bcgit/pc-dart topics: