Skip to content

Version 0.4.0

Latest

Choose a tag to compare

@blutorange blutorange released this 16 Apr 11:44
· 4 commits to master since this release

Changes

  • Added methods IStream#isEmpty and IStream#isSizeBetween.
  • Added method IStream#slice that works like IStream#splice, but does not remove the items from the stream.
  • Changed method IStream#splice and exchanged the offset and maxAmount parameters to bring it in line with how Array#splice works. This also resulted in the same change for method IStream#consume.
  • Changed the named of method IStream#slice to chunk, to avoid confusion with JavaScript's method Array#slice. The former method IStream#chunk is now called IStream#chunkBy.
  • Changed: Extracted common interfaces and types to their own package. If you are using typescript and are referring to these types explicity, change the import statement from elbe to andross, see below.
  • Fixed method IStream#skip when used with infinite stream and passed Infinity. This skips all items and returns an empty stream.
import { Consumer, Predicate, /*...*/ } from "elbe";
// change to
import { Consumer, Predicate, /*...*/ } from "andross";