*** MongoDB Accessing API Changed
NOTICE: As of 3/25/2024, the following packages have been upgraded:
MongoDB --> 7.0.7,
Node.js Driver --> 6.5.0, and
node.js language version --> V.20.10.1
To solve the compatibility issues and issues such as "the callback functions are deprecated", the sample code for the book "The Get Programming with Node.js" needs to be modified to become compatible with the following environment:
mongod --version
7.0.7
node --version
v20.10.1
npm list mongodb
|--- [email protected]
|--- [email protected]
|-- [email protected]
The major changes is due to the deprecation of callback functions in MongoDB accessing API functions. In lessons_13 - lessons_14, the changes are needed to use async/await. There are also minor changes, such as connect options that are no longer supported, e.g., useNewURL, useUnifiedTopology, and useCreatrIndex. Adding {family:4} to support IPv4 addressing mode, e.g., localhoast:3000.
NOTE: Some debugging statements using console.log were not totally commented out.
NOTICE: As of 11/20/20, The following packages have been upgraded due to dependency vulnerabilities:
mongodb --> 3.6.3 bcrypt --> 5.0.0
NOTICE: As of 1/20/20, The following packages have been upgraded due to dependency vulnerabilities:
mongoose --> 5.8.9 mongodb --> 3.5.2 bcrypt --> 3.0.0 node-pre-gyp lodash