pubnub / javascript

PubNub JavaScript SDK docs https://www.pubnub.com/docs/sdks/javascript
Other
553 stars 401 forks source link

PNMalformedResponseCategory & PNDecryptionErrorCategory missing after updating to 8.2.8 #404

Closed conorhooley closed 1 month ago

conorhooley commented 1 month ago

Hello,

As the title indicates, I'm attempting to update our version of pubnub to 8.2.8 and the existing code we have that handles these events is now failing to build as these two events are no longer in the StatusCategory type after updating.

I could not find any guidance around, or mention of, this in the JavaScript SDK docs. The chatbot on the site also didn't have any answers. It appears these events also exist in your other SDKs. So I just thought I'd ask here.

image

parfeon commented 1 month ago

@conorhooley thank for reporting.

What version you are updating from?

conorhooley commented 1 month ago

What version you are updating from?

8.2.7

parfeon commented 1 month ago

This package version finally relies on types definition which is bundled with it. With 8.2.7 you probably used @types/pubnub? Were you receiving those categories after upgrading to 8.x.x?

parfeon commented 1 month ago

Starting from 8.x.x we don't emit those categories. Received message (message listener) has a error field with message (right now it will be set in case of decryption error) and the same field will be for fetch API entry.

conorhooley commented 1 month ago

Thanks for the info! I appreciate it.