pouchdb.d.ts
pouchdb.d.ts copied to clipboard
Pouchdb version
This project was originally created when pouchdb was on v3.4.0. Soon after PouchDb did a major version release, and is now on v4.0.3.
It seems pointless to support v3.x if nobody who uses this tsd actually uses v3.x of PouchDb.
If there are no objections I will formally change our minimum supported version to v4.0.3, which is the current PouchDb version.
Ping @fredgalvao @sebglon @iron9light @filionf @mfilotto for input on this, as I know you have/are all using/intending to use this tsd. Primarily - _can you let me know the minimum version of PouchDB that you currently use._
@AGBrown Do you mean 5.x here? https://github.com/pouchdb/pouchdb/releases
@nickcolley - thanks! That just makes this even more necessary to discuss. I only looked at the home page for pouchdb and saw v4.0.3 as the latest version.
I would rather not have to try and complete the tsd for v3.4.0, then assess the changes for all minor and major versions between that and v5.x. So, if everyone we know of is using v5.x as a minimum, then that makes our lives a lot easier - we'll just set v5.x as the minimum version for the tsd.
I am good with 5.x as the minimum version. I have other projects still on 3.x, but they will be upgraded sooner than later.
PouchDB is a pretty easy-to-keep-up-to-date project. I've been using the latest since I fetched the project for the first time, with no downsides. I'm on 5.1.0 on my main project, I see no reason not to bump this to reflect that.
3/6 votes so far in favour. We'll do this if we get one more +1, or no objections by the end of the week.
+1
+1
+1
Groovy - I'll put that on my todo list.
+1
+1
any news on this? I'm looking at porting my pouchdb app to typescript, but the lack of a good type definition is making it a real struggle...
@Devagamster - no news, I'm afraid. Maybe we could start with the community opening issues for missing features, and then we can start soliciting for PRs to close them. I am not using either typescript or pouchdb at the moment so I'm not best placed to do either of those, but I can review and merge.
@Devagamster I just found pouchdb and, like you, want to use typescript. So ill start updating the typings. C:
+1
+1
+1
Guys, i have few questions for you:
- What pouchdb plugins do you use?
- Do you use query method or find plugin?
- If you use query, which override do you use? String to match view name or map/reduce js?
Hi,
To answer your questions.
I use the find plugin. I want to use find but it has a few issues and I know that at some point query will be replaced by find.
I am surprised there isn’t a maintained pouchdb.d.ts file out there and I’m glad you are looking at it. Thanks
John Mooney [LogoForEmailSignatures] Ph: 1300 721 773 (+61 7 3194 3693 from overseas) www.migrationmanager.com.auhttp://www.migrationmanager.com.au/
NOTICE: CONFIDENTIAL COMMUNICATION This communication contains information which is confidential and the copyright of Migration Manager Pty Ltd or a third party. If you are not the intended recipient of this communication please delete and destroy all copies and telephone 1300 721 773 immediately. If you are the intended recipient of this communication you should not copy, disclose or distribute this communication without the express written permission of Migration Manager Pty Ltd. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of Migration Manager Pty Ltd. Except as required at law, Migration Manager Pty Ltd does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
From: Juan C. Andreu [mailto:[email protected]] Sent: Monday, 11 April 2016 6:48 PM To: AGBrown/pouchdb.d.ts [email protected] Cc: John Mooney [email protected] Subject: Re: [AGBrown/pouchdb.d.ts] Pouchdb version (#37)
Guys, i have few questions for you:
- What pouchdb plugins do you use?
- Do you use query method or find plugin?
- If you use query, which override do you use? String to match view name or map/reduce js?
— You are receiving this because you commented. Reply to this email directly or view it on GitHubhttps://github.com/AGBrown/pouchdb.d.ts/issues/37#issuecomment-208234659
I also had some problems when using Find.
Btw @MMJM What override of query() do you use? I think im going to change it to the string only. Since its WAY better to have indexes written as a design document, and simply call them via query when need it, instead of calling for map functions on query.
I am using the query with string as well exactly for the same reason (indexes). If have a pull request pending for the query function in the so you can use my version if you wish until it is accepted & merged.
I don’t really use it but I would definitely go for the string version and use design documents for indexes.
Thanks for asking
John Mooney [LogoForEmailSignatures] Ph: 1300 721 773 (+61 7 3194 3693 from overseas) www.migrationmanager.com.auhttp://www.migrationmanager.com.au/
NOTICE: CONFIDENTIAL COMMUNICATION This communication contains information which is confidential and the copyright of Migration Manager Pty Ltd or a third party. If you are not the intended recipient of this communication please delete and destroy all copies and telephone 1300 721 773 immediately. If you are the intended recipient of this communication you should not copy, disclose or distribute this communication without the express written permission of Migration Manager Pty Ltd. Any views expressed in this communication are those of the individual sender, except where the sender specifically states them to be the views of Migration Manager Pty Ltd. Except as required at law, Migration Manager Pty Ltd does not represent, warrant and/or guarantee that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
From: Juan C. Andreu [mailto:[email protected]] Sent: Wednesday, 13 April 2016 4:44 AM To: AGBrown/pouchdb.d.ts [email protected] Cc: John Mooney [email protected] Subject: Re: [AGBrown/pouchdb.d.ts] Pouchdb version (#37)
I also had some problems when using Find.
Btw @MMJMhttps://github.com/MMJM What override of query() do you use? I think im going to change it to the string only. Since its WAY better to have indexes written as a design document, and simply call them via query when need it, instead of calling for map functions on query.
— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHubhttps://github.com/AGBrown/pouchdb.d.ts/issues/37#issuecomment-209048446
Try this version, the string is only for promises version: Do you use callbacks? https://github.com/andreujuanc/pouchdb.d.ts/commit/f1e1008febf1c6fcda4d85aafa79d18a9b1cf97f Includes support for pouch-authentication, if its not used, then just ignore those methods.
I have no idea how to integrate a file for plugins so i just put them inside.
Also you can use sync!!! returns any, I didnt have time to type it.
var result = PouchDB.sync(this.db, this.remotedb, {
live: true,
retry: true
}).on('change', function (info) {
// handle change
}).on('paused', function () {
// replication paused (e.g. user went offline)
}).on('active', function () {
// replicate resumed (e.g. user went back online)
}).on('denied', function (info) {
// a document failed to replicate (e.g. due to permissions)
}).on('complete', function (info) {
// handle complete
}).on('error', function (err) {
// handle error
});