From a72bfb88c280a26b77b2a45c3c9746c4641c5143 Mon Sep 17 00:00:00 2001 From: Serious-senpai <57554044+Serious-senpai@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:01:53 +0700 Subject: [PATCH 1/2] Fix outdated dependencies and code styles --- lib/async_locks.dart | 5 ++++- lib/src/event.dart | 2 +- lib/src/lock.dart | 2 +- lib/src/semaphore.dart | 2 +- lib/src/types.dart | 2 +- pubspec.yaml | 6 +++--- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/lib/async_locks.dart b/lib/async_locks.dart index 1dc6ad3..02e0d41 100644 --- a/lib/async_locks.dart +++ b/lib/async_locks.dart @@ -1,4 +1,7 @@ -/// Synchronization primitives for asynchronous Dart code. +/// Provides a suite of synchronization primitives designed to streamline the coordination of +/// asynchronous operations in your Dart applications. Inspired by Python's established concurrency +/// features, this package offers a familiar and intuitive approach to managing shared resources +/// and preventing race conditions in asynchronous code. /// /// See also: /// - [Python documentation](https://docs.python.org/3.9/library/asyncio-sync.html) diff --git a/lib/src/event.dart b/lib/src/event.dart index 162f881..6b8b779 100644 --- a/lib/src/event.dart +++ b/lib/src/event.dart @@ -1,4 +1,4 @@ -part of async_locks; +part of "../async_locks.dart"; /// Event object to notify multiple futures that an event has happened. /// diff --git a/lib/src/lock.dart b/lib/src/lock.dart index 8337248..606284b 100644 --- a/lib/src/lock.dart +++ b/lib/src/lock.dart @@ -1,4 +1,4 @@ -part of async_locks; +part of "../async_locks.dart"; abstract class _Lock { final _waiters = ListQueue<_FutureWaiter>(); diff --git a/lib/src/semaphore.dart b/lib/src/semaphore.dart index 842b976..d0c71f7 100644 --- a/lib/src/semaphore.dart +++ b/lib/src/semaphore.dart @@ -1,4 +1,4 @@ -part of async_locks; +part of "../async_locks.dart"; abstract class _Semaphore { final _waiters = ListQueue<_FutureWaiter>(); diff --git a/lib/src/types.dart b/lib/src/types.dart index ffbaf21..129133e 100644 --- a/lib/src/types.dart +++ b/lib/src/types.dart @@ -1,4 +1,4 @@ -part of async_locks; +part of "../async_locks.dart"; typedef _FutureWaiter = Completer; diff --git a/pubspec.yaml b/pubspec.yaml index 4598f79..757536d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,8 +6,8 @@ repository: https://github.com/Serious-senpai/async-locks issue_tracker: https://github.com/Serious-senpai/async-locks/issues environment: - sdk: ">=2.18.1 <3.0.0" + sdk: ">=2.18.1 <4.0.0" dev_dependencies: - lints: ^2.0.1 - test: ^1.22.2 + lints: ^3.0.0 + test: ^1.25.2 From 56187f34ff1d70b95f4743477e1b33330b563e13 Mon Sep 17 00:00:00 2001 From: Serious-senpai <57554044+Serious-senpai@users.noreply.github.com> Date: Thu, 7 Mar 2024 20:10:03 +0700 Subject: [PATCH 2/2] Fix version conflicts --- .github/workflows/tests.yml | 3 --- pubspec.yaml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ff43886..64e3d1d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,6 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest] - sdk: [2.19.6, 3.3.1] steps: @@ -22,8 +21,6 @@ jobs: - name: Setup Dart uses: dart-lang/setup-dart@v1.3 - with: - sdk: ${{ matrix.sdk }} - name: Install dependencies run: dart pub get diff --git a/pubspec.yaml b/pubspec.yaml index 757536d..1ec4462 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,7 +6,7 @@ repository: https://github.com/Serious-senpai/async-locks issue_tracker: https://github.com/Serious-senpai/async-locks/issues environment: - sdk: ">=2.18.1 <4.0.0" + sdk: ">=3.0.0 <4.0.0" dev_dependencies: lints: ^3.0.0