Comparing main...v3.x · cloudevents/sdk-javascript

Commits on Sep 11, 2020

  1. Configuration menu

    Browse the repository at this point in the history

  2. Configuration menu

    Browse the repository at this point in the history

  3. Configuration menu

    Browse the repository at this point in the history

  4. test: implement pending tests leftover from TS rewrite (#315)

    This commit implements 4 of the 6 pending tests that were not completed
    during the TypeScript rewrite. The two tests that were not implemented
    were (one for each of v1 and v03):
    
    ```
    it("returns a JSON string even if format is invalid");
    ```
    
    I don't really know what that's supposed to be/mean, so I removed them.
    
    Fixes: #232
    
    Signed-off-by: Lance Ball <lball@redhat.com>

    lance committed

    Sep 11, 2020
    Configuration menu

    Browse the repository at this point in the history

  5. Configuration menu

    Browse the repository at this point in the history

  6. Configuration menu

    Browse the repository at this point in the history

  7. Configuration menu

    Browse the repository at this point in the history

  8. Configuration menu

    Browse the repository at this point in the history

  9. Configuration menu

    Browse the repository at this point in the history

  10. feat: introduce Message, Serializer, Deserializer and Binding interfa…

    …ces (#324)
    
    * lib(messages): Implement a 4.0 Messages and other supporting interfaces
    
    This commit introduces the Message, Serializer and Deserializer, and Binding
    interfaces used to convert a CloudEvent into a Message that can be sent across
    a transport protocol. The first protocol implemented for this is HTTP, and some
    of the functionality formerly in src/transport/http has been simplified,
    reduced and/or moved to /src/messages/http.
    
    Test for V1 and V3 events are in place. Conformance tests have been modified to use
    these new interfaces vs. the HTTP Receiver class.
    
    Signed-off-by: Lance Ball <lball@redhat.com>

    lance committed

    Sep 11, 2020
    Configuration menu

    Browse the repository at this point in the history

  11. feat: add a constructor parameter for loose validation (#328)

    * feat: add a constructor parameter for loose validation
    
    This commit adds a second, optional boolean parameter to the `CloudEvent`
    constructor. When `false` is provided, the event constructor will not
    perform validation of the event properties, values and extension names.
    
    This commit also modifies the ValidationError class so that the error message
    string includes the JSON.stringified version of any schema validation
    errors. It also makes the HTTP.toEvent() function create CloudEvent
    objects with loose/no validation.
    
    Incorporates comments from #328
    
    Fixes: #325
    
    Signed-off-by: Lance Ball <lball@redhat.com>

    lance committed

    Sep 11, 2020
    Configuration menu

    Browse the repository at this point in the history

  12. Configuration menu

    Browse the repository at this point in the history

  13. Configuration menu

    Browse the repository at this point in the history

  14. Configuration menu

    Browse the repository at this point in the history