
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Hierarchical event dispatcher
flow
.create()
.create('name') // create a new leaf node from flow
.create('name', data)
flow
.name()
.name('test')
flow
.data() // getter
.data({}) // setter
.data({},{},{}) //setter with multiple payloads
flow
.emit() // emit current flow object
.emit('name') // create and emit 'name'
.emit('name', data) // create and emit 'name' with data as the payload
.emit(flow2) // detach and emit an existing flow object
flow
.parent() // return the parent flow object
.parent(null) // detach the flow object, creating a new subtree
.parent(flow) // re-parent the flow object
flow.parents() // return all upstream flow objects
flow
.direction()
.direction(flow.direction.DEFAULT)
.direction(flow.direction.UPSTREAM)
.direction(flow.direction.DOWNSTREAM)
.direction(flow.direction.NONE)
flow
.children() //return all direct descendant nodes
.children.all() // return all child nodes recursively
flow
.cancel()
.cancelled()
.cancelled(true)
flow
.stopPropagation()
flow
.on('name')
.on('name', handler)
.on('name', handler1, handler 2)
When a flow object mutates in any way, all connected flow objects are notified of the change.
.data(newData)
triggers:
.on('flow.data', newData, oldData)
on the current flow object.on('flow.children.data', flow, newData, oldData)
on all parent objects.on('flow.parent.data', flow, newData, oldData)
on all child objects (recursively)FAQs
event/data/control flow
The npm package nflow receives a total of 82 weekly downloads. As such, nflow popularity was classified as not popular.
We found that nflow demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.