since deps stream is topo-sorted, no need to buffer

stream rather than buffer, since now the input is sorted topologically

also avoid special-casing the base files to avoid future base case bugs.