Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: AndrewBarba/apns2
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 11.6.0
Choose a base ref
...
head repository: AndrewBarba/apns2
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 18 commits
  • 18 files changed
  • 1 contributor

Commits on Mar 28, 2024

  1. Upgrade fast-jwt

    AndrewBarba committed Mar 28, 2024
    Copy the full SHA
    d382d7e View commit details
  2. Fix version

    AndrewBarba committed Mar 28, 2024
    Copy the full SHA
    b486f78 View commit details

Commits on May 28, 2024

  1. Add exports for jsr

    AndrewBarba committed May 28, 2024
    Copy the full SHA
    945d3bb View commit details
  2. Add jsr

    AndrewBarba committed May 28, 2024
    Copy the full SHA
    0240f95 View commit details
  3. Deps

    AndrewBarba committed May 28, 2024
    Copy the full SHA
    740f5d9 View commit details

Commits on Sep 19, 2024

  1. Fix expiration when 0

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    a0c4534 View commit details
  2. v11.7.1

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    2cc049b View commit details
  3. Upgrade biome

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    1f6da5b View commit details
  4. Update style guide

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    5018acd View commit details
  5. Simplify biome rules

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    50b96a5 View commit details
  6. Copy the full SHA
    b9574e0 View commit details
  7. Deps

    AndrewBarba committed Sep 19, 2024
    Copy the full SHA
    a4a7f02 View commit details

Commits on Nov 15, 2024

  1. Copy the full SHA
    4b91ef0 View commit details

Commits on Dec 3, 2024

  1. v12 (#91)

    * 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
    AndrewBarba authored Dec 3, 2024
    Copy the full SHA
    eba86c7 View commit details

Commits on Dec 18, 2024

  1. Support both ejs and cjs

    AndrewBarba committed Dec 18, 2024
    Copy the full SHA
    c5eafd1 View commit details
  2. Add details to apns error

    AndrewBarba committed Dec 18, 2024
    Copy the full SHA
    a4e5477 View commit details
  3. Beta 2

    AndrewBarba committed Dec 18, 2024
    Copy the full SHA
    c110fe5 View commit details

Commits on Jan 20, 2025

  1. 12.1.0

    AndrewBarba committed Jan 20, 2025
    Copy the full SHA
    38f6c82 View commit details
11 changes: 3 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -10,19 +10,14 @@ jobs:
steps:
- uses: actions/checkout@v4

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

- 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
13 changes: 4 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -10,26 +10,21 @@ jobs:

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

steps:
- uses: actions/checkout@v4

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

- 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 }}
47 changes: 39 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -4,6 +4,25 @@

---

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

1. Add back commonjs support

## [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)

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

1. Update `fast-jwt` to v4

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

1. Fix issue with `contentAvailable`
@@ -30,7 +49,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)

@@ -111,16 +131,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)
@@ -137,7 +161,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)

@@ -146,7 +171,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)
@@ -155,6 +181,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.
21 changes: 2 additions & 19 deletions biome.json
Original file line number Diff line number Diff line change
@@ -10,28 +10,11 @@
"indentWidth": 2,
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"performance": {
"noDelete": "off"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "off"
},
"suspicious": {
"noExplicitAny": "off",
"noShadowRestrictedNames": "off"
}
}
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"trailingComma": "none"
"quoteStyle": "double",
"trailingCommas": "all"
}
}
}
Loading