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

[Snyk] Upgrade node-cache from 4.2.1 to 5.1.2 #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link

@snyk-bot snyk-bot commented Feb 4, 2022

Snyk has created this PR to upgrade node-cache from 4.2.1 to 5.1.2.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 8 versions ahead of your current version.
  • The recommended version was released 2 years ago, on 2020-07-01.
Release notes
Package name: node-cache
  • 5.1.2 - 2020-07-01

    5.1.2

  • 5.1.1 - 2020-06-06

    5.1.1

  • 5.1.0 - 2019-12-08
    • Add .take(key) method to get and delete a key with a single operation. #159 #160
    • Add .flushStats() method to reset all cache stats back to 0. #158 #161
  • 5.0.2 - 2019-11-17
    • Fixed bug where expired values were deleted even though deleteOnExpire was set to false. Thanks to fielding-wilson for #154!
  • 5.0.1 - 2019-10-31
  • 5.0.0 - 2019-10-23
    • Remove lodash dependency
    • DROP CALLBACK SUPPORT - Read the migration guide if you are currently using the callback based api! ⚠️
    • add .has(key) and method - Thanks to Regev Brody for PR [#132]!
    • add .mset([{key,val,ttl}]) method - Thanks to Sujesh Thekkepatt for PR [#142]!
    • add maxKeys setting to limit cache size - Thanks do @ daluf for PR [#141]!
    • Also, thank you to all other contributors that remain unnamed here! 🎉

    MIGRATION GUIDE 🚧

    We have dropped callback support in node-cache and you should migrate to our sync-style api!

    If you cannot refactor right now, you can turn on legacy callback support by enabling the enableLegacyCallbacks option. Eg: const cache = new NodeCache({ enableLegacyCallbacks: true })

    But we strongly recommend to refactor your code to use the sync-api because we will drop official callback support in Versions v6.x and onwards.

    If your code currently looks like this:

    cache.get("my-key", function(err, value) {
    if (err) {
    // ...
    }

    // double equal checks for null and undefined
    if (value != null) {
    // hmm.... nothing here :(
    }

    // do something with value
    });

    it should be rewritten to:

    const value = cache.get("my-key");

    // double equal checks for null and undefined
    if (value != null) {
    // hmm.... nothing here :(
    }

    // do something with value




  • 5.0.0-alpha.1 - 2019-10-18

    5.0.0-alpha.1




  • 5.0.0-alpha.0 - 2019-09-18


  • 4.2.1 - 2019-07-24

    …d security vulnerability




from node-cache GitHub release notes

Commit messages
Package name: node-cache
  • b64434a 5.1.2
  • 6d47a2a Merge pull request #198 from node-cache/fix/buffer-is-not-defined
  • 15b0109 fix typo
  • d636359 Merge pull request #196 from adamochayon/patch-1
  • 64da3e6 fix #197 "ReferenceError: Buffer is not defined" in environments where Buffer is not available
  • 3e2e8a2 typo
  • 595b37c Add type declaration for take
  • c6dce92 Merge pull request #195 from shhadi/master
  • 9a35969 Changing misleading error message
  • bc3893b Merge pull request #192 from node-cache/add-coverall-to-gh-actions-ci
  • 37c0d82 remove `flag-name` param from coverall because the param is not declared in the gh action yet
  • 5b7a3ad fix workflow job names
  • bde38f5 try coveralls github-action instead of coveralls npm package
  • 67ca618 try to let coveralls fetch git data on it's own
  • 2d3a49e code-coverage: replace deprecated istanbul with nyc
  • 81ab066 use COVERALLS_GIT_BRANCH like documented in their npm package readme
  • ceabcfe extract branch name from GITHUB_REF and also send build number to coveralls
  • 56b7769 also set COVERALLS_PARALLEL because we are testing in parallel
  • 565d09d add COVERALLS_SERVICE_NAME and COVERALLS_GIT_BRANCH envvars
  • 3617a85 Update node.js.yml
  • de6a1a5 Merge pull request #191 from node-cache/fix-badge-links
  • 27a1641 fix links for badges
  • a3dcb56 Merge pull request #190 from node-cache/remove-old-ci
  • f13916f Delete .travis.yml

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant