Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded "mongodb" npm package to 3.4.1 #20

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Commits on Jan 13, 2020

  1. /app: Upgraded mongodb driver npm package to 3.4.1

    A lot of deprecation warnings now on MongoDB client methods calls during the debug, a little bit of refactoring needed to prevent them.
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    95ab1ff View commit details
    Browse the repository at this point in the history
  2. /app: Prevented MongoDB Server Discovery and Monitoring engine Deprec…

    …ationWarning while connection to the database
    
    Complete DeprecationWarning previously displayed during debug:
    
    "(node:74519) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor."
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    58ac786 View commit details
    Browse the repository at this point in the history
  3. /app: Prevent MongoDB driver collection.findAndModify DeprecationWarning

    Completed DeprecationWarning message previously displayed while debugging:
    
    "(node:74838) DeprecationWarning: collection.findAndModify is deprecated. Use findOneAndUpdate, findOneAndReplace or findOneAndDelete instead."
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    fb63c6d View commit details
    Browse the repository at this point in the history
  4. /app: Fixed MongoDB driver collection.insert DeprecationWarning

    Completed DeprecationWarning message previously displayed while debugging:
    
    "(node:78105) DeprecationWarning: collection.insert is deprecated. Use insertOne, insertMany or bulkWrite instead."
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    e478dd4 View commit details
    Browse the repository at this point in the history
  5. /app: Fixed MongoDB driver collection.remove DeprecationWarning

    Completed DeprecationWarning message previously displayed while debugging:
    
    "(node:78305) DeprecationWarning: collection.remove is deprecated. Use deleteOne, deleteMany, or bulkWrite instead."
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    0f514c3 View commit details
    Browse the repository at this point in the history
  6. /app: fixed "the options <option_name> is not supported" logged by th…

    …e MongoDB driver after the upgrade
    
    the options [servers] is not supported
    the options [caseTranslate] is not supported
    the options [dbName] is not supported
    
    They are related to ConnectionPooling and the suggestions are to connect one and let the Driver manage the pool, https://mongodb.github.io/node-mongodb-native/1.4/driver-articles/mongoclient.html#mongoclient-connection-pooling
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    c1f9cf1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ed4704d View commit details
    Browse the repository at this point in the history
  8. Little change to multer configuration

    Allows to start the application to be launched from another folder (eg. using VSCode Debug/Run tab) saving the uploaded pictures in the right folder
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    ddc732f View commit details
    Browse the repository at this point in the history
  9. commented "localhost" and enabled "pixidb" as MongoDB server

    as per README the default launch conguration
    enosrecanati committed Jan 13, 2020
    Configuration menu
    Copy the full SHA
    43444db View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    bca5201 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4c54fc8 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    6c92a91 View commit details
    Browse the repository at this point in the history