Skip to content

Latest commit

 

History

History
164 lines (94 loc) · 5.38 KB

CHANGELOG.md

File metadata and controls

164 lines (94 loc) · 5.38 KB

Change Log

apns2 follows Semantic Versioning


  1. Update fast-jwt to v4
  1. Fix issue with contentAvailable
  2. Add support for mutableContent
  1. Add ApnsClient.keepAlive
  2. Deprecate ApnsClient.pingInterval
  1. Add location push type
  2. Add pushtotalk push type
  1. Add Priority.low
  2. Fix options requestTimeout and pingInterval
  3. Convert to Biome
  1. Define new Host enum for specifying APNS host
  2. Add liveactivity push type

Thank you 278204 and icodebuster

  1. Accept all options when sending a silent notification
  1. Add back support for Node.js 16.x
  1. Built for Node.js 18
  2. Drops support for all versions of Node <18
  1. Add support for alert subtitle
  1. Re-written in TypeScript
  2. Adjust distribution files
  3. Only allow data options in SilentNotification constructor
  1. Re-written in TypeScript
  1. Update token refresh logic to avoid TooManyProviderTokenUpdates
  1. Allow disabling pingInterval
  2. Fix issue with missing ping callback
  1. Correctly handle socket error events
  2. Lazily connect on first request
  3. Keeps socket alive with ping request every 60s
  1. Full code cleanup
  2. Removes tarn
  3. Requires Node v12 or newer
  4. Rename destroy() to close()
  1. Fix TypeScript typings
  2. New push types and error constants
  3. Add prettier
  1. Add client.destroy() to kill all outstanding connections to apns servers.
  2. Upgrade tarn to v3
  1. Add voip support
  1. Add correct TypeScript definitions for NotificationOptions
  1. Add missing TypeScript interface for NotificationOptions
  2. Remove lodash dependency
  1. Require Node.js v10 or higher
  1. Support apns-push-type and iOS 13
  1. Support thread-id
  1. Remove Bluebird
  2. Remove concurrency option, instead relies on the connection pool and max connections
  3. Accept a Date for the apns expiration
  1. Update code to use async/await
  1. Fix connection pool not releasing resources
  1. Listen for error event when connecting an http2 session
  1. Reset signing token every 59 minutes to prevent TooManyProviderTokenUpdates error
  1. Updated Typescript definitions for v4.0
  1. Remove support for Node versions less than v8.10
  2. High-performance connection pool using tarn
  3. More friendly require API, see README for updated usage
  1. Fix Typescript definitions
  1. Introduces support for the native http2 module in Node.js v8.4.0 or later with fall back to node-spdy in earlier versions of Node.js.

To use the new http2 library you must start your node process with node --expose-http2 and apns2 will automatically use the native module. Later versions of Node.js may expose the native module without the need for a command line flag. In this case, apns2 will automatically use the native module without any additional steps on your end.