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

Removed bluebird from frontend/meta #14940

Merged
merged 2 commits into from
Aug 24, 2022
Merged

Removed bluebird from frontend/meta #14940

merged 2 commits into from
Aug 24, 2022

Conversation

Navarjun
Copy link
Contributor

Issue #14882

  • Bluebird promise was being used for getting cached image sizes using .props method. It has been removed to be replaced by native promise using Promise.all

@codecov
Copy link

codecov bot commented May 30, 2022

Codecov Report

Merging #14940 (5a94add) into main (3231863) will increase coverage by 0.00%.
The diff coverage is 39.58%.

@@           Coverage Diff           @@
##             main   #14940   +/-   ##
=======================================
  Coverage   52.60%   52.60%           
=======================================
  Files        1392     1392           
  Lines       89130    89137    +7     
  Branches    10131    10130    -1     
=======================================
+ Hits        46884    46888    +4     
- Misses      42194    42197    +3     
  Partials       52       52           
Impacted Files Coverage Δ
ghost/core/core/frontend/meta/image-dimensions.js 55.07% <38.29%> (+5.89%) ⬆️
ghost/core/core/frontend/meta/get-meta.js 100.00% <100.00%> (ø)
ghost/admin/app/components/gh-file-uploader.js 89.47% <0.00%> (-2.26%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Navarjun added a commit to Navarjun/Ghost that referenced this pull request May 31, 2022
TryGhost#14940
another file that was using BB has been freed of the dependency. Both the files are core/frontend/meta/get-meta.js is dependent on image-dimensions.js in the same folder.
BB was removed from image-dimensions in my previous commit
@Navarjun
Copy link
Contributor Author

I re-ran all the tests on my end… everything passes. In the subsequent commits, I have removed BB from another file in the same folder.

@ErisDS
Copy link
Member

ErisDS commented Jun 3, 2022

Hey @Navarjun, nice to see you here! Thank you for this PR, really appreciate you taking the time to help out. I've just updated the original issue to be a bit clearer that we need to remove catch predicates first (and why). I'll hold onto this PR and merge it once that work is done.

@anlexN

This comment was marked as off-topic.

Navarjun and others added 2 commits August 24, 2022 14:15
Issue TryGhost#14882
- Bluebird promise was being used for getting cached image sizes using .props method. It has been removed to be replaced by native promise using Promise.all
TryGhost#14940
another file that was using BB has been freed of the dependency. Both the files are core/frontend/meta/get-meta.js is dependent on image-dimensions.js in the same folder.
BB was removed from image-dimensions in my previous commit
@ErisDS ErisDS changed the title Removed bluebird dependency Removed bluebird from frontend/meta Aug 24, 2022
@ErisDS ErisDS merged commit 57a786c into TryGhost:main Aug 24, 2022
@ErisDS
Copy link
Member

ErisDS commented Aug 24, 2022

Hey @Navarjun hope your'e doing well! We finally got rid of all the catch predicates, so I've merged this. Thanks again!

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.

3 participants