Package: libjs-d3-tip
Version: 0.7.1-5
Severity: important
I have tried to use d3-tip.min.js for a website in another package,
but it fails with the error: "Uncaught (in promise) TypeError: h.map
is not a function". This comes from the index.js line "d3.map({
...". Presumably d3 no longer ships a map function. In more recent
versions of d3-tip (which is now archived), this has been resolved by importing "map" from d3-collections. So maybe the best way to fix
this bug is to upgrade the package.
If it's OK, I can do that and release it.
[Julian Gilbey]
If it's OK, I can do that and release it.
It is more than OK, it is most welcome. I packaged this to solve a dependency, but do not know much about javascript packaging and would
love for someone who do to take over. :)
I suspect I prepared a new version and decided to wait for the next
release before uploading, or ran into build problems and did not have
time to investigate. I do not really remember any more.
[...]
So it's specifically "map" that is problematic, and I just happen to
have stumbled upon it: d3 v5 depends on d3-array version 1, but the
version of node-d3-array in unstable is 3.2.0+~cs5.0.6-2, and this is
causing the conflict.
I don't know the best way to fix this. node-d3-array version was
upgraded from 1.2.4 to 3.x about two years ago, so d3 would have had
this bug since then, but I'm the first one to stumble upon it :-/
Perhaps we could package node-d3-array-1 (version 1.2.4) and have
node-d3 build-depends on that?
index.js → dist/d3.js...
(!) Conflicting re-exports
"index.js" re-exports "map" from both "../../../usr/share/nodejs/d3-array/src/index.js" and "../../../usr/share/nodejs/d3-collection/src/index.js" (will be ignored).
created dist/d3.js in 1.9s
index.js → dist/d3.min.js...
(!) Conflicting re-exports
"index.js" re-exports "map" from both "../../../usr/share/nodejs/d3-array/src/index.js" and "../../../usr/share/nodejs/d3-collection/src/index.js" (will be ignored).
created dist/d3.min.js in 4.2s
-----
So it's specifically "map" that is problematic, and I just happen to
have stumbled upon it: d3 v5 depends on d3-array version 1, but the
version of node-d3-array in unstable is 3.2.0+~cs5.0.6-2, and this is
causing the conflict.
I don't know the best way to fix this. node-d3-array version was
upgraded from 1.2.4 to 3.x about two years ago, so d3 would have had
this bug since then, but I'm the first one to stumble upon it :-/
Perhaps we could package node-d3-array-1 (version 1.2.4) and have
node-d3 build-depends on that?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 12:53:03 |
Calls: | 6,706 |
Files: | 12,236 |
Messages: | 5,350,983 |