Skip to content

Commit

Permalink
feat(NODE-3115): Add generic parameterization (#2767)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nbbeeken authored and ljhaywar committed Nov 9, 2021
1 parent 2efa081 commit ce75c37
Show file tree
Hide file tree
Showing 37 changed files with 2,378 additions and 1,645 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,9 @@
"files": ["*.mjs"],
"parserOptions": {"sourceType": "module"}

},{
"files": ["*.ts"],
"parserOptions": {"sourceType": "module"}

}]
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ yarn.lock
lib/
*.tgz
*.d.ts
# type definition tests
!test/types

.vscode
output
150 changes: 99 additions & 51 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,101 @@
# Contributors

- Christian Kvalheim
- Matt Broadstone <<[email protected]>>
- Dan Aprahamian <<[email protected]>>
- Katherine Walker <<[email protected]>>
- Aaron Heckmann
- Christoph Pojer
- Pau Ramon Revilla
- Nathan White
- Emmerman
- Seth LaForge
- Boris Filipov
- Stefan Schärmeli
- Tedde Lundgren
- renctan
- Sergey Ukustov
- Ciaran Jessup
- kuno
- srimonti
- Erik Abele
- Pratik Daga
- Slobodan Utvic
- Kristina Chodorow
- Yonathan Randolph
- Brian Noguchi
- Sam Epstein
- James Harrison Fisher
- Vladimir Dronnikov
- Ben Hockey
- Henrik Johansson
- Simon Weare
- Alex Gorbatchev
- Shimon Doodkin
- Kyle Mueller
- Eran Hammer-Lahav
- Marcin Ciszak
- François de Metz
- Vinay Pulim
- nstielau
- Adam Wiggins
- entrinzikyl
- Jeremy Selier
- Ian Millington
- Public Keating
- andrewjstone
- Christopher Stott
- Corey Jewett
- brettkiefer
- Rob Holland
- Senmiao Liu
- heroic
- gitfy
- Christian Kvalheim
- Matt Broadstone
- Dan Aprahamian
- Katherine Walker
- Aaron Heckmann
- Christoph Pojer
- Pau Ramon Revilla
- Nathan White
- Emmerman
- Seth LaForge
- Boris Filipov
- Stefan Schärmeli
- Tedde Lundgren
- renctan
- Sergey Ukustov
- Ciaran Jessup
- kuno
- srimonti
- Erik Abele
- Pratik Daga
- Slobodan Utvic
- Kristina Chodorow
- Yonathan Randolph
- Brian Noguchi
- Sam Epstein
- James Harrison Fisher
- Vladimir Dronnikov
- Ben Hockey
- Henrik Johansson
- Simon Weare
- Alex Gorbatchev
- Shimon Doodkin
- Kyle Mueller
- Eran Hammer-Lahav
- Marcin Ciszak
- François de Metz
- Vinay Pulim
- nstielau
- Adam Wiggins
- entrinzikyl
- Jeremy Selier
- Ian Millington
- Public Keating
- andrewjstone
- Christopher Stott
- Corey Jewett
- brettkiefer
- Rob Holland
- Senmiao Liu
- heroic
- gitfy

## Maintainers

- Neal Beeken <<[email protected]>>
- Eric Adum <<[email protected]>>
- Durran Jordan <<[email protected]>>
- Daria Pardue <<[email protected]>>

## Community Types

This release of the driver draws inspiration from the community contributed types to reduce upgrade friction as much as possible.
We thank those listed below who contributed to the open source types, still available at `@types/mongodb` for versions prior to v4.

**Thank you!**

- Federico Caselli <https://github.com/CaselIT>
- Alan Marcell <https://github.com/alanmarcell>
- Gaurav Lahoti <https://github.com/dante-101>
- Mariano Cortesi <https://github.com/mcortesi>
- Enrico Picci <https://github.com/EnricoPicci>
- Alexander Christie <https://github.com/AJCStriker>
- Julien Chaumond <https://github.com/julien-c>
- Dan Aprahamian <https://github.com/daprahamian>
- Denys Bushulyak <https://github.com/denys-bushulyak>
- Bastien Arata <https://github.com/BastienAr>
- Wan Bachtiar <https://github.com/sindbach>
- Geraldine Lemeur <https://github.com/geraldinelemeur>
- Dominik Heigl <https://github.com/various89>
- Angela-1 <https://github.com/angela-1>
- Hector Ribes <https://github.com/hector7>
- Florian Richter <https://github.com/floric>
- Erik Christensen <https://github.com/erikc5000>
- Nick Zahn <https://github.com/Manc>
- Jarom Loveridge <https://github.com/jloveridge>
- Luis Pais <https://github.com/ranguna>
- Hossein Saniei <https://github.com/HosseinAgha>
- Alberto Silva <https://github.com/albertossilva>
- Piotr Błażejewicz <https://github.com/peterblazejewicz>
- Linus Unnebäck <https://github.com/LinusU>
- Richard Bateman <https://github.com/taxilian>
- Igor Strebezhev <https://github.com/xamgore>
- Valentin Agachi <https://github.com/avaly>
- HitkoDev <https://github.com/HitkoDev>
- TJT <https://github.com/Celend>
- Julien TASSIN <https://github.com/jtassin>
- Anna Henningsen <https://github.com/addaleax>
- Emmanuel Gautier <https://github.com/emmanuelgautier>
- Wyatt Johnson <https://github.com/wyattjoh>
Loading

0 comments on commit ce75c37

Please sign in to comment.