promesa icon indicating copy to clipboard operation
promesa copied to clipboard

Breaking change between V10 & V11, incompatibility with google API (gapi) Promises

Open milelo opened this issue 1 year ago • 0 comments

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)))))

milelo avatar Jan 18 '24 17:01 milelo