Releases: mochidev/swift-webpush
Version 0.3.1
Overview
This release adds a new MessageTooLarge
error that can be caught to retry smaller messages, and a few new mocked types for Subscriber
to make testing with WebPush
easier.
What's Changed
- MessageTooLarge, more Mocks by @dimitribouniol in #40
Full Changelog: 0.3.0...0.3.1
Version 0.3.0
##Overview
This release introduces some breaking changes to make the API a bit more readable:
VAPID.Configuration.mocked
has been renamed toVAPID.Configuration.mockedConfiguration
to match other mocked methods.WebPushManager.init(..., logger:, ...)
has been renamed toWebPushManager.init(..., backgroundActivityLogger:, ...)
to better match the types of logging it is responsible for.- The various
send(...)
methods now have alogger:
parameter.
In addition to these API renames, this release also adds a number of improvements to documentation, tests, and logging. You can also use WebPushManager
without a service as it will automatically shut down its HTTP client when it falls out of scope.
What's Changed
- VAPID Token Documentation by @dimitribouniol in #32
- Key Validation Tests by @dimitribouniol in #33
- More Test Coverage by @dimitribouniol in #34
- Mocked Configuration Rename by @dimitribouniol in #35
- Automatic Shutdown by @dimitribouniol in #36
- Better Logging by @dimitribouniol in #37
Full Changelog: 0.2.1...0.3.0
Version 0.2.1
Overview
This release fixes a warning related to message expiration even when default values are used.
What's Changed
- Errant Warnings by @dimitribouniol in #29
Full Changelog: 0.2.0...0.2.1
Version 0.2.0
Overview
This release adds a new dedicated type for message expiration, and swaps the definitions of VAPID
and VoluntaryApplicationServerIdentification
so the latter is now the type alias. Documentation has also been expanded for several members, and test coverage continues to increase.
What's Changed
- Expirations by @dimitribouniol in #22
- Urgency by @dimitribouniol in #24
- HTTP Deadlines by @dimitribouniol in #23
- RFC Doc Style by @dimitribouniol in #25
- VAPID Definition Refactor by @dimitribouniol in #26
- Sanity Test by @dimitribouniol in #27
Full Changelog: 0.1.4...0.2.0
Version 0.1.4
Overview
This release adds a new initializer to VAPID.Key
for decoding directly from a Base64 string, along with some improvements to documentation and test coverage in general.
What's Changed
- More Tests by @dimitribouniol in #19
Full Changelog: 0.1.3...0.1.4
Version 0.1.3
Overview
This release adds a new vapid-key-generator
helper tool for generating keys outside of your application server's environment, and greatly expands on the configuration's documentation.
What's Changed
- Tooling by @dimitribouniol in #14
Full Changelog: 0.1.2...0.1.3
Version 0.1.2
Overview
This release ads proper error types to check when decoding configurations or sending push messages, namely BadSubscriberError()
, which needs to be checked to prevent push services from rate limiting and block-listing your server.
What's Changed
- Fix documentation link by @natanrolnik in #11
- Errors by @dimitribouniol in #12
New Contributors
- @natanrolnik made their first contribution in #11
Full Changelog: 0.1.1...0.1.2
Version 0.1.1
Overview
This releases fixes an issue where push messages were never sent out as they immediately failed due to their timeouts being misconfigured.
What's Changed
- Add a timeout by @helje5 in #8
- README Updates by @dimitribouniol in #9
New Contributors
Full Changelog: 0.1.0...0.1.1
Version 0.1.0
What's Changed
- Base64 URL Coding by @dimitribouniol in #1
- VAPID Authentication Header by @dimitribouniol in #2
- Authorization Header Caching by @dimitribouniol in #3
- Subscribers Model by @dimitribouniol in #4
- Sending Push Messages by @dimitribouniol in #5
- Mocked Types by @dimitribouniol in #6
New Contributors
- @dimitribouniol made their first contribution in #1
Full Changelog: https://github.com/mochidev/swift-webpush/commits/0.1.0