@stdlib/utils-async-group-by 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
1
+ Copyright (c) 2016-2026 The Stdlib Authors.
package/README.md CHANGED
@@ -505,7 +505,7 @@ See [LICENSE][stdlib-license].
505
505
 
506
506
  ## Copyright
507
507
 
508
- Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
508
+ Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
509
509
 
510
510
  </section>
511
511
 
@@ -518,8 +518,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
518
518
  [npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-group-by.svg
519
519
  [npm-url]: https://npmjs.org/package/@stdlib/utils-async-group-by
520
520
 
521
- [test-image]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml/badge.svg?branch=v0.2.1
522
- [test-url]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml?query=branch:v0.2.1
521
+ [test-image]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml/badge.svg?branch=v0.2.3
522
+ [test-url]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml?query=branch:v0.2.3
523
523
 
524
524
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-group-by/main.svg
525
525
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async-group-by?branch=main
@@ -531,8 +531,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
531
531
 
532
532
  -->
533
533
 
534
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
535
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
534
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
535
+ [chat-url]: https://stdlib.zulipchat.com
536
536
 
537
537
  [stdlib]: https://github.com/stdlib-js/stdlib
538
538
 
@@ -85,7 +85,7 @@ interface ValuesResults<T> {
85
85
  /**
86
86
  * Interface describing group results when returning indices.
87
87
  */
88
- interface IndicesResults<T> {
88
+ interface IndicesResults {
89
89
  /**
90
90
  * Results for an individual group.
91
91
  */
@@ -128,7 +128,7 @@ type ValuesBinary<T> = ( error: Error | null, result: ValuesResults<T> ) => void
128
128
  * @param error - encountered error or null
129
129
  * @param result - group results
130
130
  */
131
- type IndicesBinary<T> = ( error: Error | null, result: IndicesResults<T> ) => void;
131
+ type IndicesBinary = ( error: Error | null, result: IndicesResults ) => void;
132
132
 
133
133
  /**
134
134
  * Callback invoked either upon processing all collection elements or upon encountering an error.
@@ -152,7 +152,7 @@ type ValuesCallback<T> = Nullary | Unary | ValuesBinary<T>;
152
152
  * @param error - encountered error or null
153
153
  * @param result - group results
154
154
  */
155
- type IndicesCallback<T> = Nullary | Unary | IndicesBinary<T>;
155
+ type IndicesCallback = Nullary | Unary | IndicesBinary;
156
156
 
157
157
  /**
158
158
  * Callback invoked either upon processing all collection elements or upon encountering an error.
@@ -241,7 +241,7 @@ type ValuesFactoryFunction<T> = ( collection: Collection<T>, done: ValuesCallbac
241
241
  * @param collection - input collection
242
242
  * @param done - function to invoke upon completion
243
243
  */
244
- type IndicesFactoryFunction<T> = ( collection: Collection<T>, done: IndicesCallback<T> ) => void;
244
+ type IndicesFactoryFunction<T> = ( collection: Collection<T>, done: IndicesCallback ) => void;
245
245
 
246
246
  /**
247
247
  * Invokes an indicator function for each element in a collection.
@@ -303,7 +303,7 @@ interface GroupByAsync {
303
303
  *
304
304
  * groupByAsync( files, {}, indicator, done );
305
305
  */
306
- <T = unknown, V = unknown>( collection: Collection<T>, options: IndicesOptions<T, V>, indicator: Indicator<T, V>, done: IndicesCallback<T> ): void;
306
+ <T = unknown, V = unknown>( collection: Collection<T>, options: IndicesOptions<T, V>, indicator: Indicator<T, V>, done: IndicesCallback ): void;
307
307
 
308
308
  /**
309
309
  * Groups values according to an indicator function.
@@ -487,7 +487,7 @@ interface GroupByAsync {
487
487
  * };
488
488
  *
489
489
  * // Create a `groupByAsync` function which invokes the indicator function for each collection element sequentially:
490
- * var groupByAsync = factory( opts, indicator );
490
+ * var groupBy = groupByAsync.factory( opts, indicator );
491
491
  *
492
492
  * // Create a collection over which to iterate:
493
493
  * var files = [
@@ -504,7 +504,7 @@ interface GroupByAsync {
504
504
  * }
505
505
  *
506
506
  * // Try to read each element in `files`:
507
- * groupByAsync( files, done );
507
+ * groupBy( files, done );
508
508
  */
509
509
  factory<T = unknown, V = unknown>( options: IndicesOptions<T, V>, indicator: Indicator<T, V> ): IndicesFactoryFunction<T>;
510
510
 
@@ -546,7 +546,7 @@ interface GroupByAsync {
546
546
  * };
547
547
  *
548
548
  * // Create a `groupByAsync` function which invokes the indicator function for each collection element sequentially:
549
- * var groupByAsync = factory( opts, indicator );
549
+ * var groupBy = groupByAsync.factory( opts, indicator );
550
550
  *
551
551
  * // Create a collection over which to iterate:
552
552
  * var files = [
@@ -563,7 +563,7 @@ interface GroupByAsync {
563
563
  * }
564
564
  *
565
565
  * // Try to read each element in `files`:
566
- * groupByAsync( files, done );
566
+ * groupBy( files, done );
567
567
  */
568
568
  factory<T = unknown, V = unknown>( options: IndicesAndValuesOptions<T, V>, indicator: Indicator<T, V> ): IndicesAndValuesFactoryFunction<T>;
569
569
 
@@ -605,7 +605,7 @@ interface GroupByAsync {
605
605
  * };
606
606
  *
607
607
  * // Create a `groupByAsync` function which invokes the indicator function for each collection element sequentially:
608
- * var groupByAsync = factory( opts, indicator );
608
+ * var groupBy = groupByAsync.factory( opts, indicator );
609
609
  *
610
610
  * // Create a collection over which to iterate:
611
611
  * var files = [
@@ -622,7 +622,7 @@ interface GroupByAsync {
622
622
  * }
623
623
  *
624
624
  * // Try to read each element in `files`:
625
- * groupByAsync( files, done );
625
+ * groupBy( files, done );
626
626
  */
627
627
  factory<T = unknown, V = unknown>( options: ValuesOptions<T, V> | BaseOptions<T, V>, indicator: Indicator<T, V> ): ValuesFactoryFunction<T>;
628
628
 
@@ -654,7 +654,7 @@ interface GroupByAsync {
654
654
  * }
655
655
  *
656
656
  * // Create a `groupByAsync` function which invokes the indicator function for each collection element sequentially:
657
- * var groupByAsync = factory( indicator );
657
+ * var groupBy = groupByAsync.factory( indicator );
658
658
  *
659
659
  * // Create a collection over which to iterate:
660
660
  * var files = [
@@ -671,7 +671,7 @@ interface GroupByAsync {
671
671
  * }
672
672
  *
673
673
  * // Try to read each element in `files`:
674
- * groupByAsync( files, done );
674
+ * groupBy( files, done );
675
675
  */
676
676
  factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): ValuesFactoryFunction<T>;
677
677
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-async-group-by",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Group values according to an indicator function.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -30,17 +30,18 @@
30
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@stdlib/assert-has-own-property": "^0.2.1",
34
- "@stdlib/assert-is-boolean": "^0.2.1",
35
- "@stdlib/assert-is-collection": "^0.2.1",
36
- "@stdlib/assert-is-function": "^0.2.1",
37
- "@stdlib/assert-is-plain-object": "^0.2.1",
38
- "@stdlib/assert-is-positive-integer": "^0.2.1",
39
- "@stdlib/constants-float64-pinf": "^0.2.1",
40
- "@stdlib/string-format": "^0.2.1",
41
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.1",
42
- "@stdlib/utils-index-of": "^0.2.1",
43
- "debug": "^2.6.9"
33
+ "@stdlib/assert-has-own-property": "^0.2.3",
34
+ "@stdlib/assert-is-boolean": "^0.2.3",
35
+ "@stdlib/assert-is-collection": "^0.2.3",
36
+ "@stdlib/assert-is-function": "^0.2.3",
37
+ "@stdlib/assert-is-plain-object": "^0.2.3",
38
+ "@stdlib/assert-is-positive-integer": "^0.2.3",
39
+ "@stdlib/constants-float64-pinf": "^0.2.3",
40
+ "@stdlib/string-format": "^0.2.3",
41
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.3",
42
+ "@stdlib/utils-index-of": "^0.2.3",
43
+ "debug": "^2.6.9",
44
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.3"
44
45
  },
45
46
  "devDependencies": {},
46
47
  "engines": {