From c3c182f920e7b48689ddf246651cb6a7864b071b Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sat, 24 Jun 2023 16:06:04 +0530 Subject: [PATCH 01/50] Chore: added test workflow --- .github/workflows/tests.yml | 24 ++++++++++++++++++++++ .husky/pre-commit | 3 ++- packages/flodash/lib/modules/date/now.dart | 2 ++ 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..aa7818a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,24 @@ +name: CI Tests + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + version: ['2.x', '3.x'] + steps: + - uses: actions/checkout@v3 + - uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ matrix.version }} + channel: 'stable' + cache: true + cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' + cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' + + - run: flutter pub get + - run: melos bootstrap + - run: melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file diff --git a/.husky/pre-commit b/.husky/pre-commit index f4d756c..3f80844 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -2,4 +2,5 @@ . "$(dirname -- "$0")/_/husky.sh" dart format . --fix -dart run lint_staged \ No newline at end of file +dart run lint_staged +git add . \ No newline at end of file diff --git a/packages/flodash/lib/modules/date/now.dart b/packages/flodash/lib/modules/date/now.dart index 2c4f1f6..781d7f0 100644 --- a/packages/flodash/lib/modules/date/now.dart +++ b/packages/flodash/lib/modules/date/now.dart @@ -1,2 +1,4 @@ @Deprecated("Use inbuilt DateTime.now().millisecondsSinceEpoch instead") + +/// Gets the timestamp of the number of milliseconds that have elapsed since the Unix epoch (1 January 1970 00:00:00 UTC). int now() => DateTime.now().millisecondsSinceEpoch; From 85fac442d612803ebe0ddbf38e6e1d9d801ce9b2 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sat, 24 Jun 2023 16:14:58 +0530 Subject: [PATCH 02/50] Chore: removed matrix strategy --- .github/workflows/tests.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aa7818a..84e0e00 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -4,16 +4,13 @@ on: pull_request: jobs: - build: + unit-tests: runs-on: ubuntu-latest - strategy: - matrix: - version: ['2.x', '3.x'] steps: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: ${{ matrix.version }} + flutter-version: 3.x channel: 'stable' cache: true cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' From d9392f3eaf36a6bce8e5a1ea10cac0b30215faa0 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sat, 24 Jun 2023 16:17:19 +0530 Subject: [PATCH 03/50] Chore: updated melos script --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 84e0e00..5b46fb2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -17,5 +17,5 @@ jobs: cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' - run: flutter pub get - - run: melos bootstrap - - run: melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file + - run: flutter pub global run melos bootstrap + - run: flutter pub global run melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file From 4d7c0e8c4ee641f4b63f67ff31166d6a411fd0e4 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sat, 24 Jun 2023 16:22:14 +0530 Subject: [PATCH 04/50] Chore: updated workflow --- .github/workflows/tests.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5b46fb2..4865503 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,14 +8,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 + + - name: Setup Flutter SDK + uses: subosito/flutter-action@v2 with: flutter-version: 3.x channel: 'stable' cache: true cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' - - - run: flutter pub get - - run: flutter pub global run melos bootstrap - - run: flutter pub global run melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file + + - name: Install dependencies + run: | + dart pub global activate melos + flutter pub get + melos bootstrap + - name: Execute tests + run: melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file From 3bfc4673321c5bc2c6c8d4a9ff8430a548c6e362 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Sun, 25 Jun 2023 14:44:28 +0530 Subject: [PATCH 05/50] Feat: added trimEnd under the string manipulation --- lib/modules/string/main.dart | 1 + lib/modules/string/trim_end.dart | 13 +++++++++ test/modules/string/trim_end_test.dart | 37 ++++++++++++++++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 lib/modules/string/trim_end.dart create mode 100644 test/modules/string/trim_end_test.dart diff --git a/lib/modules/string/main.dart b/lib/modules/string/main.dart index 0d0aa8a..8c0df81 100644 --- a/lib/modules/string/main.dart +++ b/lib/modules/string/main.dart @@ -9,3 +9,4 @@ export 'replace.dart'; export 'upper_first.dart'; export 'unescape.dart'; export 'uppercase.dart'; +export 'trim_end.dart'; diff --git a/lib/modules/string/trim_end.dart b/lib/modules/string/trim_end.dart new file mode 100644 index 0000000..325a1af --- /dev/null +++ b/lib/modules/string/trim_end.dart @@ -0,0 +1,13 @@ +///Removes trailing whitespace or specified characters from string. +String trimEnd(String str, [String chars = ' ']) { + if (str.isEmpty) { + return ''; + } + + int end = str.length - 1; + while (end >= 0 && chars.contains(str[end])) { + end--; + } + + return str.substring(0, end + 1); +} diff --git a/test/modules/string/trim_end_test.dart b/test/modules/string/trim_end_test.dart new file mode 100644 index 0000000..5644510 --- /dev/null +++ b/test/modules/string/trim_end_test.dart @@ -0,0 +1,37 @@ +import 'package:flodash/flodash.dart' as flodash; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + test('trimEnd with trailing whitespace', () { + String result = flodash.trimEnd(' abc '); + expect(result, ' abc'); + }); + test('trimEnd with specified characters', () { + String result = flodash.trimEnd('-_-abc-_-', '_-'); + expect(result, '-_-abc'); + }); + test('trimEnd with empty string', () { + String result = flodash.trimEnd(''); + expect(result, ''); + }); + test('trimEnd with empty string and specified characters', () { + String result = flodash.trimEnd('', '_-'); + expect(result, ''); + }); + test('trimEnd with no whitespace or specified characters', () { + String result = flodash.trimEnd('abc'); + expect(result, 'abc'); + }); + test('trimEnd with only whitespace', () { + String result = flodash.trimEnd(' '); + expect(result, ''); + }); + test('trimEnd with only specified characters', () { + String result = flodash.trimEnd('---', '-'); + expect(result, ''); + }); + test('trimEnd with whitespace and specified characters', () { + String result = flodash.trimEnd('abc -_- ', '_- '); + expect(result, 'abc'); + }); +} \ No newline at end of file From 559da51c4db47900564d218a19fa56e0509e8870 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Sun, 25 Jun 2023 14:47:45 +0530 Subject: [PATCH 06/50] Refactor: remove new lines --- lib/modules/string/trim_end.dart | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/modules/string/trim_end.dart b/lib/modules/string/trim_end.dart index 325a1af..ebca4af 100644 --- a/lib/modules/string/trim_end.dart +++ b/lib/modules/string/trim_end.dart @@ -1,13 +1,9 @@ ///Removes trailing whitespace or specified characters from string. String trimEnd(String str, [String chars = ' ']) { - if (str.isEmpty) { + if (str.isEmpty) return ''; - } - int end = str.length - 1; - while (end >= 0 && chars.contains(str[end])) { + while (end >= 0 && chars.contains(str[end])) end--; - } - return str.substring(0, end + 1); } From 11629b0322f3945c4f13640c4251040a1eb00509 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Sat, 24 Jun 2023 19:39:37 +0530 Subject: [PATCH 07/50] Feat: added trimStart under the string manipulation --- lib/modules/string/main.dart | 2 +- lib/modules/string/trimStart.dart | 10 +++++ lib/modules/string/trim_end.dart | 6 +-- test/modules/string/trimStart_test.dart | 49 +++++++++++++++++++++++++ 4 files changed, 62 insertions(+), 5 deletions(-) create mode 100644 lib/modules/string/trimStart.dart create mode 100644 test/modules/string/trimStart_test.dart diff --git a/lib/modules/string/main.dart b/lib/modules/string/main.dart index 8c0df81..b2718fc 100644 --- a/lib/modules/string/main.dart +++ b/lib/modules/string/main.dart @@ -9,4 +9,4 @@ export 'replace.dart'; export 'upper_first.dart'; export 'unescape.dart'; export 'uppercase.dart'; -export 'trim_end.dart'; +export 'trimStart.dart'; diff --git a/lib/modules/string/trimStart.dart b/lib/modules/string/trimStart.dart new file mode 100644 index 0000000..6ca2d2f --- /dev/null +++ b/lib/modules/string/trimStart.dart @@ -0,0 +1,10 @@ +///Removes leading whitespace or specified characters from string. +String trimStart(String string, [String chars = ' ']) { + if (string.isEmpty) return string; + int startIndex = 0; + if (chars.isNotEmpty) { + while (startIndex < string.length && chars.contains(string[startIndex])) + startIndex++; + } + return string.substring(startIndex); +} diff --git a/lib/modules/string/trim_end.dart b/lib/modules/string/trim_end.dart index ebca4af..acec2e8 100644 --- a/lib/modules/string/trim_end.dart +++ b/lib/modules/string/trim_end.dart @@ -1,9 +1,7 @@ ///Removes trailing whitespace or specified characters from string. String trimEnd(String str, [String chars = ' ']) { - if (str.isEmpty) - return ''; + if (str.isEmpty) return ''; int end = str.length - 1; - while (end >= 0 && chars.contains(str[end])) - end--; + while (end >= 0 && chars.contains(str[end])) end--; return str.substring(0, end + 1); } diff --git a/test/modules/string/trimStart_test.dart b/test/modules/string/trimStart_test.dart new file mode 100644 index 0000000..58fd530 --- /dev/null +++ b/test/modules/string/trimStart_test.dart @@ -0,0 +1,49 @@ +import 'package:flodash/flodash.dart' as flodash; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + test('capitalize letters with spaces', () { + String str = flodash.camelCase('Foo Bar'); + expect(str, 'fooBar'); + }); + test('words with dashes', () { + String str = flodash.camelCase('--foo-bar--'); + expect(str, 'fooBar'); + }); + test('camelCase word', () { + String str = flodash.camelCase('fooBar'); + expect(str, 'fooBar'); + }); + test('words with underscore', () { + String str = flodash.camelCase('__FOO_BAR__'); + expect(str, 'fooBar'); + }); + test('camelCase word with dashes on end', () { + String str = flodash.camelCase('fooBar--'); + expect(str, 'fooBar'); + }); + test('camelCase word with underscores on end', () { + String str = flodash.camelCase('fooBar__'); + expect(str, 'fooBar'); + }); + test('dashes in between words', () { + String str = flodash.camelCase('foo--bar'); + expect(str, 'fooBar'); + }); + test('underscores in between words', () { + String str = flodash.camelCase('foo__bar'); + expect(str, 'fooBar'); + }); + test('dots in between words', () { + String str = flodash.camelCase('foo..bar'); + expect(str, 'fooBar'); + }); + test('dots with words', () { + String str = flodash.camelCase('..foo..bar..'); + expect(str, 'fooBar'); + }); + test('words with latin characters', () { + String str = flodash.camelCase('__foo__déjà vu__'); + expect(str, 'fooDejaVu'); + }); +} From 2197f342f78bd2dc7a6b8551d85e427d702826b2 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Sun, 25 Jun 2023 13:58:17 +0530 Subject: [PATCH 08/50] Refactor: changes added --- lib/modules/string/main.dart | 2 +- lib/modules/string/trim_start.dart | 10 +++++++ test/modules/string/trim_start_test.dart | 37 ++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 lib/modules/string/trim_start.dart create mode 100644 test/modules/string/trim_start_test.dart diff --git a/lib/modules/string/main.dart b/lib/modules/string/main.dart index b2718fc..df50964 100644 --- a/lib/modules/string/main.dart +++ b/lib/modules/string/main.dart @@ -9,4 +9,4 @@ export 'replace.dart'; export 'upper_first.dart'; export 'unescape.dart'; export 'uppercase.dart'; -export 'trimStart.dart'; +export 'trim_start.dart'; diff --git a/lib/modules/string/trim_start.dart b/lib/modules/string/trim_start.dart new file mode 100644 index 0000000..6ca2d2f --- /dev/null +++ b/lib/modules/string/trim_start.dart @@ -0,0 +1,10 @@ +///Removes leading whitespace or specified characters from string. +String trimStart(String string, [String chars = ' ']) { + if (string.isEmpty) return string; + int startIndex = 0; + if (chars.isNotEmpty) { + while (startIndex < string.length && chars.contains(string[startIndex])) + startIndex++; + } + return string.substring(startIndex); +} diff --git a/test/modules/string/trim_start_test.dart b/test/modules/string/trim_start_test.dart new file mode 100644 index 0000000..62cf7f4 --- /dev/null +++ b/test/modules/string/trim_start_test.dart @@ -0,0 +1,37 @@ +import 'package:flodash/flodash.dart' as flodash; +import 'package:flutter_test/flutter_test.dart'; + +void main() { + test('trimStart with leading whitespace', () { + String result = flodash.trimStart(' abc '); + expect(result, 'abc '); + }); + test('trimStart with specified characters', () { + String result = flodash.trimStart('-_-abc-_-', '_-'); + expect(result, 'abc-_-'); + }); + test('trimStart with empty string', () { + String result = flodash.trimStart(''); + expect(result, ''); + }); + test('trimStart with empty string and specified characters', () { + String result = flodash.trimStart('', '_-'); + expect(result, ''); + }); + test('trimStart with no whitespace or specified characters', () { + String result = flodash.trimStart('abc'); + expect(result, 'abc'); + }); + test('trimStart with only whitespace', () { + String result = flodash.trimStart(' '); + expect(result, ''); + }); + test('trimStart with only specified characters', () { + String result = flodash.trimStart('---', '-'); + expect(result, ''); + }); + test('trimStart with whitespace and specified characters', () { + String result = flodash.trimStart(' -_-abc', '_- '); + expect(result, 'abc'); + }); +} From f3f31217f94bbbb7c03b88e997f2dbdc18f8a488 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 25 Jun 2023 17:13:24 +0530 Subject: [PATCH 09/50] Docs: added migration notice --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dfc2518..5508fc9 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ # Flodash [![Pub](https://img.shields.io/pub/v/flodash.svg)](https://pub.dartlang.org/packages/flodash) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/andresaraujo/flodash/master/LICENSE) -

+ +## IMPORTANT !!! +## This project has been migrated to the following [monorepo](https://github.com/sliit-foss/dart-cookbook) and will no longer be maintained here. + +
This library is a dart implementation of the popular JavaScript library [lodash](https://lodash.com/). It is a collection of utility functions that make it easier to work with collections, objects, numbers, strings, etc.

From b909c4a943418dd9bf2310803309c671ab504da0 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 25 Jun 2023 17:24:33 +0530 Subject: [PATCH 10/50] Fix(trimEnd): barrel export --- lib/modules/string/main.dart | 1 + lib/modules/string/trim_end.dart | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/modules/string/main.dart b/lib/modules/string/main.dart index df50964..14e7499 100644 --- a/lib/modules/string/main.dart +++ b/lib/modules/string/main.dart @@ -9,4 +9,5 @@ export 'replace.dart'; export 'upper_first.dart'; export 'unescape.dart'; export 'uppercase.dart'; +export 'trim_end.dart'; export 'trim_start.dart'; diff --git a/lib/modules/string/trim_end.dart b/lib/modules/string/trim_end.dart index acec2e8..c472dec 100644 --- a/lib/modules/string/trim_end.dart +++ b/lib/modules/string/trim_end.dart @@ -2,6 +2,8 @@ String trimEnd(String str, [String chars = ' ']) { if (str.isEmpty) return ''; int end = str.length - 1; - while (end >= 0 && chars.contains(str[end])) end--; + while (end >= 0 && chars.contains(str[end])) { + end--; + } return str.substring(0, end + 1); } From 40a101e060fec6cbb0f58af4f432d89b2b829b94 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 25 Jun 2023 17:45:24 +0530 Subject: [PATCH 11/50] Chore: cleanup --- .../flodash/lib/modules/string/trimStart.dart | 10 ---- .../test/modules/string/trimStart_test.dart | 49 ------------------- 2 files changed, 59 deletions(-) delete mode 100644 packages/flodash/lib/modules/string/trimStart.dart delete mode 100644 packages/flodash/test/modules/string/trimStart_test.dart diff --git a/packages/flodash/lib/modules/string/trimStart.dart b/packages/flodash/lib/modules/string/trimStart.dart deleted file mode 100644 index 6ca2d2f..0000000 --- a/packages/flodash/lib/modules/string/trimStart.dart +++ /dev/null @@ -1,10 +0,0 @@ -///Removes leading whitespace or specified characters from string. -String trimStart(String string, [String chars = ' ']) { - if (string.isEmpty) return string; - int startIndex = 0; - if (chars.isNotEmpty) { - while (startIndex < string.length && chars.contains(string[startIndex])) - startIndex++; - } - return string.substring(startIndex); -} diff --git a/packages/flodash/test/modules/string/trimStart_test.dart b/packages/flodash/test/modules/string/trimStart_test.dart deleted file mode 100644 index 58fd530..0000000 --- a/packages/flodash/test/modules/string/trimStart_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -import 'package:flodash/flodash.dart' as flodash; -import 'package:flutter_test/flutter_test.dart'; - -void main() { - test('capitalize letters with spaces', () { - String str = flodash.camelCase('Foo Bar'); - expect(str, 'fooBar'); - }); - test('words with dashes', () { - String str = flodash.camelCase('--foo-bar--'); - expect(str, 'fooBar'); - }); - test('camelCase word', () { - String str = flodash.camelCase('fooBar'); - expect(str, 'fooBar'); - }); - test('words with underscore', () { - String str = flodash.camelCase('__FOO_BAR__'); - expect(str, 'fooBar'); - }); - test('camelCase word with dashes on end', () { - String str = flodash.camelCase('fooBar--'); - expect(str, 'fooBar'); - }); - test('camelCase word with underscores on end', () { - String str = flodash.camelCase('fooBar__'); - expect(str, 'fooBar'); - }); - test('dashes in between words', () { - String str = flodash.camelCase('foo--bar'); - expect(str, 'fooBar'); - }); - test('underscores in between words', () { - String str = flodash.camelCase('foo__bar'); - expect(str, 'fooBar'); - }); - test('dots in between words', () { - String str = flodash.camelCase('foo..bar'); - expect(str, 'fooBar'); - }); - test('dots with words', () { - String str = flodash.camelCase('..foo..bar..'); - expect(str, 'fooBar'); - }); - test('words with latin characters', () { - String str = flodash.camelCase('__foo__déjà vu__'); - expect(str, 'fooDejaVu'); - }); -} From 3719c2c970baaf79e2fb03d65b5440244fdd0234 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 25 Jun 2023 17:48:30 +0530 Subject: [PATCH 12/50] Feat(flodash/find): added generics --- commitlint.yaml | 7 +------ .../flodash/lib/modules/collection/find.dart | 17 ++++++++++------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/commitlint.yaml b/commitlint.yaml index d7d5af6..95cf728 100644 --- a/commitlint.yaml +++ b/commitlint.yaml @@ -17,9 +17,4 @@ rules: - Wip type-empty: - 1 - - never - scope-enum: - - 2 - - always - - - flodash - - enhanced-http \ No newline at end of file + - never \ No newline at end of file diff --git a/packages/flodash/lib/modules/collection/find.dart b/packages/flodash/lib/modules/collection/find.dart index a2f71d6..c37166e 100644 --- a/packages/flodash/lib/modules/collection/find.dart +++ b/packages/flodash/lib/modules/collection/find.dart @@ -1,10 +1,13 @@ import '../../_utils/_array.dart'; -@Deprecated("Use inbuilt List.firstWhere() instead") -dynamic find(List list, dynamic iteratee) { - try { - return list.firstWhere((element) => evaluatePredicate(iteratee, element)); - } catch (e) { - return null; - } +/// Iterates over elements of collection, returning the first element predicate returns truthy for. The predicate is invoked with the value of the current item. +/// Arguments +/// - list (List): The collection to inspect. +/// - [iteratee] (dynamic): The iteratee invoked per iteration. +/// +/// Returns +/// (T?): Returns the matched element, else null. +T? find(List list, dynamic iteratee) { + return list.firstWhere((element) => evaluatePredicate(iteratee, element), + orElse: () => null); } From 3320ad87a6897f48e54950a58379092ba4b6100a Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 25 Jun 2023 17:59:13 +0530 Subject: [PATCH 13/50] Fix(flodash/find): type issue --- packages/flodash/lib/modules/collection/find.dart | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/flodash/lib/modules/collection/find.dart b/packages/flodash/lib/modules/collection/find.dart index c37166e..b83a5fc 100644 --- a/packages/flodash/lib/modules/collection/find.dart +++ b/packages/flodash/lib/modules/collection/find.dart @@ -7,7 +7,10 @@ import '../../_utils/_array.dart'; /// /// Returns /// (T?): Returns the matched element, else null. -T? find(List list, dynamic iteratee) { - return list.firstWhere((element) => evaluatePredicate(iteratee, element), - orElse: () => null); +T? find(List list, dynamic iteratee) { + try { + return list.firstWhere((element) => evaluatePredicate(iteratee, element)); + } catch (_) { + return null; + } } From a25ab753093540cee02ca0e8f5fcd6548b011039 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 00:15:38 +0530 Subject: [PATCH 14/50] CI(release): sync versions --- CHANGELOG.md | 23 +++++++++++++++++++++++ packages/flodash/CHANGELOG.md | 2 ++ packages/flodash/pubspec.yaml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ca16a38 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,23 @@ +# Change Log + +All notable changes to this project will be documented in this file. +See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. + +## 2023-06-26 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flodash` - `v1.0.3`](#flodash---v103) + +--- + +#### `flodash` - `v1.0.3` + diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index b373b58..38912ea 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,5 @@ +## 1.0.3 + ## 1.0.2 * Fixed issue in number - range return type diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index cd151f3..4b672ba 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.0.2 +version: 1.0.3 repository: https://github.com/sliit-foss/flodash environment: From cb15a60d0da6eb72652e28e7eb9e3f91ae7f6c38 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 00:23:01 +0530 Subject: [PATCH 15/50] Feat: added generics --- packages/flodash/lib/modules/array/chunk.dart | 15 ++++++++++++--- .../flodash/test/modules/array/chunk_test.dart | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/packages/flodash/lib/modules/array/chunk.dart b/packages/flodash/lib/modules/array/chunk.dart index 1b4225f..0a64b3a 100644 --- a/packages/flodash/lib/modules/array/chunk.dart +++ b/packages/flodash/lib/modules/array/chunk.dart @@ -1,9 +1,18 @@ -List chunk(List list, {int size = 1}) { - List chunks = []; +/// Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements. +/// +/// Arguments +/// list (List): The array to process. +/// [size=1] (int): The length of each chunk +/// +/// Returns +/// (List): Returns the new array of chunks. + +List> chunk(List list, {int size = 1}) { + List> chunks = []; for (int i = 0; i < list.length; i += size) { int end = i + size; if (end > list.length) end = list.length; - chunks.add(list.sublist(i, end)); + chunks.add(list.sublist(i, end).cast()); } return chunks; } diff --git a/packages/flodash/test/modules/array/chunk_test.dart b/packages/flodash/test/modules/array/chunk_test.dart index a1d6211..b5f66db 100644 --- a/packages/flodash/test/modules/array/chunk_test.dart +++ b/packages/flodash/test/modules/array/chunk_test.dart @@ -3,7 +3,7 @@ import 'package:flodash/flodash.dart' as flodash; import 'package:flutter_test/flutter_test.dart'; main() { - List li = ["a", "b", "c", "d"]; + List li = ["a", "b", "c", "d"]; test('even-split', () { expect( flodash.chunk(li, size: 2), From c29ab2e5a2c518a4c5464f85e58bf6394d5faaf8 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 00:41:16 +0530 Subject: [PATCH 16/50] Feat: added prerelease workflow --- .github/workflows/actions/release/action.yml | 65 ++++++++++++++++++++ .github/workflows/prerelease.yml | 16 +++++ .gitignore | 3 + 3 files changed, 84 insertions(+) create mode 100644 .github/workflows/actions/release/action.yml create mode 100644 .github/workflows/prerelease.yml diff --git a/.github/workflows/actions/release/action.yml b/.github/workflows/actions/release/action.yml new file mode 100644 index 0000000..8c4c7b4 --- /dev/null +++ b/.github/workflows/actions/release/action.yml @@ -0,0 +1,65 @@ +name: release +description: Base package release action +inputs: + credentials: + description: 'Pub.dev credentials' + required: true + options: + description: 'Melos version options' + required: false +runs: + using: composite + steps: + - name: Setup Flutter SDK + uses: subosito/flutter-action@v2 + with: + flutter-version: 3.x + channel: 'stable' + cache: true + cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' + cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' + shell: bash + + - name: Configure git + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + shell: bash + + - run: git fetch --prune --unshallow + shell: bash + + - name: Install dependencies + run: | + dart pub global activate melos + flutter pub get + melos bootstrap + shell: bash + + - name: Setup Pub Credentials + run: | + mkdir -p ~/.config + cd ~/.config + mkdir dart + echo ${{ inputs.credentials }} > ~/.config/dart/pub-credentials.json + shell: bash + + - name: Populate prerequisities + run: | + for dir in packages; do + cd "$dir" && for p in */; do + cp ../{.pubignore,LICENSE} "$p" + done && cd .. + done + shell: bash + + - name: Bump versions + run: | + melos version --yes --message="CI: sync release" ${{ inputs.options }} + shell: bash + + - name: Update release info + run: | + git config pull.ff true + git pull --rebase && git push origin + shell: bash diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml new file mode 100644 index 0000000..21fca5f --- /dev/null +++ b/.github/workflows/prerelease.yml @@ -0,0 +1,16 @@ +name: CI Prerelease + +on: + push: + branches: + - development + +jobs: + prerelease: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/release + with: + credentials: ${{ secrets.PUB_CREDENTIALS }} + options: "--prerelease --preid=blizzard" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 06aa2ad..38e9aed 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,6 @@ doc/api/ .flutter-plugins .flutter-plugins-dependencies + +packages/**/LICENSE +packages/**/.pubignore From 826a4b00f42c2898819a67c2f0420dd625d8e22f Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 00:58:01 +0530 Subject: [PATCH 17/50] Chore: extracted unit tests as composite action --- .../actions/release/action.yml | 0 .github/actions/test/action.yml | 25 +++++++++++++++++++ .github/workflows/prerelease.yml | 6 +++++ .github/workflows/tests.yml | 18 +------------ 4 files changed, 32 insertions(+), 17 deletions(-) rename .github/{workflows => }/actions/release/action.yml (100%) create mode 100644 .github/actions/test/action.yml diff --git a/.github/workflows/actions/release/action.yml b/.github/actions/release/action.yml similarity index 100% rename from .github/workflows/actions/release/action.yml rename to .github/actions/release/action.yml diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml new file mode 100644 index 0000000..58e8473 --- /dev/null +++ b/.github/actions/test/action.yml @@ -0,0 +1,25 @@ +name: test +description: Base unit test action +runs: + using: composite + steps: + - name: Setup Flutter SDK + uses: subosito/flutter-action@v2 + with: + flutter-version: 3.x + channel: 'stable' + cache: true + cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' + cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' + shell: bash + + - name: Install dependencies + run: | + dart pub global activate melos + flutter pub get + melos bootstrap + shell: bash + + - name: Execute tests + run: melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test + shell: bash diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 21fca5f..f1161fe 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -6,8 +6,14 @@ on: - development jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/unit-tests prerelease: runs-on: ubuntu-latest + needs: unit-tests steps: - uses: actions/checkout@v3 - uses: ./.github/actions/release diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4865503..24bc040 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,20 +8,4 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - - name: Setup Flutter SDK - uses: subosito/flutter-action@v2 - with: - flutter-version: 3.x - channel: 'stable' - cache: true - cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' - cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' - - - name: Install dependencies - run: | - dart pub global activate melos - flutter pub get - melos bootstrap - - name: Execute tests - run: melos exec --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") -- flutter test \ No newline at end of file + - uses: ./.github/actions/test \ No newline at end of file From a7b948dd688d0f751a07caa1a3a2e186bc2d1c91 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 00:59:45 +0530 Subject: [PATCH 18/50] Chore: fixed sdk setup step --- .github/actions/release/action.yml | 1 - .github/actions/test/action.yml | 1 - 2 files changed, 2 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 8c4c7b4..ec8c827 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -18,7 +18,6 @@ runs: cache: true cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' - shell: bash - name: Configure git run: | diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 58e8473..94dd895 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -11,7 +11,6 @@ runs: cache: true cache-key: 'flutter-:os:-:channel:-:version:-:arch:-:hash:' cache-path: '${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch:' - shell: bash - name: Install dependencies run: | From 038b63c45878107120d158dc16164c2ce7509ddd Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:04:35 +0530 Subject: [PATCH 19/50] Fix: unit test action invokation --- .github/workflows/prerelease.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index f1161fe..289eeb7 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: ./.github/actions/unit-tests + - uses: ./.github/actions/test prerelease: runs-on: ubuntu-latest needs: unit-tests From 0de1ee21ac8aacfe380b047466047dc0e5114f21 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:09:33 +0530 Subject: [PATCH 20/50] Fix: pub credential setup --- .github/actions/release/action.yml | 2 +- .github/workflows/prerelease.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index ec8c827..b5c55b5 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -40,7 +40,7 @@ runs: mkdir -p ~/.config cd ~/.config mkdir dart - echo ${{ inputs.credentials }} > ~/.config/dart/pub-credentials.json + echo "${{ inputs.credentials }}" > ~/.config/dart/pub-credentials.json shell: bash - name: Populate prerequisities diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 289eeb7..3154929 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/test - prerelease: + release: runs-on: ubuntu-latest needs: unit-tests steps: From 63e72dc0367d418a41aee5546baf0fb896399d3e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 25 Jun 2023 19:42:31 +0000 Subject: [PATCH 21/50] CI: sync release --- CHANGELOG.md | 21 +++++++++++++++++++++ packages/flodash/CHANGELOG.md | 4 ++++ packages/flodash/pubspec.yaml | 2 +- 3 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca16a38..b1947f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-06-25 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flodash` - `v1.1.0-blizzard.0`](#flodash---v110-blizzard0) + +--- + +#### `flodash` - `v1.1.0-blizzard.0` + + - **FEAT**: added generics. + + ## 2023-06-26 ### Changes diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index 38912ea..2b42eff 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.0-blizzard.0 + + - **FEAT**: added generics. + ## 1.0.3 ## 1.0.2 diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index 4b672ba..a66525e 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.0.3 +version: 1.1.0-blizzard.0 repository: https://github.com/sliit-foss/flodash environment: From 8c3ada77b0dcf4aa2e343a7b4665bb110eb91643 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:20:34 +0530 Subject: [PATCH 22/50] Feat: array/compact generic support --- .github/actions/release/action.yml | 4 ++++ .github/workflows/release.yml | 21 +++++++++++++++++++ packages/flodash/lib/modules/array/chunk.dart | 8 ++++--- .../flodash/lib/modules/array/compact.dart | 12 ++++++++++- 4 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index b5c55b5..c423261 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -57,6 +57,10 @@ runs: melos version --yes --message="CI: sync release" ${{ inputs.options }} shell: bash + - name: Publish packages + run: melos publish --no-dry-run + shell: bash + - name: Update release info run: | git config pull.ff true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c73f63b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: CI Release + +on: + push: + branches: + - main + +jobs: + unit-tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/unit-tests + prerelease: + runs-on: ubuntu-latest + needs: unit-tests + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/release + with: + credentials: ${{ secrets.PUB_CREDENTIALS }} \ No newline at end of file diff --git a/packages/flodash/lib/modules/array/chunk.dart b/packages/flodash/lib/modules/array/chunk.dart index 0a64b3a..fef68ab 100644 --- a/packages/flodash/lib/modules/array/chunk.dart +++ b/packages/flodash/lib/modules/array/chunk.dart @@ -1,11 +1,13 @@ /// Creates an array of elements split into groups the length of size. If array can't be split evenly, the final chunk will be the remaining elements. /// /// Arguments -/// list (List): The array to process. -/// [size=1] (int): The length of each chunk +/// +/// - list (List): The array to process. +/// - [size=1] (int): The length of each chunk /// /// Returns -/// (List): Returns the new array of chunks. +/// +/// - (List): Returns the new array of chunks. List> chunk(List list, {int size = 1}) { List> chunks = []; diff --git a/packages/flodash/lib/modules/array/compact.dart b/packages/flodash/lib/modules/array/compact.dart index 76989b7..c5562ed 100644 --- a/packages/flodash/lib/modules/array/compact.dart +++ b/packages/flodash/lib/modules/array/compact.dart @@ -1,5 +1,15 @@ import '../lang/main.dart'; -List compact(List list) { +/// Creates an array with all falsey values removed. The values false, null, 0, "", undefined, and NaN are falsey. +/// +/// Arguments +/// +/// - list (List): The array to compact. +/// +/// Returns +/// +/// - (List): Returns the new array of filtered values. + +List compact(List list) { return list.where((e) => !isFalsy(e)).toList(); } From 377c63771442ee3f95208b61ec8741b9237193d1 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:29:49 +0530 Subject: [PATCH 23/50] Chore: updated .pubignore list --- .pubignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pubignore b/.pubignore index 8fcf9be..68905b2 100644 --- a/.pubignore +++ b/.pubignore @@ -5,3 +5,6 @@ test/ .gitignore analysis_options.yaml pub_login.sh +melos_flodash.iml +CHANGELOG.md +CONTRIBUTING.md \ No newline at end of file From 3dfad5e1bbf3c6b59d2727876dc36f7be0e76847 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:31:56 +0530 Subject: [PATCH 24/50] Chore: added prompt skip to publish command --- .github/actions/release/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index c423261..8ef0fab 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -58,7 +58,7 @@ runs: shell: bash - name: Publish packages - run: melos publish --no-dry-run + run: melos publish --no-dry-run --yes shell: bash - name: Update release info From 4dc9da7937748a52910800ed700b34458ba9c72b Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 01:57:54 +0530 Subject: [PATCH 25/50] Fix: read pub creds as base64 --- .github/actions/release/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 8ef0fab..3ed78fe 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -40,7 +40,7 @@ runs: mkdir -p ~/.config cd ~/.config mkdir dart - echo "${{ inputs.credentials }}" > ~/.config/dart/pub-credentials.json + echo "${{ inputs.credentials }}" | base64 --decode > ~/.config/dart/pub-credentials.json shell: bash - name: Populate prerequisities From 12321ed6aaca8316f130dd7d2ee302dfc501d5c4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 25 Jun 2023 20:31:01 +0000 Subject: [PATCH 26/50] CI: sync release --- CHANGELOG.md | 22 ++++++++++++++++++++++ packages/flodash/CHANGELOG.md | 5 +++++ packages/flodash/pubspec.yaml | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1947f6..65e071a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-06-25 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flodash` - `v1.1.0-blizzard.1`](#flodash---v110-blizzard1) + +--- + +#### `flodash` - `v1.1.0-blizzard.1` + + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + + ## 2023-06-25 ### Changes diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index 2b42eff..711a133 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.1.0-blizzard.1 + + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + ## 1.1.0-blizzard.0 - **FEAT**: added generics. diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index a66525e..56a9720 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.0 +version: 1.1.0-blizzard.1 repository: https://github.com/sliit-foss/flodash environment: From b6a043cf32c654032ce68030953aec3a507c8d13 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 02:17:36 +0530 Subject: [PATCH 27/50] Chore: added dart doc generation --- .gitignore | 1 + melos.yaml | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 38e9aed..c316672 100644 --- a/.gitignore +++ b/.gitignore @@ -45,3 +45,4 @@ doc/api/ packages/**/LICENSE packages/**/.pubignore +packages/**/doc diff --git a/melos.yaml b/melos.yaml index 5ef67f2..8e22eef 100644 --- a/melos.yaml +++ b/melos.yaml @@ -5,4 +5,9 @@ packages: scripts: test: - exec: flutter test \ No newline at end of file + exec: flutter test + +command: + version: + hooks: + post: melos exec --no-published -- dart doc . \ No newline at end of file From 18fc1c622cd17fd47c6af2172ee1633b4dce352e Mon Sep 17 00:00:00 2001 From: Akalanka Date: Mon, 26 Jun 2023 02:18:48 +0530 Subject: [PATCH 28/50] Chore: pushed tags on release sync --- .github/actions/release/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 3ed78fe..6d550c4 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -64,5 +64,5 @@ runs: - name: Update release info run: | git config pull.ff true - git pull --rebase && git push origin + git pull --rebase && git push origin --tags shell: bash From c1156cfcb912388b446591914379e7bc3a9f0dd7 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 25 Jun 2023 20:50:44 +0000 Subject: [PATCH 29/50] CI: sync release --- CHANGELOG.md | 22 ++++++++++++++++++++++ packages/flodash/CHANGELOG.md | 5 +++++ packages/flodash/pubspec.yaml | 2 +- 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65e071a..ffa0904 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,28 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-06-25 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flodash` - `v1.1.0-blizzard.2`](#flodash---v110-blizzard2) + +--- + +#### `flodash` - `v1.1.0-blizzard.2` + + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + + ## 2023-06-25 ### Changes diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index 711a133..b8ddf14 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.1.0-blizzard.2 + + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + ## 1.1.0-blizzard.1 - **FEAT**: array/compact generic support. diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index 56a9720..f565d45 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.1 +version: 1.1.0-blizzard.2 repository: https://github.com/sliit-foss/flodash environment: From f38aceb3092bb687089e94fcd0780350ca206afe Mon Sep 17 00:00:00 2001 From: GIHAA Date: Wed, 28 Jun 2023 19:08:24 +0530 Subject: [PATCH 30/50] Feat: added to_upper under the string manipulation --- packages/flodash/lib/modules/string/main.dart | 1 + .../flodash/lib/modules/string/to_upper.dart | 4 +++ .../test/modules/string/to_upper_test.dart | 29 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 packages/flodash/lib/modules/string/to_upper.dart create mode 100644 packages/flodash/test/modules/string/to_upper_test.dart diff --git a/packages/flodash/lib/modules/string/main.dart b/packages/flodash/lib/modules/string/main.dart index 14e7499..95b3978 100644 --- a/packages/flodash/lib/modules/string/main.dart +++ b/packages/flodash/lib/modules/string/main.dart @@ -11,3 +11,4 @@ export 'unescape.dart'; export 'uppercase.dart'; export 'trim_end.dart'; export 'trim_start.dart'; +export 'to_upper.dart'; \ No newline at end of file diff --git a/packages/flodash/lib/modules/string/to_upper.dart b/packages/flodash/lib/modules/string/to_upper.dart new file mode 100644 index 0000000..09d2570 --- /dev/null +++ b/packages/flodash/lib/modules/string/to_upper.dart @@ -0,0 +1,4 @@ +///Converts string, as a whole, to upper cas +String toUpper([String string = '']) { + return string.toUpperCase(); +} \ No newline at end of file diff --git a/packages/flodash/test/modules/string/to_upper_test.dart b/packages/flodash/test/modules/string/to_upper_test.dart new file mode 100644 index 0000000..18534fd --- /dev/null +++ b/packages/flodash/test/modules/string/to_upper_test.dart @@ -0,0 +1,29 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:flodash/flodash.dart' as flodash; + +void main() { + test('toUpper should convert the string to upper case', () { + String input = '--foo-bar--'; + String expected = '--FOO-BAR--'; + String result = flodash.toUpper(input); + expect(result, expected); + }); + test('toUpper should convert the string to upper case when it contains both lowercase and uppercase characters', () { + String input = 'fooBar'; + String expected = 'FOOBAR'; + String result = flodash.toUpper(input); + expect(result, expected); + }); + test('toUpper should convert the string to upper case while preserving special characters', () { + String input = '__foo_bar__'; + String expected = '__FOO_BAR__'; + String result = flodash.toUpper(input); + expect(result, expected); + }); + test('toUpper should return an empty string if no input is provided', () { + String input = ''; + String expected = ''; + String result = flodash.toUpper(input); + expect(result, expected); + }); +} From 6d6a8b2ccd85bbefe55cc8bca62c39f007b71279 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Wed, 28 Jun 2023 19:20:02 +0530 Subject: [PATCH 31/50] Feat: added to_lower under the string manipulation --- packages/flodash/lib/modules/string/main.dart | 1 + .../flodash/lib/modules/string/to_lower.dart | 4 + packages/flodash/pubspec.lock | 89 +++++++------------ .../test/modules/string/to_lower_test.dart | 29 ++++++ 4 files changed, 66 insertions(+), 57 deletions(-) create mode 100644 packages/flodash/lib/modules/string/to_lower.dart create mode 100644 packages/flodash/test/modules/string/to_lower_test.dart diff --git a/packages/flodash/lib/modules/string/main.dart b/packages/flodash/lib/modules/string/main.dart index 14e7499..4b867ea 100644 --- a/packages/flodash/lib/modules/string/main.dart +++ b/packages/flodash/lib/modules/string/main.dart @@ -11,3 +11,4 @@ export 'unescape.dart'; export 'uppercase.dart'; export 'trim_end.dart'; export 'trim_start.dart'; +export 'to_lower.dart'; \ No newline at end of file diff --git a/packages/flodash/lib/modules/string/to_lower.dart b/packages/flodash/lib/modules/string/to_lower.dart new file mode 100644 index 0000000..81276a7 --- /dev/null +++ b/packages/flodash/lib/modules/string/to_lower.dart @@ -0,0 +1,4 @@ +///Converts string, as a whole, to lower case +String toLower([String string = '']) { + return string.toLowerCase(); +} \ No newline at end of file diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index 11aaa1f..60cce15 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -5,48 +5,42 @@ packages: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.11.0" + version: "2.9.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.2.1" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.17.1" + version: "1.16.0" fake_async: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.3.1" flutter: @@ -59,46 +53,34 @@ packages: description: flutter source: sdk version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.12.15" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.1.5" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.8.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.8.3" + version: "1.8.2" sky_engine: dependency: transitive description: flutter @@ -108,58 +90,51 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.9.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.11.0" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.4.12" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "2.1.2" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=2.17.0-0 <3.0.0" flutter: ">=1.17.0" diff --git a/packages/flodash/test/modules/string/to_lower_test.dart b/packages/flodash/test/modules/string/to_lower_test.dart new file mode 100644 index 0000000..1359d7f --- /dev/null +++ b/packages/flodash/test/modules/string/to_lower_test.dart @@ -0,0 +1,29 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:flodash/flodash.dart' as flodash; + +void main() { + test('toLower should convert the string to lower case', () { + String input = '--Foo-Bar--'; + String expected = '--foo-bar--'; + String result = flodash.toLower(input); + expect(result, expected); + }); + test('toLower should convert the string to lower case when it contains both lowercase and uppercase characters', () { + String input = 'fooBar'; + String expected = 'foobar'; + String result = flodash.toLower(input); + expect(result, expected); + }); + test('toLower should convert the string to lower case while preserving special characters', () { + String input = '__FOO_BAR__'; + String expected = '__foo_bar__'; + String result = flodash.toLower(input); + expect(result, expected); + }); + test('toLower should return an empty string if no input is provided', () { + String input = ''; + String expected = ''; + String result = flodash.toLower(input); + expect(result, expected); + }); +} From 6d70dc4efddc38d29192011bd49e389f93d6dad2 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Wed, 28 Jun 2023 19:31:54 +0530 Subject: [PATCH 32/50] Feat: added starts_with under the string manipulation --- packages/flodash/lib/modules/string/main.dart | 1 + .../lib/modules/string/starts_with.dart | 4 ++++ .../test/modules/string/starts_with_test.dart | 24 +++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 packages/flodash/lib/modules/string/starts_with.dart create mode 100644 packages/flodash/test/modules/string/starts_with_test.dart diff --git a/packages/flodash/lib/modules/string/main.dart b/packages/flodash/lib/modules/string/main.dart index 14e7499..a244588 100644 --- a/packages/flodash/lib/modules/string/main.dart +++ b/packages/flodash/lib/modules/string/main.dart @@ -11,3 +11,4 @@ export 'unescape.dart'; export 'uppercase.dart'; export 'trim_end.dart'; export 'trim_start.dart'; +export 'starts_with.dart'; \ No newline at end of file diff --git a/packages/flodash/lib/modules/string/starts_with.dart b/packages/flodash/lib/modules/string/starts_with.dart new file mode 100644 index 0000000..891a0c8 --- /dev/null +++ b/packages/flodash/lib/modules/string/starts_with.dart @@ -0,0 +1,4 @@ +///Checks if string starts with the given target string. +bool startsWith(String string, String target, [int position = 0]) { + return string.startsWith(target, position); +} \ No newline at end of file diff --git a/packages/flodash/test/modules/string/starts_with_test.dart b/packages/flodash/test/modules/string/starts_with_test.dart new file mode 100644 index 0000000..59a4579 --- /dev/null +++ b/packages/flodash/test/modules/string/starts_with_test.dart @@ -0,0 +1,24 @@ +import 'package:flutter_test/flutter_test.dart'; +import 'package:flodash/flodash.dart' as flodash; + +void main() { + test('startsWith should return true if the string starts with the target', () { + String string = 'abc'; + String target = 'a'; + bool result = flodash.startsWith(string, target); + expect(result, true); + }); + test('startsWith should return false if the string does not start with the target', () { + String string = 'abc'; + String target = 'b'; + bool result = flodash.startsWith(string, target); + expect(result, false); + }); + test('startsWith should return true if the string starts with the target at the specified position', () { + String string = 'abc'; + String target = 'b'; + int position = 1; + bool result = flodash.startsWith(string, target, position); + expect(result, true); + }); +} From 4218404b6c336ddcdc40ad812304b3ddcf83f451 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Fri, 30 Jun 2023 19:19:38 +0530 Subject: [PATCH 33/50] Refactor: changes added --- .../example/pubspec.lock | 161 ++++++++---------- .../enhanced_cloud_firestore/pubspec.lock | 110 +++++------- .../flodash/lib/modules/string/to_upper.dart | 13 +- .../test/modules/string/to_upper_test.dart | 8 +- 4 files changed, 126 insertions(+), 166 deletions(-) diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index 82fd1e2..f1e0181 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -1,86 +1,83 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: + _flutterfire_internals: + dependency: transitive + description: + name: _flutterfire_internals + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.2" async: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.11.0" + version: "2.9.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.2.1" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.1.1" cloud_firestore: dependency: transitive description: name: cloud_firestore - sha256: "0786a5f607f016e3b3fca8857288cba77feb3731a80a1c639f1f270b52883561" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "3.1.9" + version: "3.5.1" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface - sha256: "1d34efcd9b9f24e9100aef7d39e58639133e5deb8f8a83b6cc68eeebc597c46a" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "5.5.0" + version: "5.7.7" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web - sha256: "2e71a9c3ecda12561375fe5d4105654e47d73163bb0d5194e6b1aab61cef931d" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.6.9" + version: "2.8.10" collection: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.17.1" + version: "1.16.0" crypto: dependency: transitive description: name: crypto - sha256: cf75650c66c0316274e21d7c43d3dea246273af5955bd94e8184837cd577575c - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "3.0.1" + version: "3.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - sha256: "1989d917fbe8e6b39806207df5a3fdd3d816cbd090fac2ce26fb45e9a71476e5" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.0.4" + version: "1.0.5" enhanced_cloud_firestore: dependency: "direct main" description: @@ -92,42 +89,37 @@ packages: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.3.1" faker: dependency: "direct main" description: name: faker - sha256: c6f95ed978d91379bed8bfde3da372d969fd6a77cd3c6c458768bd59a7fea408 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.0.0" + version: "2.1.0" firebase_core: dependency: "direct main" description: name: firebase_core - sha256: "0232f60f41be892ec52f100b0c4a035d2ab523fa7f8adc8d183e01a75e42db1a" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.12.0" + version: "1.24.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - sha256: f9af376a733d91ab8ff1f2942479cb81bbb8a8bc67c2b6c51a9cae5a10f028a0 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "4.2.4" + version: "4.8.0" firebase_core_web: dependency: transitive description: name: firebase_core_web - sha256: "91abd7fdec09db644d8bdf4022fac43e639bf1a3b87d5810f8b9a14edc221f2d" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.6.0" + version: "1.7.3" flutter: dependency: "direct main" description: flutter @@ -137,16 +129,14 @@ packages: dependency: "direct main" description: name: flutter_dotenv - sha256: d9283d92059a22e9834bc0a31336658ffba77089fb6f3cc36751f1fc7c6661a3 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "5.0.2" + version: "5.1.0" flutter_lints: dependency: "direct dev" description: name: flutter_lints - sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.0.4" flutter_test: @@ -163,58 +153,51 @@ packages: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.6.7" + version: "0.6.4" lints: dependency: transitive description: name: lints - sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.0.1" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.12.15" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.1.5" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.8.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.8.3" + version: "1.8.2" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: "075f927ebbab4262ace8d0b283929ac5410c0ac4e7fc123c76429564facfb757" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.2" + version: "2.1.4" sky_engine: dependency: transitive description: flutter @@ -224,66 +207,58 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.9.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.11.0" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.4.12" typed_data: dependency: transitive description: name: typed_data - sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.3.2" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "2.1.2" sdks: - dart: ">=3.0.0-0 <3.7.0" - flutter: ">=1.17.0" + dart: ">=2.18.0 <3.0.0" + flutter: ">=3.3.0" diff --git a/packages/enhanced_cloud_firestore/pubspec.lock b/packages/enhanced_cloud_firestore/pubspec.lock index 36f8906..ec6bf9b 100644 --- a/packages/enhanced_cloud_firestore/pubspec.lock +++ b/packages/enhanced_cloud_firestore/pubspec.lock @@ -5,104 +5,91 @@ packages: dependency: transitive description: name: _flutterfire_internals - sha256: "2f428053492f92303e42c9afa8e3a78ad1886760e7b594e2b5a6b6ee47376360" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.0.2" async: dependency: transitive description: name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.11.0" + version: "2.9.0" boolean_selector: dependency: transitive description: name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" characters: dependency: transitive description: name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.3.0" + version: "1.2.1" clock: dependency: transitive description: name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.1.1" cloud_firestore: dependency: "direct main" description: name: cloud_firestore - sha256: "9194bf1845ee073bea64ec94e72c9dcf5d15f755e96496d8ccfee9def38b666f" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "3.5.1" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface - sha256: d023142c18c28b2610c23c196e829c96976569cc2aa2f8e45328ae8a64c428d1 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "5.7.7" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web - sha256: "3d7d4fa8c1dc5a1f7cb33985ae0ab9924d33d76d4959fe26aed84b7d282887e3" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "2.8.10" collection: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.17.1" + version: "1.16.0" fake_async: dependency: transitive description: name: fake_async - sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.3.1" firebase_core: dependency: transitive description: name: firebase_core - sha256: "4f1d7c13a909e82ff026679c9b8493cdeb35a9c76bc46c42bf9e2240c9e57e80" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.24.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "4.8.0" firebase_core_web: dependency: transitive description: name: firebase_core_web - sha256: "839f1b48032a61962792cea1225fae030d4f27163867f181d6d2072dd40acbee" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.7.3" flutter: @@ -124,48 +111,42 @@ packages: dependency: transitive description: name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.6.7" + version: "0.6.4" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.12.15" + version: "0.12.12" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.2.0" + version: "0.1.5" meta: dependency: transitive description: name: meta - sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.8.0" path: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.8.3" + version: "1.8.2" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "2.1.4" sky_engine: @@ -177,58 +158,51 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.9.1" + version: "1.9.0" stack_trace: dependency: transitive description: name: stack_trace - sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.11.0" + version: "1.10.0" stream_channel: dependency: transitive description: name: stream_channel - sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.1" + version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "1.2.0" + version: "1.1.1" term_glyph: dependency: transitive description: name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "0.5.1" + version: "0.4.12" vector_math: dependency: transitive description: name: vector_math - sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" - url: "https://pub.dev" + url: "https://pub.dartlang.org" source: hosted - version: "2.1.4" + version: "2.1.2" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=2.18.0 <3.0.0" flutter: ">=3.3.0" diff --git a/packages/flodash/lib/modules/string/to_upper.dart b/packages/flodash/lib/modules/string/to_upper.dart index 09d2570..72821d7 100644 --- a/packages/flodash/lib/modules/string/to_upper.dart +++ b/packages/flodash/lib/modules/string/to_upper.dart @@ -1,4 +1,15 @@ -///Converts string, as a whole, to upper cas +/// Converts a string, as a whole, to uppercase. +/// +/// Arguments +/// +/// - (string): The string to convert. +/// +/// Returns +/// +/// - (string): The uppercase string. + + +@Deprecated('The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.') String toUpper([String string = '']) { return string.toUpperCase(); } \ No newline at end of file diff --git a/packages/flodash/test/modules/string/to_upper_test.dart b/packages/flodash/test/modules/string/to_upper_test.dart index 18534fd..847b577 100644 --- a/packages/flodash/test/modules/string/to_upper_test.dart +++ b/packages/flodash/test/modules/string/to_upper_test.dart @@ -2,25 +2,25 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:flodash/flodash.dart' as flodash; void main() { - test('toUpper should convert the string to upper case', () { + test('should convert the string to upper case', () { String input = '--foo-bar--'; String expected = '--FOO-BAR--'; String result = flodash.toUpper(input); expect(result, expected); }); - test('toUpper should convert the string to upper case when it contains both lowercase and uppercase characters', () { + test('should convert the string to upper case when it contains both lowercase and uppercase characters', () { String input = 'fooBar'; String expected = 'FOOBAR'; String result = flodash.toUpper(input); expect(result, expected); }); - test('toUpper should convert the string to upper case while preserving special characters', () { + test('should convert the string to upper case while preserving special characters', () { String input = '__foo_bar__'; String expected = '__FOO_BAR__'; String result = flodash.toUpper(input); expect(result, expected); }); - test('toUpper should return an empty string if no input is provided', () { + test('should return an empty string if no input is provided', () { String input = ''; String expected = ''; String result = flodash.toUpper(input); From 120e9b0fbbe1d85234a697a0f52c434ee249b0a2 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Fri, 30 Jun 2023 19:24:44 +0530 Subject: [PATCH 34/50] Refactor: changes added --- packages/flodash/lib/modules/string/to_lower.dart | 13 ++++++++++++- .../flodash/test/modules/string/to_lower_test.dart | 8 ++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/flodash/lib/modules/string/to_lower.dart b/packages/flodash/lib/modules/string/to_lower.dart index 81276a7..c343033 100644 --- a/packages/flodash/lib/modules/string/to_lower.dart +++ b/packages/flodash/lib/modules/string/to_lower.dart @@ -1,4 +1,15 @@ -///Converts string, as a whole, to lower case +/// Converts a string, as a whole, to lowercase. +/// +/// Arguments +/// +/// - (string): The string to convert. +/// +/// Returns +/// +/// - (string): The lowercase string. + + +@Deprecated('The function toLower() is deprecated. Use the built-in toUpperCase() method instead.') String toLower([String string = '']) { return string.toLowerCase(); } \ No newline at end of file diff --git a/packages/flodash/test/modules/string/to_lower_test.dart b/packages/flodash/test/modules/string/to_lower_test.dart index 1359d7f..c3308ad 100644 --- a/packages/flodash/test/modules/string/to_lower_test.dart +++ b/packages/flodash/test/modules/string/to_lower_test.dart @@ -2,25 +2,25 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:flodash/flodash.dart' as flodash; void main() { - test('toLower should convert the string to lower case', () { + test('should convert the string to lower case', () { String input = '--Foo-Bar--'; String expected = '--foo-bar--'; String result = flodash.toLower(input); expect(result, expected); }); - test('toLower should convert the string to lower case when it contains both lowercase and uppercase characters', () { + test('should convert the string to lower case when it contains both lowercase and uppercase characters', () { String input = 'fooBar'; String expected = 'foobar'; String result = flodash.toLower(input); expect(result, expected); }); - test('toLower should convert the string to lower case while preserving special characters', () { + test('should convert the string to lower case while preserving special characters', () { String input = '__FOO_BAR__'; String expected = '__foo_bar__'; String result = flodash.toLower(input); expect(result, expected); }); - test('toLower should return an empty string if no input is provided', () { + test('should return an empty string if no input is provided', () { String input = ''; String expected = ''; String result = flodash.toLower(input); From 32e77b8314d4d6fa69030b9df54b5e7d58434dd2 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Fri, 30 Jun 2023 19:31:07 +0530 Subject: [PATCH 35/50] Refactor: changes added --- packages/flodash/lib/modules/string/to_lower.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flodash/lib/modules/string/to_lower.dart b/packages/flodash/lib/modules/string/to_lower.dart index c343033..b6f1aa6 100644 --- a/packages/flodash/lib/modules/string/to_lower.dart +++ b/packages/flodash/lib/modules/string/to_lower.dart @@ -9,7 +9,7 @@ /// - (string): The lowercase string. -@Deprecated('The function toLower() is deprecated. Use the built-in toUpperCase() method instead.') +@Deprecated('The function toLower() is deprecated. Use the built-in toLowerCase() method instead.') String toLower([String string = '']) { return string.toLowerCase(); } \ No newline at end of file From 8b01873cec703dd1e6d0e704876ad80776d2baeb Mon Sep 17 00:00:00 2001 From: GIHAA Date: Fri, 30 Jun 2023 19:32:27 +0530 Subject: [PATCH 36/50] Refactor: changes added --- .../flodash/lib/modules/string/starts_with.dart | 13 +++++++++++++ .../test/modules/string/starts_with_test.dart | 6 +++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/packages/flodash/lib/modules/string/starts_with.dart b/packages/flodash/lib/modules/string/starts_with.dart index 891a0c8..4a6ebc4 100644 --- a/packages/flodash/lib/modules/string/starts_with.dart +++ b/packages/flodash/lib/modules/string/starts_with.dart @@ -1,4 +1,17 @@ ///Checks if string starts with the given target string. +/// +/// Arguments +/// +/// - string (String): The string to be checked. +/// - target (String): The target string that is expected to be at the beginning of the given string. +/// - position (int): Optional parameter specifying the starting position in the given string to begin the comparison. Defaults to 0 +/// +/// Returns +/// +/// - (Boolean): Returns true if the string starts with the target string at the specified position; otherwise, returns false + + +@Deprecated('The function toUpper() is deprecated. Use the built-in startsWith() method instead.') bool startsWith(String string, String target, [int position = 0]) { return string.startsWith(target, position); } \ No newline at end of file diff --git a/packages/flodash/test/modules/string/starts_with_test.dart b/packages/flodash/test/modules/string/starts_with_test.dart index 59a4579..4b938ec 100644 --- a/packages/flodash/test/modules/string/starts_with_test.dart +++ b/packages/flodash/test/modules/string/starts_with_test.dart @@ -2,19 +2,19 @@ import 'package:flutter_test/flutter_test.dart'; import 'package:flodash/flodash.dart' as flodash; void main() { - test('startsWith should return true if the string starts with the target', () { + test('should return true if the string starts with the target', () { String string = 'abc'; String target = 'a'; bool result = flodash.startsWith(string, target); expect(result, true); }); - test('startsWith should return false if the string does not start with the target', () { + test('should return false if the string does not start with the target', () { String string = 'abc'; String target = 'b'; bool result = flodash.startsWith(string, target); expect(result, false); }); - test('startsWith should return true if the string starts with the target at the specified position', () { + test('should return true if the string starts with the target at the specified position', () { String string = 'abc'; String target = 'b'; int position = 1; From fdd12f59b102a4b3cbf4f5137207c7458d3a6f85 Mon Sep 17 00:00:00 2001 From: GIHAA Date: Fri, 30 Jun 2023 19:33:26 +0530 Subject: [PATCH 37/50] Refactor: changes added --- packages/flodash/lib/modules/string/starts_with.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flodash/lib/modules/string/starts_with.dart b/packages/flodash/lib/modules/string/starts_with.dart index 4a6ebc4..3f53f8b 100644 --- a/packages/flodash/lib/modules/string/starts_with.dart +++ b/packages/flodash/lib/modules/string/starts_with.dart @@ -11,7 +11,7 @@ /// - (Boolean): Returns true if the string starts with the target string at the specified position; otherwise, returns false -@Deprecated('The function toUpper() is deprecated. Use the built-in startsWith() method instead.') +@Deprecated('The function startsWith() is deprecated. Use the built-in startsWith() method instead.') bool startsWith(String string, String target, [int position = 0]) { return string.startsWith(target, position); } \ No newline at end of file From db5faf9c4c0b56761b88f485efc1ce64bd30bfb1 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 13:16:12 +0530 Subject: [PATCH 38/50] Chore: formatted codebase --- packages/flodash/lib/modules/string/starts_with.dart | 8 ++++---- packages/flodash/lib/modules/string/to_lower.dart | 10 +++++----- packages/flodash/lib/modules/string/to_upper.dart | 10 +++++----- .../flodash/test/modules/string/starts_with_test.dart | 4 +++- .../flodash/test/modules/string/to_lower_test.dart | 8 ++++++-- .../flodash/test/modules/string/to_upper_test.dart | 8 ++++++-- 6 files changed, 29 insertions(+), 19 deletions(-) diff --git a/packages/flodash/lib/modules/string/starts_with.dart b/packages/flodash/lib/modules/string/starts_with.dart index 3f53f8b..5745150 100644 --- a/packages/flodash/lib/modules/string/starts_with.dart +++ b/packages/flodash/lib/modules/string/starts_with.dart @@ -5,13 +5,13 @@ /// - string (String): The string to be checked. /// - target (String): The target string that is expected to be at the beginning of the given string. /// - position (int): Optional parameter specifying the starting position in the given string to begin the comparison. Defaults to 0 -/// +/// /// Returns /// /// - (Boolean): Returns true if the string starts with the target string at the specified position; otherwise, returns false - -@Deprecated('The function startsWith() is deprecated. Use the built-in startsWith() method instead.') +@Deprecated( + 'The function startsWith() is deprecated. Use the built-in startsWith() method instead.') bool startsWith(String string, String target, [int position = 0]) { return string.startsWith(target, position); -} \ No newline at end of file +} diff --git a/packages/flodash/lib/modules/string/to_lower.dart b/packages/flodash/lib/modules/string/to_lower.dart index b6f1aa6..5440c94 100644 --- a/packages/flodash/lib/modules/string/to_lower.dart +++ b/packages/flodash/lib/modules/string/to_lower.dart @@ -1,15 +1,15 @@ /// Converts a string, as a whole, to lowercase. /// /// Arguments -/// +/// /// - (string): The string to convert. /// /// Returns -/// +/// /// - (string): The lowercase string. - -@Deprecated('The function toLower() is deprecated. Use the built-in toLowerCase() method instead.') +@Deprecated( + 'The function toLower() is deprecated. Use the built-in toLowerCase() method instead.') String toLower([String string = '']) { return string.toLowerCase(); -} \ No newline at end of file +} diff --git a/packages/flodash/lib/modules/string/to_upper.dart b/packages/flodash/lib/modules/string/to_upper.dart index 72821d7..2400d36 100644 --- a/packages/flodash/lib/modules/string/to_upper.dart +++ b/packages/flodash/lib/modules/string/to_upper.dart @@ -1,15 +1,15 @@ /// Converts a string, as a whole, to uppercase. /// /// Arguments -/// +/// /// - (string): The string to convert. /// /// Returns -/// +/// /// - (string): The uppercase string. - -@Deprecated('The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.') +@Deprecated( + 'The function toUpper() is deprecated. Use the built-in toUpperCase() method instead.') String toUpper([String string = '']) { return string.toUpperCase(); -} \ No newline at end of file +} diff --git a/packages/flodash/test/modules/string/starts_with_test.dart b/packages/flodash/test/modules/string/starts_with_test.dart index 4b938ec..cc794db 100644 --- a/packages/flodash/test/modules/string/starts_with_test.dart +++ b/packages/flodash/test/modules/string/starts_with_test.dart @@ -14,7 +14,9 @@ void main() { bool result = flodash.startsWith(string, target); expect(result, false); }); - test('should return true if the string starts with the target at the specified position', () { + test( + 'should return true if the string starts with the target at the specified position', + () { String string = 'abc'; String target = 'b'; int position = 1; diff --git a/packages/flodash/test/modules/string/to_lower_test.dart b/packages/flodash/test/modules/string/to_lower_test.dart index c3308ad..a6e9aa7 100644 --- a/packages/flodash/test/modules/string/to_lower_test.dart +++ b/packages/flodash/test/modules/string/to_lower_test.dart @@ -8,13 +8,17 @@ void main() { String result = flodash.toLower(input); expect(result, expected); }); - test('should convert the string to lower case when it contains both lowercase and uppercase characters', () { + test( + 'should convert the string to lower case when it contains both lowercase and uppercase characters', + () { String input = 'fooBar'; String expected = 'foobar'; String result = flodash.toLower(input); expect(result, expected); }); - test('should convert the string to lower case while preserving special characters', () { + test( + 'should convert the string to lower case while preserving special characters', + () { String input = '__FOO_BAR__'; String expected = '__foo_bar__'; String result = flodash.toLower(input); diff --git a/packages/flodash/test/modules/string/to_upper_test.dart b/packages/flodash/test/modules/string/to_upper_test.dart index 847b577..e5c833f 100644 --- a/packages/flodash/test/modules/string/to_upper_test.dart +++ b/packages/flodash/test/modules/string/to_upper_test.dart @@ -8,13 +8,17 @@ void main() { String result = flodash.toUpper(input); expect(result, expected); }); - test('should convert the string to upper case when it contains both lowercase and uppercase characters', () { + test( + 'should convert the string to upper case when it contains both lowercase and uppercase characters', + () { String input = 'fooBar'; String expected = 'FOOBAR'; String result = flodash.toUpper(input); expect(result, expected); }); - test('should convert the string to upper case while preserving special characters', () { + test( + 'should convert the string to upper case while preserving special characters', + () { String input = '__foo_bar__'; String expected = '__FOO_BAR__'; String result = flodash.toUpper(input); From 33b719ff4c0adae3e2144cd660d3fef027cda51c Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 13:19:13 +0530 Subject: [PATCH 39/50] Feat!: bumped firestore dependency versions --- .github/actions/release/action.yml | 3 +- .github/workflows/prerelease.yml | 2 + .github/workflows/release.yml | 4 +- .github/workflows/tests.yml | 1 + .../example/pubspec.lock | 143 +++++++++++------- .../example/pubspec.yaml | 2 +- .../flutter/generated_plugin_registrant.cc | 3 + .../windows/flutter/generated_plugins.cmake | 1 + .../enhanced_cloud_firestore/pubspec.lock | 122 +++++++++------ .../enhanced_cloud_firestore/pubspec.yaml | 2 +- packages/flodash/pubspec.lock | 92 ++++++----- packages/flodash/pubspec.yaml | 5 - 12 files changed, 234 insertions(+), 146 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 6d550c4..4509e7f 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -63,6 +63,7 @@ runs: - name: Update release info run: | + git add . && git commit --amend --no-edit || true git config pull.ff true - git pull --rebase && git push origin --tags + git pull --rebase && git push origin shell: bash diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 3154929..075c92b 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -7,11 +7,13 @@ on: jobs: unit-tests: + name: Run Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ./.github/actions/test release: + name: Release packages runs-on: ubuntu-latest needs: unit-tests steps: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c73f63b..f4cf365 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,11 +7,13 @@ on: jobs: unit-tests: + name: Run Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - uses: ./.github/actions/unit-tests - prerelease: + release: + name: Release packages runs-on: ubuntu-latest needs: unit-tests steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 24bc040..8281911 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,6 +5,7 @@ on: jobs: unit-tests: + name: Run Tests runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index f1e0181..eecda11 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -5,77 +5,88 @@ packages: dependency: transitive description: name: _flutterfire_internals - url: "https://pub.dartlang.org" + sha256: d84d98f1992976775f83083523a34c5d22fea191eec3abb2bd09537fb623c2e0 + url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.3.7" async: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" cloud_firestore: dependency: transitive description: name: cloud_firestore - url: "https://pub.dartlang.org" + sha256: "1179ae4c69e2ea18179d844d70fc6ed2f082a2bbeb7fa62d35a2a24e2992bd4d" + url: "https://pub.dev" source: hosted - version: "3.5.1" + version: "4.9.3" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface - url: "https://pub.dartlang.org" + sha256: acdcf0743bbdd0e6b342f3d2033e15d260a2c6f9434dd34b008b8f1c35e62b23 + url: "https://pub.dev" source: hosted - version: "5.7.7" + version: "5.16.2" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web - url: "https://pub.dartlang.org" + sha256: "321bb0732c8d782a49aede96805e59609e05cf98b6c34370faa04103f46a4a3a" + url: "https://pub.dev" source: hosted - version: "2.8.10" + version: "3.7.2" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.17.1" crypto: dependency: transitive description: name: crypto - url: "https://pub.dartlang.org" + sha256: aa274aa7774f8964e4f4f38cc994db7b6158dd36e9187aaceaddc994b35c6c67 + url: "https://pub.dev" source: hosted version: "3.0.2" cupertino_icons: dependency: "direct main" description: name: cupertino_icons - url: "https://pub.dartlang.org" + sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be + url: "https://pub.dev" source: hosted version: "1.0.5" enhanced_cloud_firestore: @@ -89,37 +100,42 @@ packages: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" faker: dependency: "direct main" description: name: faker - url: "https://pub.dartlang.org" + sha256: "746e59f91d8b06a389e74cf76e909a05ed69c12691768e2f93557fdf29200fd0" + url: "https://pub.dev" source: hosted version: "2.1.0" firebase_core: dependency: "direct main" description: name: firebase_core - url: "https://pub.dartlang.org" + sha256: "95580fa07c8ca3072a2bb1fecd792616a33f8683477d25b7d29d3a6a399e6ece" + url: "https://pub.dev" source: hosted - version: "1.24.0" + version: "2.17.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - url: "https://pub.dartlang.org" + sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 + url: "https://pub.dev" source: hosted version: "4.8.0" firebase_core_web: dependency: transitive description: name: firebase_core_web - url: "https://pub.dartlang.org" + sha256: e8c408923cd3a25bd342c576a114f2126769cd1a57106a4edeaa67ea4a84e962 + url: "https://pub.dev" source: hosted - version: "1.7.3" + version: "2.8.0" flutter: dependency: "direct main" description: flutter @@ -129,14 +145,16 @@ packages: dependency: "direct main" description: name: flutter_dotenv - url: "https://pub.dartlang.org" + sha256: "9357883bdd153ab78cbf9ffa07656e336b8bbb2b5a3ca596b0b27e119f7c7d77" + url: "https://pub.dev" source: hosted version: "5.1.0" flutter_lints: dependency: "direct dev" description: name: flutter_lints - url: "https://pub.dartlang.org" + sha256: b543301ad291598523947dc534aaddc5aaad597b709d2426d3a0e0d44c5cb493 + url: "https://pub.dev" source: hosted version: "1.0.4" flutter_test: @@ -153,49 +171,56 @@ packages: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" source: hosted - version: "0.6.4" + version: "0.6.7" lints: dependency: transitive description: name: lints - url: "https://pub.dartlang.org" + sha256: a2c3d198cb5ea2e179926622d433331d8b58374ab8f29cdda6e863bd62fd369c + url: "https://pub.dev" source: hosted version: "1.0.1" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.2.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.8.3" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - url: "https://pub.dartlang.org" + sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" + url: "https://pub.dev" source: hosted version: "2.1.4" sky_engine: @@ -207,58 +232,66 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.5.1" typed_data: dependency: transitive description: name: typed_data - url: "https://pub.dartlang.org" + sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c + url: "https://pub.dev" source: hosted version: "1.3.2" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" sdks: - dart: ">=2.18.0 <3.0.0" + dart: ">=3.0.0-0 <3.7.0" flutter: ">=3.3.0" diff --git a/packages/enhanced_cloud_firestore/example/pubspec.yaml b/packages/enhanced_cloud_firestore/example/pubspec.yaml index 8b5c04f..1ff2076 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.yaml +++ b/packages/enhanced_cloud_firestore/example/pubspec.yaml @@ -12,7 +12,7 @@ dependencies: cupertino_icons: ^1.0.2 flutter_dotenv: ^5.0.2 - firebase_core: ^1.12.0 + firebase_core: ^2.15.1 faker: ^2.0.0 enhanced_cloud_firestore: path: ../ diff --git a/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugin_registrant.cc b/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugin_registrant.cc index 8b6d468..1a82e7d 100644 --- a/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugin_registrant.cc +++ b/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugin_registrant.cc @@ -6,6 +6,9 @@ #include "generated_plugin_registrant.h" +#include void RegisterPlugins(flutter::PluginRegistry* registry) { + FirebaseCorePluginCApiRegisterWithRegistrar( + registry->GetRegistrarForPlugin("FirebaseCorePluginCApi")); } diff --git a/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugins.cmake b/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugins.cmake index b93c4c3..fa8a39b 100644 --- a/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugins.cmake +++ b/packages/enhanced_cloud_firestore/example/windows/flutter/generated_plugins.cmake @@ -3,6 +3,7 @@ # list(APPEND FLUTTER_PLUGIN_LIST + firebase_core ) list(APPEND FLUTTER_FFI_PLUGIN_LIST diff --git a/packages/enhanced_cloud_firestore/pubspec.lock b/packages/enhanced_cloud_firestore/pubspec.lock index ec6bf9b..57b088d 100644 --- a/packages/enhanced_cloud_firestore/pubspec.lock +++ b/packages/enhanced_cloud_firestore/pubspec.lock @@ -5,93 +5,106 @@ packages: dependency: transitive description: name: _flutterfire_internals - url: "https://pub.dartlang.org" + sha256: d84d98f1992976775f83083523a34c5d22fea191eec3abb2bd09537fb623c2e0 + url: "https://pub.dev" source: hosted - version: "1.0.2" + version: "1.3.7" async: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" cloud_firestore: dependency: "direct main" description: name: cloud_firestore - url: "https://pub.dartlang.org" + sha256: "1179ae4c69e2ea18179d844d70fc6ed2f082a2bbeb7fa62d35a2a24e2992bd4d" + url: "https://pub.dev" source: hosted - version: "3.5.1" + version: "4.9.3" cloud_firestore_platform_interface: dependency: transitive description: name: cloud_firestore_platform_interface - url: "https://pub.dartlang.org" + sha256: acdcf0743bbdd0e6b342f3d2033e15d260a2c6f9434dd34b008b8f1c35e62b23 + url: "https://pub.dev" source: hosted - version: "5.7.7" + version: "5.16.2" cloud_firestore_web: dependency: transitive description: name: cloud_firestore_web - url: "https://pub.dartlang.org" + sha256: "321bb0732c8d782a49aede96805e59609e05cf98b6c34370faa04103f46a4a3a" + url: "https://pub.dev" source: hosted - version: "2.8.10" + version: "3.7.2" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.17.1" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" firebase_core: dependency: transitive description: name: firebase_core - url: "https://pub.dartlang.org" + sha256: "95580fa07c8ca3072a2bb1fecd792616a33f8683477d25b7d29d3a6a399e6ece" + url: "https://pub.dev" source: hosted - version: "1.24.0" + version: "2.17.0" firebase_core_platform_interface: dependency: transitive description: name: firebase_core_platform_interface - url: "https://pub.dartlang.org" + sha256: b63e3be6c96ef5c33bdec1aab23c91eb00696f6452f0519401d640938c94cba2 + url: "https://pub.dev" source: hosted version: "4.8.0" firebase_core_web: dependency: transitive description: name: firebase_core_web - url: "https://pub.dartlang.org" + sha256: e8c408923cd3a25bd342c576a114f2126769cd1a57106a4edeaa67ea4a84e962 + url: "https://pub.dev" source: hosted - version: "1.7.3" + version: "2.8.0" flutter: dependency: "direct main" description: flutter @@ -111,42 +124,48 @@ packages: dependency: transitive description: name: js - url: "https://pub.dartlang.org" + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" source: hosted - version: "0.6.4" + version: "0.6.7" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.2.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.8.3" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface - url: "https://pub.dartlang.org" + sha256: "6a2128648c854906c53fa8e33986fc0247a1116122f9534dd20e3ab9e16a32bc" + url: "https://pub.dev" source: hosted version: "2.1.4" sky_engine: @@ -158,51 +177,58 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.5.1" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" sdks: - dart: ">=2.18.0 <3.0.0" + dart: ">=3.0.0-0 <3.7.0" flutter: ">=3.3.0" diff --git a/packages/enhanced_cloud_firestore/pubspec.yaml b/packages/enhanced_cloud_firestore/pubspec.yaml index 07ac0fa..5160d54 100644 --- a/packages/enhanced_cloud_firestore/pubspec.yaml +++ b/packages/enhanced_cloud_firestore/pubspec.yaml @@ -10,7 +10,7 @@ environment: dependencies: flutter: sdk: flutter - cloud_firestore: ^3.1.9 + cloud_firestore: ^4.0.0 dev_dependencies: flutter_test: diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index 60cce15..dc901ad 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -5,46 +5,52 @@ packages: dependency: transitive description: name: async - url: "https://pub.dartlang.org" + sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" + url: "https://pub.dev" source: hosted - version: "2.9.0" + version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector - url: "https://pub.dartlang.org" + sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" characters: dependency: transitive description: name: characters - url: "https://pub.dartlang.org" + sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" + url: "https://pub.dev" source: hosted - version: "1.2.1" + version: "1.3.0" clock: dependency: transitive description: name: clock - url: "https://pub.dartlang.org" + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf + url: "https://pub.dev" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection - url: "https://pub.dartlang.org" + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + url: "https://pub.dev" source: hosted - version: "1.16.0" + version: "1.17.1" fake_async: dependency: transitive description: name: fake_async - url: "https://pub.dartlang.org" + sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" + url: "https://pub.dev" source: hosted version: "1.3.1" flutter: - dependency: "direct main" + dependency: transitive description: flutter source: sdk version: "0.0.0" @@ -53,34 +59,46 @@ packages: description: flutter source: sdk version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" matcher: dependency: transitive description: name: matcher - url: "https://pub.dartlang.org" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + url: "https://pub.dev" source: hosted - version: "0.12.12" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - url: "https://pub.dartlang.org" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + url: "https://pub.dev" source: hosted - version: "0.1.5" + version: "0.2.0" meta: dependency: transitive description: name: meta - url: "https://pub.dartlang.org" + sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3" + url: "https://pub.dev" source: hosted - version: "1.8.0" + version: "1.9.1" path: dependency: transitive description: name: path - url: "https://pub.dartlang.org" + sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + url: "https://pub.dev" source: hosted - version: "1.8.2" + version: "1.8.3" sky_engine: dependency: transitive description: flutter @@ -90,51 +108,57 @@ packages: dependency: transitive description: name: source_span - url: "https://pub.dartlang.org" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + url: "https://pub.dev" source: hosted - version: "1.9.0" + version: "1.9.1" stack_trace: dependency: transitive description: name: stack_trace - url: "https://pub.dartlang.org" + sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5 + url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.0" stream_channel: dependency: transitive description: name: stream_channel - url: "https://pub.dartlang.org" + sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8" + url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" string_scanner: dependency: transitive description: name: string_scanner - url: "https://pub.dartlang.org" + sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" + url: "https://pub.dev" source: hosted - version: "1.1.1" + version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph - url: "https://pub.dartlang.org" + sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 + url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api - url: "https://pub.dartlang.org" + sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + url: "https://pub.dev" source: hosted - version: "0.4.12" + version: "0.5.1" vector_math: dependency: transitive description: name: vector_math - url: "https://pub.dartlang.org" + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" + url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.4" sdks: - dart: ">=2.17.0-0 <3.0.0" - flutter: ">=1.17.0" + dart: ">=3.0.0-0 <3.7.0" diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index f565d45..15b9f90 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -5,11 +5,6 @@ repository: https://github.com/sliit-foss/flodash environment: sdk: ">=2.12.0 <3.7.0" - flutter: ">=1.17.0" - -dependencies: - flutter: - sdk: flutter dev_dependencies: flutter_test: From cdd2349ee94236f71a872575c9be5ea807e45076 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Oct 2023 08:23:31 +0000 Subject: [PATCH 40/50] CI: sync release --- CHANGELOG.md | 35 +++++++++++++++++ .../enhanced_cloud_firestore/CHANGELOG.md | 7 ++++ .../example/pubspec.lock | 30 +++++++++------ .../enhanced_cloud_firestore/pubspec.lock | 30 +++++++++------ .../enhanced_cloud_firestore/pubspec.yaml | 2 +- packages/enhanced_http/example/pubspec.lock | 26 ++++++------- packages/enhanced_http/pubspec.lock | 38 +++++++++---------- packages/flodash/CHANGELOG.md | 14 +++++++ packages/flodash/pubspec.lock | 38 +++++++++---------- packages/flodash/pubspec.yaml | 2 +- 10 files changed, 147 insertions(+), 75 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ffa0904..b797fdf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,41 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-10-15 + +### Changes + +--- + +Packages with breaking changes: + + - [`enhanced_cloud_firestore` - `v2.0.0-blizzard.0`](#enhanced_cloud_firestore---v200-blizzard0) + - [`flodash` - `v1.1.0-blizzard.3`](#flodash---v110-blizzard3) + +Packages with other changes: + + - There are no other changes in this release. + +--- + +#### `enhanced_cloud_firestore` - `v2.0.0-blizzard.0` + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + +#### `flodash` - `v1.1.0-blizzard.3` + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + + ## 2023-06-25 ### Changes diff --git a/packages/enhanced_cloud_firestore/CHANGELOG.md b/packages/enhanced_cloud_firestore/CHANGELOG.md index 7928521..bac383d 100644 --- a/packages/enhanced_cloud_firestore/CHANGELOG.md +++ b/packages/enhanced_cloud_firestore/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.0.0-blizzard.0 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 1.0.1 * Initial release. diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index eecda11..b8347c0 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -69,10 +69,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" crypto: dependency: transitive description: @@ -187,18 +187,18 @@ packages: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -232,10 +232,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -272,10 +272,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" typed_data: dependency: transitive description: @@ -292,6 +292,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" flutter: ">=3.3.0" diff --git a/packages/enhanced_cloud_firestore/pubspec.lock b/packages/enhanced_cloud_firestore/pubspec.lock index 57b088d..bf09c5c 100644 --- a/packages/enhanced_cloud_firestore/pubspec.lock +++ b/packages/enhanced_cloud_firestore/pubspec.lock @@ -69,10 +69,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" fake_async: dependency: transitive description: @@ -132,18 +132,18 @@ packages: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -177,10 +177,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -217,10 +217,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" vector_math: dependency: transitive description: @@ -229,6 +229,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" flutter: ">=3.3.0" diff --git a/packages/enhanced_cloud_firestore/pubspec.yaml b/packages/enhanced_cloud_firestore/pubspec.yaml index 5160d54..b71b5de 100644 --- a/packages/enhanced_cloud_firestore/pubspec.yaml +++ b/packages/enhanced_cloud_firestore/pubspec.yaml @@ -1,6 +1,6 @@ name: enhanced_cloud_firestore description: A wrapper around the cloud firestore dart package with support for filtering sorting, limiting, error handling, and success scenarios -version: 1.0.1 +version: 2.0.0-blizzard.0 repository: https://github.com/sliit-foss/enchanced_cloud_firestore environment: diff --git a/packages/enhanced_http/example/pubspec.lock b/packages/enhanced_http/example/pubspec.lock index 0fac52b..6c413c5 100644 --- a/packages/enhanced_http/example/pubspec.lock +++ b/packages/enhanced_http/example/pubspec.lock @@ -53,10 +53,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" crypto: dependency: transitive description: @@ -133,22 +133,14 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -346,6 +338,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" win32: dependency: transitive description: @@ -363,5 +363,5 @@ packages: source: hosted version: "0.2.0+1" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" flutter: ">=3.3.0" diff --git a/packages/enhanced_http/pubspec.lock b/packages/enhanced_http/pubspec.lock index f7bb080..ccd2571 100644 --- a/packages/enhanced_http/pubspec.lock +++ b/packages/enhanced_http/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" fake_async: dependency: transitive description: @@ -75,30 +75,22 @@ packages: url: "https://pub.dev" source: hosted version: "4.0.2" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -124,10 +116,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -164,10 +156,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" typed_data: dependency: transitive description: @@ -184,5 +176,13 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index b8ddf14..c88c03a 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,17 @@ +## 1.1.0-blizzard.3 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 1.1.0-blizzard.2 - **FEAT**: array/compact generic support. diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index dc901ad..f5ea8a7 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" fake_async: dependency: transitive description: @@ -59,30 +59,22 @@ packages: description: flutter source: sdk version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -108,10 +100,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -148,10 +140,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" vector_math: dependency: transitive description: @@ -160,5 +152,13 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index 15b9f90..2aa0030 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.2 +version: 1.1.0-blizzard.3 repository: https://github.com/sliit-foss/flodash environment: From 64575ea3d633c8b958cb85e50ff7860afb207daa Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 14:06:37 +0530 Subject: [PATCH 41/50] Fix: removed flutter dependency from flodash Closes #91 --- packages/flodash/lib/_utils/_general.dart | 3 ++ .../flodash/lib/modules/array/difference.dart | 5 +-- .../flodash/lib/modules/lang/is_equal.dart | 4 +- packages/flodash/pubspec.lock | 38 +++++++++---------- 4 files changed, 26 insertions(+), 24 deletions(-) create mode 100644 packages/flodash/lib/_utils/_general.dart diff --git a/packages/flodash/lib/_utils/_general.dart b/packages/flodash/lib/_utils/_general.dart new file mode 100644 index 0000000..c838024 --- /dev/null +++ b/packages/flodash/lib/_utils/_general.dart @@ -0,0 +1,3 @@ +listEquals(List a, List b) { + return a.toSet().difference(b.toSet()).isEmpty && a.length == b.length; +} diff --git a/packages/flodash/lib/modules/array/difference.dart b/packages/flodash/lib/modules/array/difference.dart index fdb11dd..0c93886 100644 --- a/packages/flodash/lib/modules/array/difference.dart +++ b/packages/flodash/lib/modules/array/difference.dart @@ -1,7 +1,6 @@ -import 'package:flutter/foundation.dart'; - import 'flatten.dart'; +import '../../_utils/_general.dart'; import '../../_utils/_varargs.dart'; final difference = VarargsFunction((arguments) { @@ -17,7 +16,7 @@ final difference = VarargsFunction((arguments) { if (e is Map) { return subList .whereType() - .where((m) => mapEquals(e, m)) + .where((m) => e.toString() == m.toString()) .toList() .isEmpty; } diff --git a/packages/flodash/lib/modules/lang/is_equal.dart b/packages/flodash/lib/modules/lang/is_equal.dart index 7d186e6..b0ee9d3 100644 --- a/packages/flodash/lib/modules/lang/is_equal.dart +++ b/packages/flodash/lib/modules/lang/is_equal.dart @@ -1,7 +1,7 @@ -import 'package:flutter/foundation.dart'; +import '../../_utils/_general.dart'; bool isEqual(a, b) { if (a is List && b is List) return listEquals(a, b); - if (a is Map && b is Map) return mapEquals(a, b); + if (a is Map && b is Map) return a.toString() == b.toString(); return a == b; } diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index f5ea8a7..dc901ad 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.17.1" fake_async: dependency: transitive description: @@ -59,22 +59,30 @@ packages: description: flutter source: sdk version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.2.0" meta: dependency: transitive description: @@ -100,10 +108,10 @@ packages: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.9.1" stack_trace: dependency: transitive description: @@ -140,10 +148,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.5.1" vector_math: dependency: transitive description: @@ -152,13 +160,5 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - web: - dependency: transitive - description: - name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 - url: "https://pub.dev" - source: hosted - version: "0.1.4-beta" sdks: - dart: ">=3.1.0-185.0.dev <3.7.0" + dart: ">=3.0.0-0 <3.7.0" From 06aee13c69d193c49ecfe7b24d60127ae6187753 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Oct 2023 08:40:57 +0000 Subject: [PATCH 42/50] CI: sync release --- CHANGELOG.md | 38 +++++++++++++++++++ .../enhanced_cloud_firestore/CHANGELOG.md | 7 ++++ .../example/pubspec.lock | 2 +- .../enhanced_cloud_firestore/pubspec.yaml | 2 +- packages/flodash/CHANGELOG.md | 17 +++++++++ packages/flodash/pubspec.lock | 38 +++++++++---------- packages/flodash/pubspec.yaml | 2 +- 7 files changed, 84 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b797fdf..c2ac926 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,44 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-10-15 + +### Changes + +--- + +Packages with breaking changes: + + - [`enhanced_cloud_firestore` - `v2.0.0-blizzard.1`](#enhanced_cloud_firestore---v200-blizzard1) + - [`flodash` - `v1.1.0-blizzard.4`](#flodash---v110-blizzard4) + +Packages with other changes: + + - There are no other changes in this release. + +--- + +#### `enhanced_cloud_firestore` - `v2.0.0-blizzard.1` + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + +#### `flodash` - `v1.1.0-blizzard.4` + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FIX**: removed flutter dependency from flodash. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + + ## 2023-10-15 ### Changes diff --git a/packages/enhanced_cloud_firestore/CHANGELOG.md b/packages/enhanced_cloud_firestore/CHANGELOG.md index bac383d..47545c0 100644 --- a/packages/enhanced_cloud_firestore/CHANGELOG.md +++ b/packages/enhanced_cloud_firestore/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.0.0-blizzard.1 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 2.0.0-blizzard.0 > Note: This release has breaking changes. diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index b8347c0..ed81208 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -95,7 +95,7 @@ packages: path: ".." relative: true source: path - version: "1.0.1" + version: "2.0.0-blizzard.0" fake_async: dependency: transitive description: diff --git a/packages/enhanced_cloud_firestore/pubspec.yaml b/packages/enhanced_cloud_firestore/pubspec.yaml index b71b5de..3f96449 100644 --- a/packages/enhanced_cloud_firestore/pubspec.yaml +++ b/packages/enhanced_cloud_firestore/pubspec.yaml @@ -1,6 +1,6 @@ name: enhanced_cloud_firestore description: A wrapper around the cloud firestore dart package with support for filtering sorting, limiting, error handling, and success scenarios -version: 2.0.0-blizzard.0 +version: 2.0.0-blizzard.1 repository: https://github.com/sliit-foss/enchanced_cloud_firestore environment: diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index c88c03a..9af4d3d 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,20 @@ +## 1.1.0-blizzard.4 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FIX**: removed flutter dependency from flodash. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 1.1.0-blizzard.3 > Note: This release has breaking changes. diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index dc901ad..f5ea8a7 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" fake_async: dependency: transitive description: @@ -59,30 +59,22 @@ packages: description: flutter source: sdk version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -108,10 +100,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -148,10 +140,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" vector_math: dependency: transitive description: @@ -160,5 +152,13 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index 2aa0030..18e84d4 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.3 +version: 1.1.0-blizzard.4 repository: https://github.com/sliit-foss/flodash environment: From 26d2f754797d006687c88892ecc5a81c3cb8606c Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 14:59:46 +0530 Subject: [PATCH 43/50] CI: added graduate flag to primary release action --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f4cf365..330a148 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,4 +20,5 @@ jobs: - uses: actions/checkout@v3 - uses: ./.github/actions/release with: - credentials: ${{ secrets.PUB_CREDENTIALS }} \ No newline at end of file + credentials: ${{ secrets.PUB_CREDENTIALS }} + options: "--graduate" \ No newline at end of file From 6a23a876086b3a70e6aac0a8d000c8d7c9f576e9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Oct 2023 09:33:33 +0000 Subject: [PATCH 44/50] CI: sync release --- CHANGELOG.md | 38 +++++++++++++++++++ .../enhanced_cloud_firestore/CHANGELOG.md | 7 ++++ .../example/pubspec.lock | 2 +- .../enhanced_cloud_firestore/pubspec.yaml | 2 +- packages/flodash/CHANGELOG.md | 17 +++++++++ packages/flodash/pubspec.yaml | 2 +- 6 files changed, 65 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2ac926..1750185 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,44 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-10-15 + +### Changes + +--- + +Packages with breaking changes: + + - [`enhanced_cloud_firestore` - `v2.0.0-blizzard.2`](#enhanced_cloud_firestore---v200-blizzard2) + - [`flodash` - `v1.1.0-blizzard.5`](#flodash---v110-blizzard5) + +Packages with other changes: + + - There are no other changes in this release. + +--- + +#### `enhanced_cloud_firestore` - `v2.0.0-blizzard.2` + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + +#### `flodash` - `v1.1.0-blizzard.5` + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FIX**: removed flutter dependency from flodash. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + + ## 2023-10-15 ### Changes diff --git a/packages/enhanced_cloud_firestore/CHANGELOG.md b/packages/enhanced_cloud_firestore/CHANGELOG.md index 47545c0..b6ea592 100644 --- a/packages/enhanced_cloud_firestore/CHANGELOG.md +++ b/packages/enhanced_cloud_firestore/CHANGELOG.md @@ -1,3 +1,10 @@ +## 2.0.0-blizzard.2 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 2.0.0-blizzard.1 > Note: This release has breaking changes. diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index ed81208..1cb360b 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -95,7 +95,7 @@ packages: path: ".." relative: true source: path - version: "2.0.0-blizzard.0" + version: "2.0.0-blizzard.1" fake_async: dependency: transitive description: diff --git a/packages/enhanced_cloud_firestore/pubspec.yaml b/packages/enhanced_cloud_firestore/pubspec.yaml index 3f96449..48bf180 100644 --- a/packages/enhanced_cloud_firestore/pubspec.yaml +++ b/packages/enhanced_cloud_firestore/pubspec.yaml @@ -1,6 +1,6 @@ name: enhanced_cloud_firestore description: A wrapper around the cloud firestore dart package with support for filtering sorting, limiting, error handling, and success scenarios -version: 2.0.0-blizzard.1 +version: 2.0.0-blizzard.2 repository: https://github.com/sliit-foss/enchanced_cloud_firestore environment: diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index 9af4d3d..fde44ca 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,20 @@ +## 1.1.0-blizzard.5 + +> Note: This release has breaking changes. + + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **REFACTOR**: changes added. + - **FIX**: removed flutter dependency from flodash. + - **FEAT**: added starts_with under the string manipulation. + - **FEAT**: added to_lower under the string manipulation. + - **FEAT**: added to_upper under the string manipulation. + - **FEAT**: array/compact generic support. + - **FEAT**: added generics. + - **BREAKING** **FEAT**: bumped firestore dependency versions. + ## 1.1.0-blizzard.4 > Note: This release has breaking changes. diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index 18e84d4..eb6119f 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.4 +version: 1.1.0-blizzard.5 repository: https://github.com/sliit-foss/flodash environment: From 2ec456797c7a2f21d20c8b7823ae00fffdd5fbaf Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 15:11:08 +0530 Subject: [PATCH 45/50] Refactor: named workflow steps --- .github/actions/release/action.yml | 2 +- .github/workflows/prerelease.yml | 18 +++++++++++++----- .github/workflows/release.yml | 18 +++++++++++++----- .github/workflows/tests.yml | 7 +++++-- 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 4509e7f..1f04461 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -58,7 +58,7 @@ runs: shell: bash - name: Publish packages - run: melos publish --no-dry-run --yes + run: melos publish --no-published --no-dry-run --yes shell: bash - name: Update release info diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 075c92b..a73bbda 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -10,15 +10,23 @@ jobs: name: Run Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/test + - name: Checkout repository 🛎️ + uses: actions/checkout@v4 + + - name: Run Tests 🧪 + uses: ./.github/actions/test release: name: Release packages runs-on: ubuntu-latest needs: unit-tests steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/release + - name: Checkout repository 🛎️ + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Initiate release 📦 + uses: ./.github/actions/release with: credentials: ${{ secrets.PUB_CREDENTIALS }} - options: "--prerelease --preid=blizzard" \ No newline at end of file + options: "--prerelease --preid=blizzard --diff=origin/development...HEAD" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 330a148..67835d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,15 +10,23 @@ jobs: name: Run Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/unit-tests + - name: Checkout repository 🛎️ + uses: actions/checkout@v4 + + - name: Run Tests 🧪 + uses: ./.github/actions/unit-tests release: name: Release packages runs-on: ubuntu-latest needs: unit-tests steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/release + - name: Checkout repository 🛎️ + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Initiate release 📦 + uses: ./.github/actions/release with: credentials: ${{ secrets.PUB_CREDENTIALS }} - options: "--graduate" \ No newline at end of file + options: "--graduate --diff=origin/main...HEAD" \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8281911..d7ab8be 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,5 +8,8 @@ jobs: name: Run Tests runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: ./.github/actions/test \ No newline at end of file + - name: Checkout repository 🛎️ + uses: actions/checkout@v4 + + - name: Run Tests 🧪 + uses: ./.github/actions/test \ No newline at end of file From 753aa9c3dd11105abd2665e479d0d4ba6f4d337d Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 15:19:54 +0530 Subject: [PATCH 46/50] Refactor: added fetch depth to test steps --- .github/actions/release/action.yml | 3 --- .github/workflows/prerelease.yml | 2 ++ .github/workflows/release.yml | 2 ++ .github/workflows/tests.yml | 4 +++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index 1f04461..b25ab77 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -25,9 +25,6 @@ runs: git config --global user.name "github-actions[bot]" shell: bash - - run: git fetch --prune --unshallow - shell: bash - - name: Install dependencies run: | dart pub global activate melos diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index a73bbda..ebdeb17 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -15,6 +15,8 @@ jobs: - name: Run Tests 🧪 uses: ./.github/actions/test + with: + fetch-depth: 0 release: name: Release packages runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 67835d4..2a0d3a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,8 @@ jobs: - name: Run Tests 🧪 uses: ./.github/actions/unit-tests + with: + fetch-depth: 0 release: name: Release packages runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d7ab8be..fc6483b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -12,4 +12,6 @@ jobs: uses: actions/checkout@v4 - name: Run Tests 🧪 - uses: ./.github/actions/test \ No newline at end of file + uses: ./.github/actions/test + with: + fetch-depth: 0 \ No newline at end of file From 721a9594a5c4c3cec98490c76585f325394fe731 Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 15:22:55 +0530 Subject: [PATCH 47/50] Refactor: fix test checkout fetch depth --- .github/workflows/prerelease.yml | 5 +++-- .github/workflows/release.yml | 5 +++-- .github/workflows/tests.yml | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index ebdeb17..6da7841 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -12,11 +12,12 @@ jobs: steps: - name: Checkout repository 🛎️ uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Run Tests 🧪 uses: ./.github/actions/test - with: - fetch-depth: 0 + release: name: Release packages runs-on: ubuntu-latest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a0d3a4..24fd375 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,11 +12,12 @@ jobs: steps: - name: Checkout repository 🛎️ uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Run Tests 🧪 uses: ./.github/actions/unit-tests - with: - fetch-depth: 0 + release: name: Release packages runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index fc6483b..a5a7dce 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,8 +10,8 @@ jobs: steps: - name: Checkout repository 🛎️ uses: actions/checkout@v4 + with: + fetch-depth: 0 - name: Run Tests 🧪 - uses: ./.github/actions/test - with: - fetch-depth: 0 \ No newline at end of file + uses: ./.github/actions/test \ No newline at end of file From 66e2bd7cf966683806596160114a19c5e165481c Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 15:22:55 +0530 Subject: [PATCH 48/50] Refactor: fix test checkout fetch depth --- packages/enhanced_cloud_firestore/example/pubspec.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/enhanced_cloud_firestore/example/pubspec.lock b/packages/enhanced_cloud_firestore/example/pubspec.lock index 1cb360b..a5a3bba 100644 --- a/packages/enhanced_cloud_firestore/example/pubspec.lock +++ b/packages/enhanced_cloud_firestore/example/pubspec.lock @@ -95,7 +95,7 @@ packages: path: ".." relative: true source: path - version: "2.0.0-blizzard.1" + version: "2.0.0-blizzard.2" fake_async: dependency: transitive description: From 73fc9c5d9941a808cff25174bdf28d85c156efdd Mon Sep 17 00:00:00 2001 From: Akalanka Date: Sun, 15 Oct 2023 16:13:57 +0530 Subject: [PATCH 49/50] Feat: added number clamp Closes #56 --- .github/actions/release/action.yml | 2 +- .github/workflows/prerelease.yml | 2 +- .github/workflows/release.yml | 2 +- .../flodash/lib/modules/number/clamp.dart | 27 +++++++++++++ packages/flodash/lib/modules/number/main.dart | 1 + .../lib/modules/string/starts_with.dart | 2 +- packages/flodash/pubspec.lock | 38 +++++++++---------- .../test/modules/number/clamp_test.dart | 22 +++++++++++ 8 files changed, 73 insertions(+), 23 deletions(-) create mode 100644 packages/flodash/lib/modules/number/clamp.dart create mode 100644 packages/flodash/test/modules/number/clamp_test.dart diff --git a/.github/actions/release/action.yml b/.github/actions/release/action.yml index b25ab77..9e8c933 100644 --- a/.github/actions/release/action.yml +++ b/.github/actions/release/action.yml @@ -51,7 +51,7 @@ runs: - name: Bump versions run: | - melos version --yes --message="CI: sync release" ${{ inputs.options }} + melos version --yes --message="CI: sync release" --diff=$(git log --skip=1 -n 1 --pretty=format:"%H") ${{ inputs.options }} shell: bash - name: Publish packages diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 6da7841..048706a 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -32,4 +32,4 @@ jobs: uses: ./.github/actions/release with: credentials: ${{ secrets.PUB_CREDENTIALS }} - options: "--prerelease --preid=blizzard --diff=origin/development...HEAD" \ No newline at end of file + options: "--prerelease --preid=blizzard" \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24fd375..54157dc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,4 +32,4 @@ jobs: uses: ./.github/actions/release with: credentials: ${{ secrets.PUB_CREDENTIALS }} - options: "--graduate --diff=origin/main...HEAD" \ No newline at end of file + options: "--graduate" \ No newline at end of file diff --git a/packages/flodash/lib/modules/number/clamp.dart b/packages/flodash/lib/modules/number/clamp.dart new file mode 100644 index 0000000..1c93ff9 --- /dev/null +++ b/packages/flodash/lib/modules/number/clamp.dart @@ -0,0 +1,27 @@ +/// Clamps number within the inclusive lower and upper bounds. +/// +/// Arguments +/// +/// - number (num): The number to clamp. +/// - [lower] (num): The lower bound. +/// - upper (num): The upper bound. +/// +/// Returns +/// +/// - (num): Returns the clamped number. +dynamic clamp(num number, num? lower, [num? upper]) { + if (upper == null) { + upper = lower; + if (number > upper!) { + return upper; + } + return number; + } else { + if (number > upper) { + return upper; + } else if (number < lower!) { + return lower; + } + return number; + } +} diff --git a/packages/flodash/lib/modules/number/main.dart b/packages/flodash/lib/modules/number/main.dart index 5cac874..662c782 100644 --- a/packages/flodash/lib/modules/number/main.dart +++ b/packages/flodash/lib/modules/number/main.dart @@ -1 +1,2 @@ +export 'clamp.dart'; export 'random.dart'; diff --git a/packages/flodash/lib/modules/string/starts_with.dart b/packages/flodash/lib/modules/string/starts_with.dart index 5745150..6db85a8 100644 --- a/packages/flodash/lib/modules/string/starts_with.dart +++ b/packages/flodash/lib/modules/string/starts_with.dart @@ -1,4 +1,4 @@ -///Checks if string starts with the given target string. +/// Checks if string starts with the given target string. /// /// Arguments /// diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index f5ea8a7..dc901ad 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 + sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" url: "https://pub.dev" source: hosted - version: "1.17.2" + version: "1.17.1" fake_async: dependency: transitive description: @@ -59,22 +59,30 @@ packages: description: flutter source: sdk version: "0.0.0" + js: + dependency: transitive + description: + name: js + sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 + url: "https://pub.dev" + source: hosted + version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.15" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.2.0" meta: dependency: transitive description: @@ -100,10 +108,10 @@ packages: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.9.1" stack_trace: dependency: transitive description: @@ -140,10 +148,10 @@ packages: dependency: transitive description: name: test_api - sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" + sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb url: "https://pub.dev" source: hosted - version: "0.6.0" + version: "0.5.1" vector_math: dependency: transitive description: @@ -152,13 +160,5 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" - web: - dependency: transitive - description: - name: web - sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 - url: "https://pub.dev" - source: hosted - version: "0.1.4-beta" sdks: - dart: ">=3.1.0-185.0.dev <3.7.0" + dart: ">=3.0.0-0 <3.7.0" diff --git a/packages/flodash/test/modules/number/clamp_test.dart b/packages/flodash/test/modules/number/clamp_test.dart new file mode 100644 index 0000000..4582882 --- /dev/null +++ b/packages/flodash/test/modules/number/clamp_test.dart @@ -0,0 +1,22 @@ +import 'package:flodash/flodash.dart' as flodash; + +import 'package:flutter_test/flutter_test.dart'; + +main() { + test('lower', () { + expect(flodash.clamp(-10, -5, 5), equals(-5)); + }); + test('upper', () { + expect(flodash.clamp(10, -5, 5), equals(5)); + }); + test('in range', () { + expect(flodash.clamp(3, -5, 5), equals(3)); + }); + test('2 arguments - upper', () { + expect(flodash.clamp(12, 6), equals(6)); + }); + test('2 arguments - in range', () { + expect(flodash.clamp(4, 6), equals(4)); + expect(flodash.clamp(-500, 5), equals(-500)); + }); +} From d852e4841d9512a97645a38a6697f7844446cc75 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 15 Oct 2023 11:04:12 +0000 Subject: [PATCH 50/50] CI: sync release --- CHANGELOG.md | 21 +++++++++++++++++++ packages/flodash/CHANGELOG.md | 4 ++++ packages/flodash/pubspec.lock | 38 +++++++++++++++++------------------ packages/flodash/pubspec.yaml | 2 +- 4 files changed, 45 insertions(+), 20 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1750185..a678849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,27 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 2023-10-15 + +### Changes + +--- + +Packages with breaking changes: + + - There are no breaking changes in this release. + +Packages with other changes: + + - [`flodash` - `v1.1.0-blizzard.6`](#flodash---v110-blizzard6) + +--- + +#### `flodash` - `v1.1.0-blizzard.6` + + - **FEAT**: added number clamp. + + ## 2023-10-15 ### Changes diff --git a/packages/flodash/CHANGELOG.md b/packages/flodash/CHANGELOG.md index fde44ca..ca5d708 100644 --- a/packages/flodash/CHANGELOG.md +++ b/packages/flodash/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.1.0-blizzard.6 + + - **FEAT**: added number clamp. + ## 1.1.0-blizzard.5 > Note: This release has breaking changes. diff --git a/packages/flodash/pubspec.lock b/packages/flodash/pubspec.lock index dc901ad..f5ea8a7 100644 --- a/packages/flodash/pubspec.lock +++ b/packages/flodash/pubspec.lock @@ -37,10 +37,10 @@ packages: dependency: transitive description: name: collection - sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c" + sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687 url: "https://pub.dev" source: hosted - version: "1.17.1" + version: "1.17.2" fake_async: dependency: transitive description: @@ -59,30 +59,22 @@ packages: description: flutter source: sdk version: "0.0.0" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" matcher: dependency: transitive description: name: matcher - sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb" + sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted - version: "0.12.15" + version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724 + sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted - version: "0.2.0" + version: "0.5.0" meta: dependency: transitive description: @@ -108,10 +100,10 @@ packages: dependency: transitive description: name: source_span - sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250 + sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.10.0" stack_trace: dependency: transitive description: @@ -148,10 +140,10 @@ packages: dependency: transitive description: name: test_api - sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb + sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8" url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "0.6.0" vector_math: dependency: transitive description: @@ -160,5 +152,13 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + web: + dependency: transitive + description: + name: web + sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10 + url: "https://pub.dev" + source: hosted + version: "0.1.4-beta" sdks: - dart: ">=3.0.0-0 <3.7.0" + dart: ">=3.1.0-185.0.dev <3.7.0" diff --git a/packages/flodash/pubspec.yaml b/packages/flodash/pubspec.yaml index eb6119f..05b1d44 100644 --- a/packages/flodash/pubspec.yaml +++ b/packages/flodash/pubspec.yaml @@ -1,6 +1,6 @@ name: flodash description: A dart implementation of the popular JavaScript library Lodash -version: 1.1.0-blizzard.5 +version: 1.1.0-blizzard.6 repository: https://github.com/sliit-foss/flodash environment: