Skip to content

Commit 19ea4c2

Browse files
committed
feat(NODE-3115): Add generic parameterization
MongoClient, Db, Collection, and Cursors can now accept generic parameters to type check the usage of the various API methods on each class. Using generics is kept optional.
1 parent 93f3ea5 commit 19ea4c2

33 files changed

+3167
-2558
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ yarn.lock
5555
lib/
5656
*.tgz
5757
*.d.ts
58+
# type definition tests
59+
!test/unit/types
5860

5961
.vscode
6062
output

CONTRIBUTORS.md

Lines changed: 98 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,100 @@
11
# Contributors
22

3-
- Christian Kvalheim
4-
- Matt Broadstone <<mbroadst@mongodb.com>>
5-
- Dan Aprahamian <<daniel.aprahamian@mongodb.com>>
6-
- Katherine Walker <<katherine.walker@mongodb.com>>
7-
- Aaron Heckmann
8-
- Christoph Pojer
9-
- Pau Ramon Revilla
10-
- Nathan White
11-
- Emmerman
12-
- Seth LaForge
13-
- Boris Filipov
14-
- Stefan Schärmeli
15-
- Tedde Lundgren
16-
- renctan
17-
- Sergey Ukustov
18-
- Ciaran Jessup
19-
- kuno
20-
- srimonti
21-
- Erik Abele
22-
- Pratik Daga
23-
- Slobodan Utvic
24-
- Kristina Chodorow
25-
- Yonathan Randolph
26-
- Brian Noguchi
27-
- Sam Epstein
28-
- James Harrison Fisher
29-
- Vladimir Dronnikov
30-
- Ben Hockey
31-
- Henrik Johansson
32-
- Simon Weare
33-
- Alex Gorbatchev
34-
- Shimon Doodkin
35-
- Kyle Mueller
36-
- Eran Hammer-Lahav
37-
- Marcin Ciszak
38-
- François de Metz
39-
- Vinay Pulim
40-
- nstielau
41-
- Adam Wiggins
42-
- entrinzikyl
43-
- Jeremy Selier
44-
- Ian Millington
45-
- Public Keating
46-
- andrewjstone
47-
- Christopher Stott
48-
- Corey Jewett
49-
- brettkiefer
50-
- Rob Holland
51-
- Senmiao Liu
52-
- heroic
53-
- gitfy
3+
- Christian Kvalheim
4+
- Matt Broadstone
5+
- Dan Aprahamian
6+
- Katherine Walker
7+
- Aaron Heckmann
8+
- Christoph Pojer
9+
- Pau Ramon Revilla
10+
- Nathan White
11+
- Emmerman
12+
- Seth LaForge
13+
- Boris Filipov
14+
- Stefan Schärmeli
15+
- Tedde Lundgren
16+
- renctan
17+
- Sergey Ukustov
18+
- Ciaran Jessup
19+
- kuno
20+
- srimonti
21+
- Erik Abele
22+
- Pratik Daga
23+
- Slobodan Utvic
24+
- Kristina Chodorow
25+
- Yonathan Randolph
26+
- Brian Noguchi
27+
- Sam Epstein
28+
- James Harrison Fisher
29+
- Vladimir Dronnikov
30+
- Ben Hockey
31+
- Henrik Johansson
32+
- Simon Weare
33+
- Alex Gorbatchev
34+
- Shimon Doodkin
35+
- Kyle Mueller
36+
- Eran Hammer-Lahav
37+
- Marcin Ciszak
38+
- François de Metz
39+
- Vinay Pulim
40+
- nstielau
41+
- Adam Wiggins
42+
- entrinzikyl
43+
- Jeremy Selier
44+
- Ian Millington
45+
- Public Keating
46+
- andrewjstone
47+
- Christopher Stott
48+
- Corey Jewett
49+
- brettkiefer
50+
- Rob Holland
51+
- Senmiao Liu
52+
- heroic
53+
- gitfy
54+
55+
## Maintainers
56+
57+
- Neal Beeken <<neal.beeken@mongodb.com>>
58+
- Eric Adum <<eric.adum@mongodb.com>>
59+
- Durran Jordan <<durran.jordan@mongodb.com>>
60+
61+
## Community Types
62+
63+
This release of the driver draws inspiration from the community contributed types to reduce upgrade friction as much as possible.
64+
We thank those listed below who contributed to the open source types, still available at `@types/mongodb` for versions prior to v4.
65+
66+
**Thank you!**
67+
68+
- Federico Caselli <https://github.com/CaselIT>
69+
- Alan Marcell <https://github.com/alanmarcell>
70+
- Gaurav Lahoti <https://github.com/dante-101>
71+
- Mariano Cortesi <https://github.com/mcortesi>
72+
- Enrico Picci <https://github.com/EnricoPicci>
73+
- Alexander Christie <https://github.com/AJCStriker>
74+
- Julien Chaumond <https://github.com/julien-c>
75+
- Dan Aprahamian <https://github.com/daprahamian>
76+
- Denys Bushulyak <https://github.com/denys-bushulyak>
77+
- Bastien Arata <https://github.com/BastienAr>
78+
- Wan Bachtiar <https://github.com/sindbach>
79+
- Geraldine Lemeur <https://github.com/geraldinelemeur>
80+
- Dominik Heigl <https://github.com/various89>
81+
- Angela-1 <https://github.com/angela-1>
82+
- Hector Ribes <https://github.com/hector7>
83+
- Florian Richter <https://github.com/floric>
84+
- Erik Christensen <https://github.com/erikc5000>
85+
- Nick Zahn <https://github.com/Manc>
86+
- Jarom Loveridge <https://github.com/jloveridge>
87+
- Luis Pais <https://github.com/ranguna>
88+
- Hossein Saniei <https://github.com/HosseinAgha>
89+
- Alberto Silva <https://github.com/albertossilva>
90+
- Piotr Błażejewicz <https://github.com/peterblazejewicz>
91+
- Linus Unnebäck <https://github.com/LinusU>
92+
- Richard Bateman <https://github.com/taxilian>
93+
- Igor Strebezhev <https://github.com/xamgore>
94+
- Valentin Agachi <https://github.com/avaly>
95+
- HitkoDev <https://github.com/HitkoDev>
96+
- TJT <https://github.com/Celend>
97+
- Julien TASSIN <https://github.com/jtassin>
98+
- Anna Henningsen <https://github.com/addaleax>
99+
- Emmanuel Gautier <https://github.com/emmanuelgautier>
100+
- Wyatt Johnson <https://github.com/wyattjoh>

0 commit comments

Comments
 (0)