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').
v6.0.5
Fixed
Use named imports for ExpressJS types so users do not need to enable the esModuleInterop flag in their Typescript compiler configuration.
v6.0.4
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
v6.0.3
Changed
Bumped minimum Node version from 12.9 to 14.5 because the transpiled output uses the nullish coalescing operator (??), which isn't supported in node.js prior to 14.x.
v6.0.2
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! :rocket:
Bumped minimum Node version from 12.9 to 14.5 in package.json because the
transpiled output uses the nullish coalescing operator (??), which
isn't supported in node.js prior to 14.x.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps express-rate-limit from 5.3.0 to 6.1.0.
Release notes
Sourced from express-rate-limit's releases.
... (truncated)
Changelog
Sourced from express-rate-limit's changelog.
... (truncated)
Commits
7adc756
6.1.009a2293
docs: update the changelog for 6.0.1d2a5af2
fix: export as named exportsdefault
andrateLimit
(#285)bcb373c
meta: soft link all external tests to the project folder (#283)2fdc2ff
6.0.5f71867c
docs: update documentation on importing the library013d60c
style: fix import order3717b99
test: use named import fromsupertest
in testsece892d
fix: remove unneccessary fields in tsconfigs618474f
test: keep import test tsconfigs minimalDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)