Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bedrock

Package Overview
Dependencies
Maintainers
5
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bedrock - npm Package Compare versions

Comparing version 4.4.0 to 4.4.1

12

CHANGELOG.md
# 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 @@

2

lib/bedrock.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc