stream aggr js api change