bellboy v4.0.0 Release Notes
Release Date: 2020-10-24 // almost 4 years ago-
- stream-json is now used instead of JSONStream for JSON processor.
- ๐ JSON processor supports now files encoded in UTF-8 with BOM.
- ๐ Fixed JSON processor not working with bellboy-live-reporter.
๐ฅ BREAKING CHANGES
jsonPath is now RegExp
jsonPath
in JSON processor and HTTP processor is now aRegExp
and if not specified, a root array will be streamed.โ Internally when JSON is streamed, current path is joined together using
.
as separator and then tested against provided regular expression. As an example, if you have this JSON object:{ "animals": { "dogs": ["pug", "bulldog", "poodle"] } }
And want to stream
dogs
array, path you will need to use is/animals.dogs.(\d+)/
.
(\d+)
is used here because each index of the array is a number.nextRequest doesn't have header anymore
๐ In HTTP processor header parameter was removed for
nextRequest
function.
Previous changes from v3.0.0
-
DelimiterProcessor
now hashasHeader
,qualifier
,delimiter
,rowSeparator
options.
๐ฅ BREAKING CHANGES
delimiter
option renamed torowSeparator
.DelimitedProcessor
now emits an object instead of string:
Before:
"Hello, world!"
After:
{header: [],arr: ["Hello, world!"],obj: undefined,row: "Hello, world!"}