NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #1743 most downloaded on npm
Register named callbacks and call them with arguments.
Last release 5 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 1.5 years
Most releases are documented
notes for 20 of 28 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
29 releases · first in 2014
Make build reproducible.
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ .
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
v3.0.0
Compare
One column per quarter.
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 envi
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-dispatch 1.x or use a transpiler.
Nothing published for this version
Disallow whitespace and periods in type names passed to d3.dispatch .
Housekeeping.
Update dependencies.
Update dependencies.
Update dependencies.
Add module entry point to package.json.
module entry point to package.json.Rather than decorating the _dispatch_ object with each event type, the dispatch object now exposes generic _dispatch_.call and _dispatch_.apply method
Rather than decorating the dispatch object with each event type, the dispatch object now exposes generic dispatch.call and dispatch.apply methods which take the type string as the first argument. For example, in D3 3.x, you might say:
dispatcher.foo.call(that, "Hello, Foo!");
To dispatch a foo event in D3 4.0, you’d say:
dispatcher.call("foo", that, "Hello, Foo!");
The dispatch.on method now accepts multiple typenames, allowing you to add or remove listeners for multiple events simultaneously. For example, to send both foo and bar events to the same listener:
dispatcher.on("foo bar", function(message) {
console.log(message);
});
This matches the new behavior of selection.on in d3-selection. The dispatch.on method now validates that the specifier listener is a function, rather than throwing an error in the future.
The new implementation d3.dispatch is faster, using fewer closures to improve performance. There’s also a new dispatch.copy method for making a copy of a dispatcher; this is used by d3-transition to improve the performance of transitions in the common case where all elements in a transition have the same transition event listeners.
See CHANGES for all D3 changes since 3.x.
Export to the global d3 in vanilla environments (d3/d3#2840).
d3 in vanilla environments (d3/d3#2840).Workaround Safari optimizer bug (#11).
Throw an error the callback passed to _dispatch_.on is not a function (#8).
Fix _dispatch_.constructor (#7).
Fix optimization warning in _dispatch_.call.
Support for multiple typenames with _dispatch_.on (#6).
- Rewrite without closures (#3).
Nothing published for this version
Nothing published for this version
Define d3-dispatch module (and d3_dispatch global), not dispatch.
d3-dispatch module (and d3_dispatch global), not dispatch.Fixed the main definition in the package.json file.
Adjusted the package.json definition for npm users.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →