Skip to content

3.0.0

Latest
Compare
Choose a tag to compare
@abbymwalker abbymwalker released this 27 Feb 23:16
· 1 commit to main since this release
43b27bc

This new major version bump introduces an updated API to support partner-based switches. Expands internal functionality to support a broader range of platforms and increase conversion rate.

Changed

  • The action field in input_allocation event is now optional.
  • The params field in the success event uses the input_allocation schema with fields action and allocation.

Removed

  • Removed LinkResult type export. This was the old success event payload. The new payload has the same format as the newly exported SuccessEventPayload.
  • Removed EventPayload type export. The event handler function will now be implicitly typed.
  • Removed ScreenTransition type export. Use ScreenTransitionEventPayload instead.
  • Removed EmptyPayloadObject type export.
  • Removed Error type export. Use ErrorEventPayload instead. (Error was marked as deprecated in version 2.)
  • Removed ErrorType type export. Use PinwheelErrorType instead. (ErrorType was marked as deprecated in version 2.)
  • Removed input_amount event. Use input_allocation even instead.
  • Removed PINWHEEL_MESSAGE_TYPES.