@togohq/sdk-browser 2.2.0
Version 2.2.0 updates error and diagnostic codes for improved clarity
- Browser SDK
Breaking
- BREAKING: Error and diagnostic codes have been renamed for consistency and clarity. For example,
invalid_property_typeis nowproperty_value_wrong_type, andshutdown_undeliveredis nowshutdown_flush_failed. Update any handlers that switch on these codes to use the new names.
Migration
Update error and diagnostic code handlers to use the new code names.
onError: (e) => {
if (e.code === 'shutdown_undelivered') {
handleShutdownError();
}
};onError: (e) => {
if (e.code === 'shutdown_flush_failed') {
handleShutdownError();
}
};