pouchdb-community / pouchdb-authentication

User authentication plugin for PouchDB and CouchDB.
Apache License 2.0
775 stars 118 forks source link

Request for update to use with PouchDB 8.0.x #270

Open VladimirCores opened 1 year ago

VladimirCores commented 1 year ago

Current version 1.1.3 is not working with updated pouchdb 8.0.0 and ES6 building tools like vite. Please update the library so we can use it out of the box. Thanks.

Your Environment

baradhili commented 1 year ago

this hasn't been touched for years.. but I am looking to put some bounties together to get a bunch of plugins updated - interested in helping fund this?

jlami commented 1 year ago

This package is still working with pouchdb-ajax from pouch 6.4 It should still work, as the requests and api to login are still the same. If you have any specific errors/problems you can list it would be helpful. Maybe it is a toolchain limitation of vite?

I don't work with vite, but when I use this package with ember via ember-pouch it seems to work. Ember compiles with webpack and does use ES6 where possible I believe. I login on a http pouchdb adapter, which works fine. Could you tell us what you are trying?

I do agree that this package is due for some updates. We could see if we can start using pouchdb-fetch instead of ajax.

baradhili commented 1 year ago

vite is the cause of the problems - see https://github.com/pouchdb/pouchdb/issues/8516

ptitjes commented 1 year ago

I am very sorry for the lack of maintenance of this plugin. I personally do not use it anymore except in one old remaining project.

I am willing to review any PRs that would fix any of the current problems. So do not hesitate to contribute.

broerse commented 1 year ago

We have just updated to PouchDB 8.0.0 here https://bloggr.exmer.com/ with pouchdb-authentication. There seems to be no problem with ES6. But going for pouchdb-fetch instead of ajax seems like a plan. See also https://github.com/pouchdb-community/pouchdb-authentication/pull/254

ptitjes commented 1 year ago

@broerse I just merged #254. I will release a 1.1.4 version (for those using PouchDB 7).

Would you mind making a PR to bump to PouchDB 8 and test it against PouchDB 8? I would then release a 1.1.5 (or 2.0.0?).

broerse commented 1 year ago

@ptitjes I will discuss this with @jlami . Thanks!

VladimirCores commented 1 year ago

Hello everyone. Any updates? : )

VladimirCores commented 1 year ago

Friendly reminder about update on the library release. Could somebody make it?