Skip to content

Commit

Permalink
Version 5.1.0
Browse files Browse the repository at this point in the history
PR-URL: #238
  • Loading branch information
tshemsedinov committed Dec 17, 2023
1 parent 248ac81 commit 7cc42b1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## [Unreleased][unreleased]

## [5.1.0][] - 2023-12-17

- Support waiting for promise in `Collector.wait`
- Add `reassign: boolean` to `Collector` options

## [5.0.0][] - 2023-12-10

- Changed `Semaphore` signature, moved all parameters to `options`
Expand Down Expand Up @@ -276,7 +281,8 @@
See this link for 2.2.0 and all previous versions:
https://github.com/metarhia/common/blob/master/CHANGELOG.md

[unreleased]: https://github.com/metarhia/metautil/compare/v5.0.0....HEAD
[unreleased]: https://github.com/metarhia/metautil/compare/v5.1.0....HEAD
[5.1.0]: https://github.com/metarhia/metautil/compare/v5.0.0...v5.1.0
[5.0.0]: https://github.com/metarhia/metautil/compare/v4.0.1...v5.0.0
[4.0.1]: https://github.com/metarhia/metautil/compare/v4.0.0...v4.0.1
[4.0.0]: https://github.com/metarhia/metautil/compare/v3.15.0...v4.0.0
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
- `collect(keys: Array<string>, options?: CollectorOptions): Collector`
- `options.exact?: boolean`
- `options.timeout?: number`
- `options.reassign?: boolean`

## Class `Collector`

Expand All @@ -30,6 +31,7 @@ Async collection is an utility to collect needed keys and signalize on done.
- `constructor(keys: Array<string>, options?: CollectorOptions)`
- `options.exact?: boolean`
- `options.timeout?: number`
- `options.reassign?: boolean`
- `set(key: string, value: unknown)`
- `wait(key: string, fn: AsyncFunction | Promise<unknown>, ...args?: Array<unknown>)`
- `take(key: string, fn: Function, ...args?: Array<unknown>)`
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metautil",
"version": "5.0.0",
"version": "5.1.0",
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>",
"license": "MIT",
"description": "Metarhia utilities",
Expand Down

0 comments on commit 7cc42b1

Please sign in to comment.