@togohq/sdk-node 2.2.0
Version 2.2.0 updates error and diagnostic codes in `onError`, requiring changes to error handlers
- Node.js SDK
Breaking
- BREAKING:
onErrorcodesenvelope_too_many_propertiesandshutdown_undeliveredare nowenvelope_properties_too_manyandshutdown_flush_failed. Update handlers that switch on these names.
Migration
Update onError handlers to use the new error code names.
onError((error) => {
if (error.code === 'envelope_too_many_properties') {
handleTooManyProperties();
}
});onError((error) => {
if (error.code === 'envelope_properties_too_many') {
handleTooManyProperties();
}
});