BlueWallet / LndHub

Wrapper for Lightning Network Daemon. It provides separate accounts for end-users
http://LndHub.io
MIT License
747 stars 181 forks source link

[Snyk] Upgrade express-rate-limit from 5.4.1 to 6.2.1 #392

Closed snyk-bot closed 2 years ago

snyk-bot commented 2 years ago

Snyk has created this PR to upgrade express-rate-limit from 5.4.1 to 6.2.1.

merge advice :information_source: 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.

Release notes
Package name: express-rate-limit
  • 6.2.1 - 2022-02-10

    Fixed

    • Use the default value for an option when undefined is passed to the rate
      limiter.
  • 6.2.0 - 2022-01-22

    Added

    • Export the MemoryStore, so it can now be imported as a named import
      (import { MemoryStore } from 'express-rate-limit').

    Fixed

    • Deprecate the onLimitReached option (this was supposed to be deprecated in
      v6.0.0 itself); developers should use a custom handler function that checks if
      the rate limit has been exceeded instead.
  • 6.1.0 - 2022-01-12

    Added

    • Added a named export rateLimit in case the default import does not work.

    Fixed

    • Added a named export default, so Typescript CommonJS developers can default-import the library (import rateLimit from 'express-rate-limit').
  • 6.0.5 - 2022-01-06

    Fixed

    • Use named imports for ExpressJS types so users do not need to enable the esModuleInterop flag in their Typescript compiler configuration.
  • 6.0.4 - 2022-01-02

    Fixed

    • Upload the built package as a .tgz to GitHub releases.

    Changed

    • Add main and module fields to package.json. This helps tools such as ESLint that do not yet support the exports field.
    • Bumped the minimum node.js version in package-lock.json to match package.json
  • 6.0.3 - 2021-12-30

    Changed

  • 6.0.2 - 2021-12-30

    Fixed

    • Ensure CommonJS projects can import the module.

    Added

    • Add additional tests that test:
      • importing the library in js-cjs, js-esm, ts-cjs, ts-esm environments.
      • usage of the library with external stores (redis, mongo, memcached, precise).

    Changed

    • Use esbuild to generate ESM and CJS output. This reduces the size of the built package from 138 kb to 13kb and build time to 4 ms! šŸš€
    • Use dts-bundle-generator to generate a single Typescript declaration file.
  • 6.0.1 - 2021-12-25

    Fixed

    • Ensure CommonJS projects can import the module.
  • 6.0.0 - 2021-12-24

    Added

    • express 4.x as a peer dependency.
    • Better Typescript support (the library was rewritten in Typescript).
    • Export the package as both ESM and CJS.
    • Publish the built package (.tgz file) on GitHub releases as well as the npm registry.
    • Issue and PR templates.
    • A contributing guide.
    • A changelog.

    Changed

    • Rename the draft_polli_ratelimit_headers option to standardHeaders.
    • Rename the headers option to legacyHeaders.
    • Retry-After header is now sent if either legacyHeaders or standardHeaders is set.
    • Allow keyGenerator to be an async function/return a promise.
    • Change the way custom stores are defined.
      • Add the init method for stores to set themselves up using options passed to the middleware.
      • Rename the incr method to increment.
      • Allow the increment, decrement, resetKey and resetAll methods to return a promise.
      • Old stores will automatically be promisified and used.
    • The package can now only be used with NodeJS version 12.9.0 or greater.
    • The onLimitReached configuration option is now deprecated. Replace it with a custom handler that checks the number of hits.

    Removed

    • Remove the deprecated limiter.resetIp method (use the limiter.resetKey method instead).
    • Remove the deprecated options delayMs, delayAfter (the delay functionality was moved to the express-slow-down package) and global (use a key generator that returns a constant value).
  • 5.5.1 - 2021-11-06

    5.5.1

  • 5.5.0 - 2021-10-12
  • 5.4.1 - 2021-10-05
from express-rate-limit GitHub release notes
Commit messages
Package name: express-rate-limit
  • 49294c8 6.2.1
  • 1f0a8ec fix: use default value for option when `undefined` is passed (#294)
  • a8dc1f7 6.2.0
  • 98d7762 docs: update changelog for v6.2.0
  • c2c0780 chore(deps): bump dependencies
  • 506f8ff feat: add named export for memory store (#292)
  • 79a593f fix: deprecate `onLimitReached`, reword documentation (#288)
  • 9db7df0 docs: re-order sections of the readme
  • 7adc756 6.1.0
  • 09a2293 docs: update the changelog for 6.0.1
  • d2a5af2 fix: export as named exports `default` and `rateLimit` (#285)
  • bcb373c meta: soft link all external tests to the project folder (#283)
  • 2fdc2ff 6.0.5
  • f71867c docs: update documentation on importing the library
  • 013d60c style: fix import order
  • 3717b99 test: use named import from `supertest` in tests
  • ece892d fix: remove unneccessary fields in tsconfigs
  • 618474f test: keep import test tsconfigs minimal
  • 63800e7 fix: use named imports for express types
  • 99dba37 docs: add note about built package on releases to changelog
  • 9d43ddf doc: update 6.0.4 changelog to mention engines.node change in package-lock.json
  • 2eabd3f 6.0.4 changelog
  • 2ac0274 6.0.4
  • 5dccfb6 Merge pull request #279 from nfriedly/meta/eslint-tests
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