node-rdf
node-rdf copied to clipboard
refactor: use a stack instead of recursion in Graph.toArray
I encountered an InternalError: too much recursion when using TurboPack as a bundler
A stack is now used to avoid recursion, and the result is reversed to maintain the correct order (in assertions).