mirror of
https://github.com/ergochat/ergo.git
synced 2025-10-29 04:47:30 +01:00
1.0 KiB
1.0 KiB
Changelog
All notable changes to webpush-go will be documented in this file.
[2.0.0] - 2025-01-16
- Update the
Keysstruct definition to storeAuthas[16]byteandP256dhas*ecdh.PublicKeyKeyscan no longer be compared with==; use(*Keys.Equal)instead- The JSON representation has not changed and is backwards and forwards compatible with v1
DecodeSubscriptionKeysis a helper to decode base64-encoded auth and p256dh parameters into aKeys, with validation
- Update the
VAPIDKeysstruct to contain a(*ecdsa.PrivateKey)VAPIDKeyscan no longer be compared with==; use(*VAPIDKeys).Equalinstead- The JSON representation is now a JSON string containing the PEM of the PKCS8-encoded private key
- To parse the legacy representation (raw bytes of the private key
encoded in base64), use
DecodeLegacyVAPIDPrivateKey
- Renamed
SendNotificationWithContexttoSendNotification, removing the earlierSendNotificationAPI. (Passcontext.Background()as the context to restore the former behavior.)