All notable changes to this project will be documented in this file.
3.4.xReleases - 3.4.0
- Removed the
isGuidedSwitchfield and added theisIntegratedSwitchfield in Bill Switch events.
3.3.xReleases - 3.3.0
- Added Bill Switch client events: Docs
3.2.xReleases - 3.2.0
- Added React 19 support.
3.1.xReleases - 3.1.0
- Added prop
useDarkModefor launching the Link modal in dark mode.
- Resolved inconsistent modal loading behavior in some Next.js environments.
- Update dependencies to address security vulnerabilities.
- Fix the casing of the
screenNamefield in the exportedScreenTransitionEventPayloadevent payload type.
- Update dependencies to address security vulnerabilities
- Update dependencies to address security vulnerabilities
- Enable passing in
overlayStylingas a prop.
This new major version bump introduces an updated API to support partner-based switches.
- The
actionfield ininput_allocationevent is now optional. - The
paramsfield in thesuccessevent uses theinput_allocationschema with fieldsactionandallocation.
- Removed
LinkResultexport. This was the oldsuccessevent payload. The new payload has the same format as the newly exportedSuccessEventPayload.
- Removed
EventPayloadexport. The event handler function will now be implicitly typed. - Removed
EmptyPayloadObjectexport. - Removed
Errorexport. UseErrorEventPayloadinstead. (Errorwas marked as deprecated in version 2.) - Removed
ErrorTypeexport. UsePinwheelErrorTypeinstead. (ErrorTypewas marked as deprecated in version 2.) - Removed
input_amountevent. Useinput_allocationeven instead.
- Add the
clipboard-writepermission to the Pinwheel iframe.
- Pass parent window origin to the Link iframe, so that cross-origin messages are verified and always have a target origin set.
- Allow passing in the
ariaHideDocumentContentprop, which appliesaria-hiddento background elements in the document while the Pinwheel modal is open. - Add
titleattribute to the Pinwheel iframe.
- Export types (
index.d.ts)
- Add the
sandboxattribute to the Pinwheel iframe. - Add integrity hash to the Pinwheel script src.
- Export
ScreenTransitionevent payload type.
- Added
screen_transitiontoEventNametype. - Added
ScreenTransitiontoEventPayloadtype.
- Allow passing in
modalStylingprop as an experimental feature.
- Export
EventPayloadtype. - Export
PinwheelErrortype. - Export
PinwheelErrorTypetype. - Export
EmptyPayloadObjecttype asRecord<string, never>.
EventPayloadis no longer a union containing{}. It now containsRecord<string, never>instead due to this behavior.- Mark exported
Errortype as @deprecated because it collides with the built-in javascriptErrorobject. Replaced withPinwheelError. - Mark exported
ErrorTypetype as @deprecated because the new naming convention is prefixing with "PinwheelError". Replaced withPinwheelErrorType. - Update
onExittype to be(error: PinwheelError | Record<string, never>)to be accurate with current functionality.