cozy / cozy-client-js

Javascript library to write Cozy applications
https://docs.cozy.io/en/cozy-client-js/README/
MIT License
11 stars 12 forks source link

chore: upgrade pouch #270

Closed y-lohse closed 6 years ago

y-lohse commented 6 years ago

I'd like to upgrade the PouchDB dependencies here, mainly because pouchdb-find on its current version has abyssal performances (at least compared to the newer version).

If I'm not mistaken, this change shouldn't have any effect outside of Drive, since I think it's the only app that uses the offline module. Am I wrong?

nono commented 6 years ago

@y-lohse the build on travis is red. It looks like leveldown is not correctly installed (it is a compiled module). I think you can try to increase node version in travis.yml (6 -> 8) and to have a single version of leveldown in yarn.lock.

y-lohse commented 6 years ago

@nono it seems that there are indeed 2 versions of leveldown, one comes from pouch, the other from cozy-data-system which I had never heard about 😮.

Still not sure how to resolve that, and why there wouldn't be any bindings at all…

nono commented 6 years ago

Cozy-data-system is for Cozy v2 (nodejs). I think we can remove Cozy v2 stuff from this repository. The other options are:

nono commented 6 years ago

and why there wouldn't be any bindings at all…

I think that when there are several versions of the same module, yarn use a different layout on the file system. The JS files are still found, but not the bindings.

y-lohse commented 6 years ago

(5) [forum-5712] Le tri est lent