Skip to content

Commit

Permalink
ParseStream: Add values_delimiter param & split on string by default …
Browse files Browse the repository at this point in the history
…to improve performance
  • Loading branch information
sbrl committed Jul 16, 2020
1 parent bf8b056 commit 53c8d34
Show file tree
Hide file tree
Showing 4 changed files with 766 additions and 1,067 deletions.
7 changes: 5 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ npm install --save terrain50

-----

## Unreleased
- `Terrain50.Parse()`: Ensure that the passed argument is actually a string

## v1.7
- `Terrain50.Parse()`: Ensure that the passed argument is actually a string
- `Terrain50.ParseStream()`:
- Use a single space in a string as the default delimiter to improve performance (using a regex such as `/\s+/` is still supported via the new `values_delimiter` parameter).
- Fix code in example

## v1.6
- Add `do_close` argument to `Terrain50.serialise()` to auto-close stream when done (default: false)
Expand Down
Loading

0 comments on commit 53c8d34

Please sign in to comment.