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 bluebird promises with node's native promises #25822

Merged
merged 4 commits into from
Dec 4, 2019
Merged

🏗🚮 Replace bluebird promises with node's native promises #25822

merged 4 commits into from
Dec 4, 2019

Conversation

rsimha
Copy link
Contributor

@rsimha rsimha commented Dec 2, 2019

Several of AMP's gulp tasks use the bluebird package for promise functionality because they were written at a time when node did not natively support promises.

PR highlights:

  • Replaces Promise from bluebird with node's native Promise
  • Replaces Promise.all from bluebird with node's native Promise.all
  • Replaces promisify from bluebird with node's native util.promisify
  • Replaces promisifyAll from bluebird with native promise APIs of fs and fs-extra
  • Completely removes bluebird from package.json

References:

Closes #25810
Resolves #25318 (comment)

@amp-owners-bot
Copy link

amp-owners-bot bot commented Dec 2, 2019

Hey @alanorozco, these files were changed:

  • build-system/server/app-index/index.js
  • build-system/server/app-index/test/test-self.js
  • build-system/server/app-index/util/listing.js

build-system/server/app-index/index.js Outdated Show resolved Hide resolved
Copy link
Contributor

@rcebulko rcebulko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@alanorozco alanorozco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this @rsimha!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants