Some biggish changes to the Client with this release.
Self Describing events and contexts are now on the root of the event as:
x-sp-self-describing-event_* and x-sp-contexts_*. This brings the client in line with how events are parsed in the analytics SDK (except for I've renamed unstruct_event). I've also extended tp2 events to place all the properties on the event in the same way the enriched events would too, meaning it's easier to build tags regardless of where the event came from.
For enriched events, I've supported both an array and an object on the API. This is because we currently support sending single events but I anticipate we'll have batching support soon.
I've also ran prettier over the file, so you might be best taking this one commit at a time from a review point of view.
Some biggish changes to the Client with this release.
Self Describing events and contexts are now on the root of the event as:
x-sp-self-describing-event_*
andx-sp-contexts_*
. This brings the client in line with how events are parsed in the analytics SDK (except for I've renamedunstruct_event
). I've also extendedtp2
events to place all the properties on the event in the same way the enriched events would too, meaning it's easier to build tags regardless of where the event came from.For enriched events, I've supported both an array and an object on the API. This is because we currently support sending single events but I anticipate we'll have batching support soon.
I've also ran prettier over the file, so you might be best taking this one commit at a time from a review point of view.