Changes:
- Added support to
pushToken
as a parameter foronRegister
callback;
Changes:
- Added support to Fastify v5. This release makes it compatible with both v4 and v5;
Changes:
- Added support to
undefined
return type fromonUpdateRequest
callback. When this will happen, anHTTP 304 Not Modified
will be sent instead. When a pass is returned, instead, the headerlast-modified
will be supplied to the response, with the current UTC time; - Added support to a new parameter
modifiedSinceTimestamp
inonUpdateRequest
callback, containing the timestamp (number) of the provided request headerif-modified-since
. If the header is not available, it will beundefined
;
Changes:
- Added hooks-performed checks on return types for
update
andlist
plugins callbacks; - Replaced
console.warn
with fastify logs; - Improved tests and typechecking for plugins;
Bug fix:
- Fixed
list
plugin, which was listening forPOST
instead ofGET
; - Renamed
list
plugin's queryString parameters (and, therefore, the according parameter inonListRetrieve
'filters') topassesUpdatedSince
, as per Apple documentation;
Changes:
- Renamed
onIncomingLog
toonIncomingLogs
;