Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace await-semaphore with async-mutex #334

Merged
merged 1 commit into from
Feb 5, 2021
Merged

Conversation

Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Feb 2, 2021

We've had issues with await-semaphore causing TypeScript errors due to mistakes in how it is packaged. It generally seems to be abandoned.

async-mutex is more actively maintained, has better documentation and test coverage, and is API-compatible for our usage.

@Gudahtt
Copy link
Member Author

Gudahtt commented Feb 2, 2021

I'll leave this in draft until MetaMask/eth-json-rpc-filters#33 is merged and published. Until we purge this package from our dependency tree entirely, the same TypeScript error we ran into might crop up again.

Edit: This now depends upon #336

@Gudahtt Gudahtt force-pushed the replace-await-semaphore branch from 55a14c9 to 0ec62ea Compare February 5, 2021 17:43
@Gudahtt Gudahtt changed the base branch from develop to update-eth-json-rpc-filters-lockfile February 5, 2021 17:43
Base automatically changed from update-eth-json-rpc-filters-lockfile to develop February 5, 2021 18:52
@Gudahtt Gudahtt force-pushed the replace-await-semaphore branch from 0ec62ea to edc5299 Compare February 5, 2021 18:53

Verified

This commit was signed with the committer’s verified signature.
ewdurbin Ee Durbin
We've had issues with `await-semaphore` causing TypeScript errors due
to mistakes in how it is packaged. It generally seems to be abandoned.

`async-mutex` is more actively maintained, has better documentation and
test coverage, and is API-compatible for our usage.
@Gudahtt Gudahtt force-pushed the replace-await-semaphore branch from edc5299 to 40c9e38 Compare February 5, 2021 18:55
@Gudahtt Gudahtt marked this pull request as ready for review February 5, 2021 18:55
@Gudahtt Gudahtt requested a review from a team as a code owner February 5, 2021 18:55
@Gudahtt Gudahtt merged commit 49d3b0b into develop Feb 5, 2021
@Gudahtt Gudahtt deleted the replace-await-semaphore branch February 5, 2021 20:05
rickycodes added a commit that referenced this pull request Feb 18, 2021
…ba into feature/migrate-to-etherscan

* 'feature/migrate-to-etherscan' of github.com:MetaMask/gaba:
  Update `sinon` and `@types/sinon` to latest versions (#352)
  Fix `tsconfig.json` indentation (#355)
  Replace `fetch-mock` with `nock` (#340)
  Update `ethereumjs-wallet` from v0.6.5 to v1.0.1 (#347)
  Add `babel-runtime` dependency required by `ethjs-query` (#341)
  Update `@metamask/eslint-config` from v3 to v4.1.0 (#344)
  Add `docs` to list of ignored eslint patterns (#345)
  Update `uuid` from `v3.3.3` to `v8.3.2` (#346)
  Update approval controller test import (#339)
  Add Dependabot config (#343)
  Update `typedoc` (#342)
  Remove unused test module (#338)
  Replace `await-semaphore` with `async-mutex` (#334)
  Update `eth-json-rpc-filters` in lockfile (#336)
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
We've had issues with `await-semaphore` causing TypeScript errors due
to mistakes in how it is packaged. It generally seems to be abandoned.

`async-mutex` is more actively maintained, has better documentation and
test coverage, and is API-compatible for our usage.
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
We've had issues with `await-semaphore` causing TypeScript errors due
to mistakes in how it is packaged. It generally seems to be abandoned.

`async-mutex` is more actively maintained, has better documentation and
test coverage, and is API-compatible for our usage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants