sdk-javascript/test/integration
Lance Ball 2ac731eb88
chore(refactor): prefer interfaces over concrete classes (#457)
* chore(refactor): protocol bindings use interfaces

This change modifies the protocol binding interfaces such as `Binding`,
`Serializer` and the like to use the `CloudEventV1` interface instead of the
implementation class `CloudEvent`. This should make extending the interfaces
simpler as this work has grown out of efforts around the implementation of
a second transport interface, Kafka.

See: https://github.com/cloudevents/sdk-javascript/pull/455/

This commit also includes the addition of a generic type to the `Message`
interface, defaulting to `string`.

There is also some minor clean up involving what is exported from the
`message/http` modules. Now, instead of exporting the entire implementation,
only the `HTTP` binding implementation is exported, and it is then reexported
by `message`.

Also, a static `CloudEvent.cloneWith()` method has been added which the
instance methods now use.

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: make the `cloneWith()` method is dependent on interfaces

Signed-off-by: Lance Ball <lball@redhat.com>

* fixup: remove unnecessary cast

Signed-off-by: Lance Ball <lball@redhat.com>
2022-01-07 14:24:56 -05:00
..
batch_test.ts feat: add batch mode (#448) 2021-12-07 15:36:10 -05:00
ce.png fix: do not alter an event's data attribute (#344) 2020-10-06 08:20:54 -04:00
cloud_event_test.ts chore: update cucumber dependency and remove prettier (#453) 2021-12-22 10:45:35 -05:00
constants_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
emitter_factory_test.ts chore: update eslint and prettier dependencies (#424) 2021-08-04 15:51:37 -04:00
emitter_singleton_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00
message_test.ts feat: add batch mode (#448) 2021-12-07 15:36:10 -05:00
parser_test.ts chore: update cucumber dependency and remove prettier (#453) 2021-12-22 10:45:35 -05:00
sdk_test.ts chore(refactor): prefer interfaces over concrete classes (#457) 2022-01-07 14:24:56 -05:00
spec_1_tests.ts feat: use generic type for CloudEvent data (#446) 2021-11-29 17:03:12 -05:00
utilities_test.ts chore: add copyrights header and lint rules (#418) 2021-05-14 09:28:49 -04:00