Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

Use native Promise #1986

Open
wants to merge 73 commits into
base: release/6.0.0
Choose a base branch
from

Conversation

bradleyayers
Copy link
Contributor

@bradleyayers bradleyayers commented Mar 27, 2018

Brief description of the changes

Convert all uses of qq.Promise or other promises to require native Promise instead.

What browsers and operating systems have you tested these changes on?

Firefox 59

Have you written unit tests? If not, explain why.

I've migrated existing tests to be async friendly.

I'm going to build off this branch for my product https://dovetailapp.com and give it some production testing. I'll be using the S3 chunked uploader.

Remaining issues

  • Replace PromiseOptions with Promise. Check implications of no longer allowing the promise to be resolved by callers (no more .success and .failure).

BREAKING CHANGE: An error is thrown on load if a native promise implementation is not available.
@rnicholus
Copy link
Member

Wow. I haven’t reviewed any of this yet, but it looks like you put a LOT of work into these changes...

If you’re willing, I’d like to chat more at your convenience.

@bradleyayers
Copy link
Contributor Author

Sure sounds good, what’s the best way to contact you?

@rnicholus
Copy link
Member

let's connect on twitter

@rnicholus
Copy link
Member

There are, arguably, too many changes to really review here. But tests are passing, and skimming though I didn't see anything that looked obviously wrong. So, maybe the best course if just to do some more manual testing, and if all looks good after a bit, merge it into the 6.0 branch. I'll probably pull this down myself and test it out when i get a chance.

@singhjusraj singhjusraj self-assigned this Oct 4, 2018
@singhjusraj singhjusraj added this to the 6.0.0 milestone Nov 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants