matrix-org / matrix-org/matrix-js-sdk

Promise.defer warnings

Open
#578 2 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Easy Help Wanted T-Defect
Dominant language
TypeScript
Stars
2.2k
Forks
704
Avg merge
1d 20h
Merged PRs (30d)
40

Description

Getting a lot of these warnings:
```
Warning: Promise.defer is deprecated and will be removed in a future version. Use new Promise instead.
```

Seems that this is a now deprecated method (though not likely to be removed) in bluebird that causes tons of warnings. Doesn't really matter for production apps but fairly annoying spam in development.

See also https://github.com/petkaantonov/bluebird/issues/555

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin by searching the SDK for Promise.defer and checking its Bluebird usage, then compare the relevant calls with Bluebird issue 555. Done means the deprecated-warning spam is removed in development without changing the SDK’s promise behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
developer-experience
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.