promesa
promesa copied to clipboard
Breaking change between V10 & V11, incompatibility with google API (gapi) Promises
I'm trying to upgrade from [funcool/promesa "10.0.594"] to [funcool/promesa "11.0.678"]
The latter isn't compatible with google api promises, they are no longer recognised by promesa as promises:
https://google.github.io/closure-library/api/goog.Thenable.html https://github.com/google/google-api-javascript-client
As a work around I'm using an adaptor that resolves the issue:
(defn $promise [gapi-promise]
(p/create (fn [resolve reject]
(-> gapi-promise
(.then resolve)
(.catch reject)))))