pouchdb.d.ts icon indicating copy to clipboard operation
pouchdb.d.ts copied to clipboard

Pouchdb version

Open AGBrown opened this issue 9 years ago • 24 comments

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 avatar Dec 07 '15 13:12 AGBrown

@AGBrown Do you mean 5.x here? https://github.com/pouchdb/pouchdb/releases

NickColley avatar Dec 07 '15 13:12 NickColley

@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.

AGBrown avatar Dec 07 '15 13:12 AGBrown

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.

filionf avatar Dec 07 '15 14:12 filionf

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.

fredgalvao avatar Dec 07 '15 19:12 fredgalvao

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.

AGBrown avatar Dec 08 '15 18:12 AGBrown

+1

sebglon avatar Dec 08 '15 20:12 sebglon

+1

mfilotto avatar Dec 08 '15 21:12 mfilotto

+1

dbalage avatar Dec 08 '15 22:12 dbalage

Groovy - I'll put that on my todo list.

AGBrown avatar Dec 10 '15 13:12 AGBrown

+1

ximex avatar Jan 19 '16 14:01 ximex

+1

mrblackus avatar Feb 26 '16 10:02 mrblackus

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

Kethku avatar Feb 28 '16 08:02 Kethku

@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.

AGBrown avatar Feb 28 '16 13:02 AGBrown

@Devagamster I just found pouchdb and, like you, want to use typescript. So ill start updating the typings. C:

andreujuanc avatar Mar 29 '16 15:03 andreujuanc

+1

episage avatar Mar 30 '16 14:03 episage

+1

S4RD7R avatar Apr 01 '16 03:04 S4RD7R

+1

mlegenhausen avatar Apr 08 '16 13:04 mlegenhausen

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?

andreujuanc avatar Apr 11 '16 08:04 andreujuanc

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

S4RD7R avatar Apr 11 '16 21:04 S4RD7R

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.

andreujuanc avatar Apr 12 '16 18:04 andreujuanc

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.

filionf avatar Apr 12 '16 19:04 filionf

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

S4RD7R avatar Apr 13 '16 06:04 S4RD7R

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.

andreujuanc avatar Apr 15 '16 08:04 andreujuanc

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

andreujuanc avatar Apr 15 '16 08:04 andreujuanc