Skip to content

Commit

Permalink
Merge pull request #21 from PlugFox/develop
Browse files Browse the repository at this point in the history
0.0.4-dev
  • Loading branch information
PlugFox authored May 3, 2022
2 parents c62608b + 82d76ab commit 8d2f08a
Show file tree
Hide file tree
Showing 10 changed files with 1,102 additions and 535 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,37 @@ jobs:
checkout:
runs-on: ubuntu-latest
container:
image: google/dart:beta
image: dart:beta
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Install Dependencies
run: dart pub get
timeout-minutes: 1
- name: Check format
run: dart format --set-exit-if-changed -l 80 -o none .
timeout-minutes: 1
- name: Check analyzer
run: dart analyze --fatal-infos --fatal-warnings lib
timeout-minutes: 1
#- name: Check with pana
# run: dart pub global activate pana && pana --json --no-warning --line-length 80
- name: Run tests
run: |
dart test --concurrency=6 --platform vm --coverage=coverage test/
dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
run: dart test --concurrency=6 --platform vm --coverage=coverage test/
timeout-minutes: 2
- name: Collect coverage
run: dart run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --packages=.packages --report-on=lib
timeout-minutes: 1
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2.1.0
timeout-minutes: 1
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
- name: Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v1.2.1
timeout-minutes: 1
with:
path: coverage/lcov.info
min_coverage: 90
Expand Down
21 changes: 12 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# 0.0.3-dev
# 0.0.4-dev
+ added: `handle` transformer for streams
+ **BREAKING** changed: Rename extension `set` with `upsert` for immutable lists
+ **BREAKING** changed: Stream transformers is not visible outside of the package
+ refactor: stream transformers refactoring

- **BREAKING**: refactor: Suffix for all extensions
- added: Calm stream transformer
- fixed: Stream transformers working before being listined
# 0.0.3-dev
+ **BREAKING** changed: Suffix for all extensions
+ added: Calm stream transformer
+ fixed: Stream transformers working before being listined

# 0.0.2-dev

- added: Releave extension for Iterable and Stream
+ added: Releave extension for Iterable and Stream

# 0.0.1-dev

- added: Collection's classes and extensions
- added: String extensions
+ added: Collection's classes and extensions
+ added: String extensions
5 changes: 4 additions & 1 deletion lib/src/list.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import 'dart:collection';

import 'package:meta/meta.dart';

/// {@template iterable.immutable_list}
/// Base class for immutable lists.
/// Creates an unmodifiable list backed by source.
///
/// The source of the elements may be a [List] or any [Iterable] with
/// efficient [Iterable.length] and [Iterable.elementAt].
/// {@endtemplate}
@immutable
class ImmutableList<E> extends IterableBase<E> {
/// {@macro iterable.immutable_list}
ImmutableList(Iterable<E> source)
Expand Down Expand Up @@ -61,7 +64,7 @@ class ImmutableList<E> extends IterableBase<E> {

/// Set element.
/// Returns a new list with element.
ImmutableList<E> set(E element) => ImmutableList<E>(
ImmutableList<E> upsert(E element) => ImmutableList<E>(
List<E>.of(_source)
..remove(element)
..add(element),
Expand Down
Loading

0 comments on commit 8d2f08a

Please sign in to comment.