Fix stale links to docs (#115)
Closes #114
The URL format was updated on the pub site to a `-constant` suffix.
Cleanup:
- Use v1.0 of the Dart setup Github action.
- Test on the oldest supported SDK.
- Change the pubspec `homepage` config to `repository`.
- Use stable versions of dev dependencies.
diff --git a/.github/workflows/test-package.yml b/.github/workflows/test-package.yml
index e55702c..cdc25d9 100644
--- a/.github/workflows/test-package.yml
+++ b/.github/workflows/test-package.yml
@@ -23,9 +23,9 @@
sdk: [dev]
steps:
- uses: actions/checkout@v2
- - uses: dart-lang/setup-dart@v0.1
+ - uses: dart-lang/setup-dart@v1.0
with:
- channel: ${{ matrix.sdk }}
+ sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
@@ -47,12 +47,12 @@
matrix:
# Add macos-latest and/or windows-latest if relevant for this package.
os: [ubuntu-latest]
- sdk: [dev]
+ sdk: [2.12.0, dev]
steps:
- uses: actions/checkout@v2
- - uses: dart-lang/setup-dart@v0.1
+ - uses: dart-lang/setup-dart@v1.0
with:
- channel: ${{ matrix.sdk }}
+ sdk: ${{ matrix.sdk }}
- id: install
name: Install dependencies
run: dart pub get
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d85405d..205418f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+## 3.0.1
+
+* Fix doc links in README.
+
## 3.0.0
* Stable release for null safety.
diff --git a/README.md b/README.md
index 06f81cb..c4f98a1 100644
--- a/README.md
+++ b/README.md
@@ -104,7 +104,7 @@
[convert]: https://pub.dev/documentation/crypto/latest/crypto/Hash/convert.html
[Digest]: https://pub.dev/documentation/crypto/latest/crypto/Digest-class.html
[Hmac]: https://pub.dev/documentation/crypto/latest/crypto/Hmac-class.html
-[md5-obj]: https://pub.dev/documentation/crypto/latest/crypto/md5.html
-[sha1-obj]: https://pub.dev/documentation/crypto/latest/crypto/sha1.html
-[sha256-obj]: https://pub.dev/documentation/crypto/latest/crypto/sha256.html
+[md5-obj]: https://pub.dev/documentation/crypto/latest/crypto/md5-constant.html
+[sha1-obj]: https://pub.dev/documentation/crypto/latest/crypto/sha1-constant.html
+[sha256-obj]: https://pub.dev/documentation/crypto/latest/crypto/sha256-constant.html
[startChunkedConversion]: https://pub.dev/documentation/crypto/latest/crypto/Hash/startChunkedConversion.html
diff --git a/pubspec.yaml b/pubspec.yaml
index 1beeaae..90488b7 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,15 +1,15 @@
name: crypto
-version: 3.0.0
+version: 3.0.1
description: Implementations of SHA, MD5, and HMAC cryptographic functions
-homepage: https://www.github.com/dart-lang/crypto
+repository: https://www.github.com/dart-lang/crypto
environment:
- sdk: '>=2.12.0-0 <3.0.0'
+ sdk: '>=2.12.0 <3.0.0'
dependencies:
collection: ^1.15.0
typed_data: ^1.3.0
dev_dependencies:
- pedantic: ^1.10.0-nullsafety
- test: ^1.16.0-nullsafety
+ pedantic: ^1.10.0
+ test: ^1.16.0