You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to webpush-go will be documented in this file.
3
+
4
+
## [2.0.0] - 2025-01-01
5
+
6
+
* Update the `Keys` struct definition to store `Auth` as `[16]byte` and `P256dh` as `*ecdh.PublicKey`
7
+
*`Keys` can no longer be compared with `==`; use `(*Keys.Equal)` instead
8
+
* The JSON representation has not changed and is backwards and forwards compatible with v1
9
+
*`DecodeSubscriptionKeys` is a helper to decode base64-encoded auth and p256dh parameters into a `Keys`, with validation
10
+
* Update the `VAPIDKeys` struct to contain a `(*ecdsa.PrivateKey)`
11
+
*`VAPIDKeys` can no longer be compared with `==`; use `(*VAPIDKeys).Equal` instead
12
+
* The JSON representation is now a JSON string containing the PEM of the PKCS8-encoded private key
13
+
* To parse the legacy representation (raw bytes of the private key encoded in base64), use `DecodeLegacyVAPIDPrivateKey`
14
+
* Renamed `SendNotificationWithContext` to `SendNotification`, removing the earlier `SendNotification` API. (Pass `context.Background()` as the context to restore the former behavior.)
0 commit comments