You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... which works fine in general, but with Node.js continuing to delay the ecosystem from adopting ESM, it can be a source of hard-to-debug failures from dual package hazard. At some point I will need to drop CommonJS support entirely, but ...
It might be a nice simplification to merge the Document and Graph concepts by having Document extend Graph<Property>. Then there's one fewer concepts to think about, and one source of mystery bug in Node.js could go away. I think if I could do that and remove all use of instanceof, dual package hazard might not break end-user applications at all. May require a major release.
The text was updated successfully, but these errors were encountered:
Currently the Document holds a reference to a Graph, from the
property-graph
package:glTF-Transform/packages/core/src/document.ts
Lines 76 to 94 in a7c1dec
To keep function parameter simple though, we sometimes need to look up a Document from an arbitrary Property...
glTF-Transform/packages/functions/src/list-texture-channels.ts
Lines 44 to 45 in a7c1dec
... which works fine in general, but with Node.js continuing to delay the ecosystem from adopting ESM, it can be a source of hard-to-debug failures from dual package hazard. At some point I will need to drop CommonJS support entirely, but ...
It might be a nice simplification to merge the Document and Graph concepts by having Document extend
Graph<Property>
. Then there's one fewer concepts to think about, and one source of mystery bug in Node.js could go away. I think if I could do that and remove all use ofinstanceof
, dual package hazard might not break end-user applications at all. May require a major release.The text was updated successfully, but these errors were encountered: