BlueWallet / LndHub

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

[Snyk] Upgrade express-rate-limit from 5.4.1 to 6.0.3 #353

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.0.3.

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.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.5.0

  • 5.4.1 - 2021-10-05

    5.4.1

from express-rate-limit GitHub release notes
Commit messages
Package name: express-rate-limit
  • de47e07 6.0.3
  • 6a033d2 bump min node.js version to 14.5
  • be21bda docs: clarify effect of not setting `trust proxy`
  • d6d96f3 meta: run `lint` on only node 16 on ubuntu
  • b548dc8 meta: add comments to the `run-all-tests` script
  • 5849f8d style: fix syntax highlighting in readme
  • 2b7f753 docs: add section about troubleshooting proxy issues to readme
  • 32202ba meta: run only one single workflow with multiple jobs
  • 0944443 6.0.2
  • ea87d86 meta: use esbuild and add external tests
  • ec632c3 docs: add commonjs import workaround (#270)
  • 765a65b meta: upload correct file while creating a release
  • debfa5d docs: add changelog for v6.0.1
  • b160f00 6.0.1
  • 76a4213 fix: allow cjs modules to use this package
  • e9a06dc docs: add `keyGenerator` is allowed to be async note to changelog
  • f6014e4 typo fix
  • 81346ba disable flakey test
  • 6f90be2 Remove docs for deprecated onLimitReached method
  • 00f38ff Call out onLimitReached deprecation
  • 4786948 Merge pull request #263 from gamemaker1/opiniated-improvements
  • 4d64399 style: use named import for `process.platform`
  • b576907 test: disable server hang test on macos
  • 4230f8f style: format readme
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