Skip to content

Commit b85f75a

Browse files
authored
Merge branch 'master' into addMore
2 parents d7e5397 + f344621 commit b85f75a

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [6.4.3](https://github.com/parse-community/node-apn/compare/6.4.2...6.4.3) (2025-02-11)
2+
3+
4+
### Bug Fixes
5+
6+
* Does not allow sending the priority of 10 for notifications ([#173](https://github.com/parse-community/node-apn/issues/173)) ([689ce37](https://github.com/parse-community/node-apn/commit/689ce3734dcd5170ac7e16bb67f73551de6a6b74))
7+
18
## [6.4.2](https://github.com/parse-community/node-apn/compare/6.4.1...6.4.2) (2025-02-08)
29

310

lib/notification/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Notification.prototype = require('./apsProperties');
7272
Notification.prototype.headers = function headers() {
7373
const headers = {};
7474

75-
if (this.priority !== 10) {
75+
if (Number.isInteger(this.priority)) {
7676
headers['apns-priority'] = this.priority;
7777
}
7878

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@parse/node-apn",
33
"description": "An interface to the Apple Push Notification service for Node.js",
4-
"version": "6.4.2",
4+
"version": "6.4.3",
55
"author": "Parse Platform, Andrew Naylor <argon@mkbot.net>",
66
"keywords": [
77
"apple",

test/notification/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,15 @@ describe('Notification', function () {
154154
expect(note.headers()).to.deep.equal({
155155
'apns-channel-id': 'io.apn.channel',
156156
'apns-expiration': 1000,
157+
"apns-priority": 10,
157158
'apns-request-id': 'io.apn.request',
158159
});
159160
});
160161
});
161162

162163
describe('headers', function () {
163-
it('contains no properties by default', function () {
164-
expect(note.headers()).to.deep.equal({});
164+
it('contains only the priority property by default', function () {
165+
expect(note.headers()).to.deep.equal({ "apns-priority": 10 });
165166
});
166167

167168
context('priority is non-default', function () {

0 commit comments

Comments
 (0)