Adapt `stream.js` to new flat parser data