v2.0.0
For an overview of changes, see https://observablehq.com/@d3/d3-selection-2-0.
- Add selection.selectChild. #244
- Add selection.selectChildren. #244
- Add d3.pointer.
- Add d3.pointers.
- Add selection[Symbol.iterator]; selections are now iterable! #197
- Accept iterables with selection.data. #204
- Accept iterables with d3.selectAll. #209
- Change selection.on to pass the event directly to listeners.
- Remove index and group from selection.on listeners! #189
- Remove d3.event! #191
- Remove d3.mouse.
- Remove d3.touch.
- Remove d3.touches.
- Remove d3.customEvent.
- Remove d3.clientPoint.
- Remove d3.sourceEvent.
- Fix selection.merge(transition) to error. #208
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-selection 1.x or use a transpiler.