Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Anton Myzenkov
76a6216365
[mongodb] Updated Logger class constructor. ( #23140 )
...
Changed parameter "options" of Logger class to optional.
2018-01-24 09:00:34 -08:00
Ankit Tyagi
1d84357470
@types/mongodb - add appname to MongoClientOptions ( #23060 )
...
- Based on
https://mongodb.github.io/node-mongodb-native/3.0/api/MongoClient.html#.connect
2018-01-23 10:44:30 -08:00
lihao
e2a3302098
export mongodb Logger ( #23122 )
...
* export mongodb Logger
* format file
2018-01-23 10:11:10 -08:00
Anton Myzenkov
19d6cbd330
[mongodb] Added ChangeStream class ( #22872 )
...
* [mongodb] Added ChangeStream class
* Replaced ChangeStreamCallback to MongoCallback
2018-01-18 10:17:58 -08:00
coyotte508
17d8fcc76f
Add id to mongodb gridfs upload streams ( #22930 )
...
As seen in http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream :
```js
var uploadStream = bucket.openUploadStream('test.dat');
var license = fs.readFileSync('./LICENSE');
var id = uploadStream.id;
```
The resulting stream from `openUploadStream` *has* an id.
2018-01-17 09:46:52 -08:00
Anton Myzenkov
0b9afcec90
[mongodb] Updates Options of Collection Methods ( #22855 )
2018-01-12 11:53:30 -08:00
Federico Caselli
84e265d13a
[mongodb] First update to bring the mongodb to version 3 ( #22626 )
...
* First update to bring the mongodb typings to version 3
* Updated tsconfig of the older v2 version
* Set mongodb version to 2 in packages with errors
* MongoClient extends form EventEmitter
2018-01-10 14:14:05 -08:00
Hinell
1a60d6ebf4
[mongodb] Adds ReplaceWriteOpResult
2017-12-17 00:54:09 +03:00
Federico Caselli
519d079279
Fixed autor link typo @mcortesi
2017-12-03 11:53:58 +01:00
CaselIT
c4db7383b8
Updated dbref and exported from mongodb. https://github.com/DefinitelyTyped/DefinitelyTyped/issues/21717
2017-11-27 22:33:05 +01:00
Mariano A. Cortesi
6b6db76b81
[mongodb] Include bufferMaxEntries as a MongoClientOption
2017-11-13 13:20:23 -03:00
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
Anton Myzenkov
58206d9fd3
[mongodb] Fix db.listCollections to use the optional parameter "filter" ( #20562 )
...
* [mongodb] Fix db.listCollections
Fix db.listCollections to return the information of a all collections.
* [mongodb] Fix db.listCollections
Added overload function for db.listCollections
* [mongodb] Fix db.listCollections
Fix db.listCollections to return the information of a all collections.
2017-10-23 12:50:54 -07:00
Anatoly Demidovich
862695fbb4
fix connect() overload ( #20674 )
2017-10-18 13:34:17 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Gaurav Lahoti
5795bd4edf
mongodb CollectionCreateOptions definition v2.2 update ( #20306 )
2017-10-06 10:18:30 -07:00
Danny Martini
09f8b5494b
mongodb: findOne may return null ( #20077 )
...
* mongodb: findOne may return null
* move union type from MongoCallback to `findOne`
2017-10-02 10:31:00 -07:00
Jason Dreyzehner
5fa93bc778
[mongodb] complete CollStats interface, add WiredTigerData interface
2017-08-25 01:27:30 -04:00
Anatoly Demidovich
c4d8f8c49c
Fix namespace
2017-08-17 10:44:40 +03:00
Anatoly Demidovich
b10b81eb21
Fix top level declaration
2017-08-17 10:17:25 +03:00
Anatoly Demidovich
f80a0dc0d9
Add connect() and ObjectId
2017-08-17 09:35:06 +03:00
Gady
32c1c2e72b
Improve Cursor.count ( #18504 )
2017-08-01 10:22:51 -07:00
Gady
4bcdd24cad
Mongodb insert many ( #18473 )
...
* Improve types for Collection.insertMany
* Add contribution
* Remove blank line
2017-07-28 10:03:05 -07:00
Alan Marcell
a060f7558c
Change replaceOne to Promise<UpdateWriteOpResult & { ops: Array<any> }>
2017-06-27 16:44:32 -03:00
Alan Marcell
6adf912c38
Add mongodb Collection.replaceOne(...) return type WriteOpResult
...
In case of Collection.replaceOne(..., {upsert:true}) the return type is an WriteOpResult
2017-06-25 18:32:48 -03:00
King.W
141e4d6a7b
Update mongodb-tests.ts
...
mongodb-tests.ts
2017-06-15 19:36:15 +08:00
King.W
a52b00b18b
Create index.d.ts
...
change type of `Default` to `any`
2017-06-15 17:21:47 +08:00
beary
424873bdfa
Add default generic to FindAndModify... interface
2017-06-09 09:37:32 +08:00
beary
1f3527ba51
Add default type argument to Collection interface
2017-06-08 10:58:40 +08:00
beary
a511933e67
Merge branch 'master' into master
2017-06-08 10:47:47 +08:00
Federico Caselli
7fc1644080
[mongodb] Added support for default generic types ( #16198 )
...
* Added support for ts2.3 default generic types
* Updated find and findOne
* Capitalized TypeScript Version
* Added missing TypeScript Version: 2.3
* Added TypeScript Version: 2.3 to express-brute-mongo; removed easy-jsend test dependency on mongoose
2017-06-07 10:41:33 -07:00
beary
e33c2ab476
Move ts version comment to correct location
2017-06-07 10:19:50 +08:00
beary
f421bc7be5
Move ts version comment to end of the header
2017-06-07 09:51:29 +08:00
beary
68153fbcfa
Add "// TypeScript Version: 2.3"'
2017-06-07 09:40:02 +08:00
hinell
aa3d118ed7
[Mongodb] MongoClient.connection() options v2.2. ( #16932 )
...
* Mongodb client.connect options v2.2
* Mongodb::dt-header typescript v2.0 -> v2.3
Read more on typescript ``object`` [type](https://github.com/Microsoft/TypeScript-Handbook/blob/master/pages/release%20notes/TypeScript%202.2.md#object-type )
* Fix trailing ' mark
* Ttravis errors,mongodb: downgrade TS version to 2.2
* Merge SocketOptions into MongoClientOptions
* Urgent fix MongoDB.connect() options
Most common SSL options now gathered in one
place in SSLOptions interface.
SSLOptions and newly added HighAvailabilityOptions interface
are shared by ServerOptions, MongosOptions
and ReplSetOptions interfaces respectively
SocketOptions extends SSLOptions.
Updates ReadPreference interface to v2.2
Updates docs links.
* Restore formatting style
* SocketOptions, ServerOptions & ReplSetOptions
SocketOptions
Removes extension of SSL- and HighAvailability- Options
ServerOptions
Adds missing options
ReplSetOptions
Adds missing extensions of SSL- and HighAvailability- Options
2017-06-05 06:31:55 -07:00
beary
b0d31d86b1
Add generic to findOneAnd*** functions
2017-05-04 19:19:41 +08:00
beary
22b3831e31
Add generic to collection
2017-05-04 18:22:34 +08:00
beary
920d2d7bdf
Add default generic to Collection
...
TypeScript support default generic since version 2.3, so add generic to Collection.
2017-05-04 18:13:19 +08:00
beeme1mr
950c9cdca9
Added a code property to MongoError ( #16242 )
...
Added missing code property to MongoError.
http://thecodebarbarian.com/mongoose-error-handling
2017-05-01 13:49:14 -07:00
Paul Murray
e8d4865015
fix CollectionAggregationOptions.maxTimeMS ( #16226 )
...
`maxTimeMS` on `CollectionAggregationOptions` should be `number` not `boolean`
2017-05-01 13:12:09 -07:00
Jakub Sedlacek
fc7212862d
mongodb: add partialFilterExpression to indexOptions ( #16109 )
...
Add an optional extended description…
2017-04-26 10:03:41 -07:00
Fábio Batista
16be2fcb11
@types/{bson,mongodb,mongoose}: added Decimal128 type
2017-04-07 21:18:51 -03:00
Federico Caselli
f54704a9eb
Added missing bson methods and removed duplication on mongodb
2017-03-31 13:42:17 +02:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00