@parse/push-adapter 6.9.1 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/package.json +11 -11
- package/src/ParsePushAdapter.js +2 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Parse Server Push Adapter <!-- omit in toc -->
|
|
2
2
|
|
|
3
|
-
[](https://github.com/parse-community/parse-server-push-adapter/actions/workflows/ci.yml)
|
|
4
4
|
[](https://snyk.io/test/github/parse-community/parse-server-push-adapter)
|
|
5
5
|
[](https://codecov.io/github/parse-community/parse-server-push-adapter?branch=master)
|
|
6
6
|
[](https://github.com/parse-community/parse-server-push-adapter/releases)
|
|
@@ -72,10 +72,11 @@ Parse Server Push Adapter currently supports these types of Apple ecosystems:
|
|
|
72
72
|
- `ios`: iPhone, iPad, and iPod touch apps
|
|
73
73
|
- `osx`: macOS, and macCatalyst apps
|
|
74
74
|
- `tvos`: tvOS apps
|
|
75
|
+
- `watchos`: watchOS apps
|
|
75
76
|
|
|
76
|
-
|
|
77
|
+
Push notifications can be delivered to Apple devices either via Apple Push Notification Service (APNS) or Firebase Cloud Messaging (FMC). Note that each category of Apple devices requires their own configuration section:
|
|
77
78
|
|
|
78
|
-
- APNS requires a private key that can be downloaded from the Apple Developer Center at https://developer.apple.com/account under _Certificates > Identifiers & Profiles._ The adapter options also require the app ID and team ID which can be found there.
|
|
79
|
+
- APNS requires a private key that can be downloaded from the Apple Developer Center at https://developer.apple.com/account under _Certificates > Identifiers & Profiles._ The adapter options also require the app ID and team ID, which can be found there.
|
|
79
80
|
- FCM requires a private key that can be downloaded from the Firebase Console at https://console.firebase.google.com in your project under _Settings > Cloud Messaging._
|
|
80
81
|
|
|
81
82
|
Example options:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parse/push-adapter",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.11.0",
|
|
4
4
|
"description": "Base parse-server-push-adapter",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -24,28 +24,28 @@
|
|
|
24
24
|
"author": "Parse",
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@parse/node-apn": "6.
|
|
27
|
+
"@parse/node-apn": "6.5.0",
|
|
28
28
|
"@parse/node-gcm": "1.0.2",
|
|
29
|
-
"expo-server-sdk": "3.
|
|
30
|
-
"firebase-admin": "13.0
|
|
29
|
+
"expo-server-sdk": "3.14.0",
|
|
30
|
+
"firebase-admin": "13.2.0",
|
|
31
31
|
"npmlog": "7.0.1",
|
|
32
|
-
"parse": "
|
|
32
|
+
"parse": "6.0.0",
|
|
33
33
|
"web-push": "3.6.7"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@eslint/js": "9.
|
|
36
|
+
"@eslint/js": "9.21.0",
|
|
37
37
|
"@semantic-release/changelog": "6.0.3",
|
|
38
|
-
"@semantic-release/commit-analyzer": "13.0.
|
|
38
|
+
"@semantic-release/commit-analyzer": "13.0.1",
|
|
39
39
|
"@semantic-release/git": "10.0.1",
|
|
40
40
|
"@semantic-release/github": "11.0.1",
|
|
41
41
|
"@semantic-release/npm": "12.0.1",
|
|
42
|
-
"@semantic-release/release-notes-generator": "14.0.
|
|
42
|
+
"@semantic-release/release-notes-generator": "14.0.3",
|
|
43
43
|
"c8": "10.1.3",
|
|
44
44
|
"codecov": "3.8.3",
|
|
45
|
-
"eslint": "9.
|
|
46
|
-
"jasmine": "5.
|
|
45
|
+
"eslint": "9.22.0",
|
|
46
|
+
"jasmine": "5.6.0",
|
|
47
47
|
"jasmine-spec-reporter": "7.0.0",
|
|
48
|
-
"semantic-release": "24.2.
|
|
48
|
+
"semantic-release": "24.2.3"
|
|
49
49
|
},
|
|
50
50
|
"engines": {
|
|
51
51
|
"node": "18 || 20 || 22"
|
package/src/ParsePushAdapter.js
CHANGED
|
@@ -15,7 +15,7 @@ export default class ParsePushAdapter {
|
|
|
15
15
|
supportsPushTracking = true;
|
|
16
16
|
|
|
17
17
|
constructor(pushConfig = {}) {
|
|
18
|
-
this.validPushTypes = ['ios', 'osx', 'tvos', 'android', 'fcm', 'web', 'expo'];
|
|
18
|
+
this.validPushTypes = ['ios', 'osx', 'tvos', 'watchos', 'android', 'fcm', 'web', 'expo'];
|
|
19
19
|
this.senderMap = {};
|
|
20
20
|
// used in PushController for Dashboard Features
|
|
21
21
|
this.feature = {
|
|
@@ -32,6 +32,7 @@ export default class ParsePushAdapter {
|
|
|
32
32
|
switch (pushType) {
|
|
33
33
|
case 'ios':
|
|
34
34
|
case 'tvos':
|
|
35
|
+
case 'watchos':
|
|
35
36
|
case 'osx':
|
|
36
37
|
if (pushConfig[pushType].hasOwnProperty('firebaseServiceAccount')) {
|
|
37
38
|
this.senderMap[pushType] = new FCM(pushConfig[pushType], 'apple');
|