Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-4776

Set deprecation warning on npm packages outside of MongoDB support range

    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Details

      Using npm's deprecation feature we should add a warning message to the package that are outside of our support range to help indicate what versions are recommended to upgrade from.

      Using: https://docs.npmjs.com/cli/v8/commands/npm-deprecate will emit a message like so:

      npm WARN deprecated mongodb@3.7.0: INSERT MESSAGE HERE
      

      upon install of a package that has any nested dependency on the package we set the message on.

      AC

      • Determine version ranges to set deprecation message on
      • Run npm command to set ranges on the packages of all libraries we wish to recommend upgrading
      • If the deprecation message will need to be updated after next major release (or some other condition), file follow up ticket to update the message accordingly
      • File follow up ticket to deprecate the current major version on the agreed upon date

            Assignee:
            Unassigned Unassigned
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: