Skip to content

Commit

Permalink
v12 (#91)
Browse files Browse the repository at this point in the history
* Start v12

* Fix reason

* Update error

* Remove 18

* Undici v7

* Cleanup error types

* Reset signing token in error handler

* Cleanup send and send many

* Undici v7

* Supress warning

* ESM

* Changelog

* Use npm

* Use ci

* Cleanup
  • Loading branch information
AndrewBarba authored Dec 3, 2024
1 parent 4b91ef0 commit eba86c7
Show file tree
Hide file tree
Showing 13 changed files with 1,832 additions and 1,132 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
node-version: 22

- run: pnpm install --frozen-lockfile
- run: npm ci

- run: pnpm build
- run: npm run build

- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > .npmrc
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,21 @@ jobs:

strategy:
matrix:
node-version: [18, 20, 22]
node-version: [20, 22]

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v3
with:
version: 9

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm

- run: pnpm install --frozen-lockfile
- run: npm ci

- run: pnpm lint
- run: npm run lint

- run: pnpm test
- run: npm run test
env:
APNS_PUSH_TOKEN: ${{ secrets.APNS_PUSH_TOKEN }}
APNS_SIGNING_KEY: ${{ secrets.APNS_SIGNING_KEY }}
37 changes: 28 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@

---

## [12.0.0](https://github.com/AndrewBarba/apns2/releases/tag/12.0.0)

1. Migrate to Undici v7
2. ESM
3. Drop support for Node 16 and 18

## [11.7.1](https://github.com/AndrewBarba/apns2/releases/tag/11.7.1)

1. Fix issue with `expiration` option [#88](https://github.com/AndrewBarba/apns2/issues/88)
1. Fix issue with `expiration` option
[#88](https://github.com/AndrewBarba/apns2/issues/88)

## [11.7.0](https://github.com/AndrewBarba/apns2/releases/tag/11.7.0)

Expand Down Expand Up @@ -38,7 +45,8 @@
1. Define new `Host` enum for specifying APNS host
2. Add `liveactivity` push type

Thank you [278204](https://github.com/278204) and [icodebuster](https://github.com/icodebuster)
Thank you [278204](https://github.com/278204) and
[icodebuster](https://github.com/icodebuster)

## [11.1.0](https://github.com/AndrewBarba/apns2/releases/tag/11.1.0)

Expand Down Expand Up @@ -119,16 +127,20 @@ Thank you [278204](https://github.com/278204) and [icodebuster](https://github.c

## [7.0.0](https://github.com/AndrewBarba/apns2/releases/tag/7.0.0)

1. Support [apns-push-type](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) and iOS 13
1. Support
[apns-push-type](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns)
and iOS 13

## [6.1.0](https://github.com/AndrewBarba/apns2/releases/tag/6.1.0)

1. Support [thread-id](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html)
1. Support
[thread-id](https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/PayloadKeyReference.html)

## [6.0.0](https://github.com/AndrewBarba/apns2/releases/tag/6.0.0)

1. Remove Bluebird
2. Remove concurrency option, instead relies on the connection pool and max connections
2. Remove concurrency option, instead relies on the connection pool and max
connections
3. Accept a `Date` for the apns expiration

## [5.0.0](https://github.com/AndrewBarba/apns2/releases/tag/5.0.0)
Expand All @@ -145,7 +157,8 @@ Thank you [278204](https://github.com/278204) and [icodebuster](https://github.c

## [4.0.2](https://github.com/AndrewBarba/apns2/releases/tag/4.0.2)

1. Reset signing token every 59 minutes to prevent `TooManyProviderTokenUpdates` error
1. Reset signing token every 59 minutes to prevent `TooManyProviderTokenUpdates`
error

## [4.0.1](https://github.com/AndrewBarba/apns2/releases/tag/4.0.1)

Expand All @@ -154,7 +167,8 @@ Thank you [278204](https://github.com/278204) and [icodebuster](https://github.c
## [4.0.0](https://github.com/AndrewBarba/apns2/releases/tag/4.0.0)

1. Remove support for Node versions less than v8.10
2. High-performance connection pool using [tarn](https://github.com/vincit/tarn.js)
2. High-performance connection pool using
[tarn](https://github.com/vincit/tarn.js)
3. More friendly require API, see README for updated usage

## [3.0.1](https://github.com/AndrewBarba/apns2/releases/tag/3.0.1)
Expand All @@ -163,6 +177,11 @@ Thank you [278204](https://github.com/278204) and [icodebuster](https://github.c

## [3.0.0](https://github.com/AndrewBarba/apns2/releases/tag/3.0.1)

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.
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.
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.
Loading

0 comments on commit eba86c7

Please sign in to comment.