bellboy v4.0.0 Release Notes

Release Date: 2020-10-24 // over 3 years ago

    jsonPath is now RegExp

    jsonPath in JSON processor and HTTP processor is now a RegExp 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 has hasHeader, qualifier, delimiter, rowSeparator options.


    • delimiter option renamed to rowSeparator.
    • DelimitedProcessor now emits an object instead of string:


    "Hello, world!"


    {header: [],arr: ["Hello, world!"],obj: undefined,row: "Hello, world!"}