Comparing version 4.4.0 to 4.4.1
# bedrock ChangeLog | ||
## 4.4.1 - 2021-09-21 | ||
### Fixed | ||
- Use `Infinity` for max event listeners instead of using `0` which is a proxy | ||
for it (from docs: "The value can be set to Infinity (or 0) to indicate an | ||
unlimited number of listeners."). | ||
Link: https://nodejs.org/api/events.html#events_emitter_setmaxlisteners_n | ||
This addresses problems with libraries (such as `esm`) that assume | ||
`Infinity` will be used and that make erroneous calculations if `0` is used | ||
instead (e.g., the `esm` library scales the max listeners from `Infinity` to | ||
`1` when the intention was to increase the max listeners by just `1`). | ||
## 4.4.0 - 2021-07-23 | ||
@@ -4,0 +16,0 @@ |
@@ -329,3 +329,3 @@ /*! | ||
// set no limit on event listeners | ||
process.setMaxListeners(0); | ||
process.setMaxListeners(Infinity); | ||
@@ -332,0 +332,0 @@ // exit on terminate |
@@ -9,3 +9,3 @@ /*! | ||
const api = new EventEmitter(); | ||
api.setMaxListeners(0); | ||
api.setMaxListeners(Infinity); | ||
api.removeAllListeners('maxListenersPassed'); | ||
@@ -12,0 +12,0 @@ module.exports = api; |
{ | ||
"name": "bedrock", | ||
"version": "4.4.0", | ||
"version": "4.4.1", | ||
"description": "A core foundation for rich Web applications.", | ||
@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE.md", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153873