-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Deprecations in PouchDB 4.0 #3834
Comments
What should I used in replacement for the update/create/delete events ? |
The same logic used to generate the events from the change event could be done in content, some of the semantics of those events may not be possible to strictly adhere to in couchdb 2.0 though (in particular the distinction between create + update) |
@zeroware bear in mind that the events were fairly unreliable as couchdb tends to lump them together so even in couchdb 1.0 it's pretty hard to get a create in some instances. |
For some concrete examples, check out this blog post which has some code samples. In general, they should all be easy to replace, but as @calvinmetcalf pointed out, I would avoid trying to distinguish between update/create (and you usually don't need to, notice that I don't in the blog post). There are just too edge cases that don't fit well, e.g. if two people create two documents with the exact same IDs, and thus you receive two revs that each start with |
I definitely missed something – what is the replacement for |
|
Related to #4098 |
Sprinkled a few commas here and there. Looks good otherwise; ship it! 👍
And released :) f381b44 |
Sprinkled a few commas here and there. Looks good otherwise; ship it! 👍
I think we're all itching to do a major release to get rid of some cruft, just trying to keep track of all the deprecations here:
uptodate
,outofdate
eventsPouchDB.destroy()
update/create/delete
eventsopts.onChange
(long deprecated)opts.complete
(ditto)Update: added
opts.onChange
andopts.complete
The text was updated successfully, but these errors were encountered: