@parse/push-adapter 4.0.0 → 4.1.2

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 CHANGED
@@ -1,20 +1,31 @@
1
- # parse-server-push-adapter
1
+ # Parse Server Push Adapter <!-- omit in toc -->
2
2
 
3
- [![NPM Version](https://img.shields.io/npm/v/@parse/push-adapter.svg?style=flat-square)](https://www.npmjs.com/package/@parse/push-adapter)
4
- [![codecov.io](https://codecov.io/github/parse-community/parse-server-push-adapter/coverage.svg?branch=master)](https://codecov.io/github/parse-community/parse-server-push-adapter?branch=master)
5
- <a href="https://github.com/parse-community/parse-server-push-adapter/actions?query=workflow%3Aci+branch%3Amaster">
6
- <img alt="Build status" src="https://github.com/parse-community/parse-server-push-adapter/workflows/ci/badge.svg?branch=master">
7
- </a>
3
+ [![Build Status](https://github.com/parse-community/parse-server-push-adapter/workflows/ci/badge.svg?branch=master)](https://github.com/parse-community/parse-server-push-adapter/actions?query=workflow%3Aci+branch%3Amaster)
4
+ [![Snyk Badge](https://snyk.io/test/github/parse-community/parse-server-push-adapter/badge.svg)](https://snyk.io/test/github/parse-community/parse-server-push-adapter)
5
+ [![Coverage](https://img.shields.io/codecov/c/github/parse-community/parse-server-push-adapter/master.svg)](https://codecov.io/github/parse-community/parse-server-push-adapter?branch=master)
6
+ [![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/parse-server-push-adapter/releases)
8
7
 
9
- Official Push adapter for parse-server
8
+ [![npm latest version](https://img.shields.io/npm/v/@parse/push-adapter.svg)](https://www.npmjs.com/package/@parse/push-adapter)
10
9
 
11
- See [parse-server push configuration](http://docs.parseplatform.org/parse-server/guide/#push-notifications)
10
+ ---
12
11
 
13
- ## Silent Notifications
12
+ The official Push Notification adapter for Parse Server. See [Parse Server Push Configuration](http://docs.parseplatform.org/parse-server/guide/#push-notifications) for more details.
13
+
14
+ ---
15
+
16
+ - [Silent Notifications](#silent-notifications)
17
+ - [Logging](#logging)
18
+ - [Using a Custom Version on Parse Server](#using-a-custom-version-on-parse-server)
19
+ - [Install Push Adapter](#install-push-adapter)
20
+ - [Configure Parse Server](#configure-parse-server)
21
+
22
+
23
+
24
+ # Silent Notifications
14
25
 
15
26
  If you have migrated from parse.com and you are seeing situations where silent (newsstand-like presentless) notifications are failing to deliver please ensure that your payload is setting the content-available attribute to Int(1) and not "1" This value will be explicitly checked.
16
27
 
17
- ### see more logs
28
+ # Logging
18
29
 
19
30
  You can enable verbose logging with environment variables:
20
31
 
@@ -28,9 +39,9 @@ VERBOSE_PARSE_SERVER_PUSH_ADAPTER=1
28
39
 
29
40
  This will produce a more verbose output for all the push sending attempts
30
41
 
31
- ### Using a custom version on parse-server
42
+ # Using a Custom Version on Parse Server
32
43
 
33
- #### Install the push adapter
44
+ ## Install Push Adapter
34
45
 
35
46
  ```
36
47
  npm install --save @parse/push-adapter@VERSION
@@ -38,7 +49,7 @@ npm install --save @parse/push-adapter@VERSION
38
49
 
39
50
  Replace VERSION with the version you want to install.
40
51
 
41
- #### Configure parse-server
52
+ ## Configure Parse Server
42
53
 
43
54
  ```js
44
55
  const PushAdapter = require('@parse/push-adapter').default;
@@ -60,19 +71,3 @@ const server = new ParseServer(options);
60
71
 
61
72
  /* continue with the initialization of parse-server */
62
73
  ```
63
-
64
- ## Want to ride the bleeding edge?
65
-
66
- We recommend using the most recent tagged build published to npm for production. However, you can test not-yet-released versions of the parse-server-push-adapter by referencing specific branches in your `package.json`. For example, to use the master branch:
67
-
68
- ```
69
- npm install parse-community/parse-server-push-adapter.git#master
70
- ```
71
-
72
- ### Experimenting
73
-
74
- You can also use your own forks, and work in progress branches by specifying them:
75
-
76
- ```
77
- npm install github:myUsername/parse-server-push-adapter#my-awesome-feature
78
- ```
package/lib/APNS.js CHANGED
@@ -302,6 +302,12 @@ var APNS = exports.APNS = function () {
302
302
  var isMutable = coreData['mutable-content'] === 1;
303
303
  notification.setMutableContent(isMutable);
304
304
  break;
305
+ case 'targetContentIdentifier':
306
+ notification.setTargetContentIdentifier(coreData.targetContentIdentifier);
307
+ break;
308
+ case 'interruptionLevel':
309
+ notification.setInterruptionLevel(coreData.interruptionLevel);
310
+ break;
305
311
  case 'category':
306
312
  notification.setCategory(coreData.category);
307
313
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parse/push-adapter",
3
- "version": "4.0.0",
3
+ "version": "4.1.2",
4
4
  "description": "Base parse-server-push-adapter",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -23,6 +23,12 @@
23
23
  "author": "Parse",
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
+ "@semantic-release/changelog": "5.0.1",
27
+ "@semantic-release/commit-analyzer": "8.0.1",
28
+ "@semantic-release/git": "9.0.0",
29
+ "@semantic-release/github": "7.2.3",
30
+ "@semantic-release/npm": "7.1.3",
31
+ "@semantic-release/release-notes-generator": "9.0.3",
26
32
  "babel-cli": "6.26.0",
27
33
  "babel-core": "6.26.3",
28
34
  "babel-preset-es2015": "6.24.1",
@@ -30,13 +36,14 @@
30
36
  "codecov": "3.7.1",
31
37
  "jasmine": "2.8.0",
32
38
  "jasmine-spec-reporter": "4.0.0",
33
- "nyc": "14.1.1"
39
+ "nyc": "14.1.1",
40
+ "semantic-release": "17.4.6"
34
41
  },
35
42
  "dependencies": {
36
- "@parse/node-apn": "5.0.0",
43
+ "@parse/node-apn": "5.1.3",
37
44
  "@parse/node-gcm": "1.0.2",
38
45
  "npmlog": "4.1.2",
39
- "parse": "3.3.0"
46
+ "parse": "3.4.0"
40
47
  },
41
48
  "engines": {
42
49
  "node": ">= 12"
package/CHANGELOG.md DELETED
@@ -1,219 +0,0 @@
1
- # Change Log
2
-
3
- ### master
4
-
5
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/4.0.0...master)
6
-
7
- ## 4.0.0
8
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.4.1...4.0.0)
9
-
10
- ### BREAKING CHANGE
11
- - node-apns 5 requires node >= 12 ([#198](https://github.com/parse-community/parse-server-push-adapter/pull/198))
12
-
13
- ### Bug Fixes
14
- - bump node-apns to 5.0 ([#198](https://github.com/parse-community/parse-server-push-adapter/pull/198))
15
-
16
- ## 3.4.1
17
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.4.0...3.4.1)
18
-
19
- - Security fixes (Manuel Trezza) [#193](https://github.com/parse-community/parse-server-push-adapter/pull/193)
20
-
21
- ## [3.4.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.4.0) (2020-10-19)
22
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.3.0...3.4.0)
23
-
24
- - Support installing from branch ([#177](https://github.com/parse-community/parse-server-push-adapter/pull/177)) (thanks to [@dplewis](https://github.com/dplewis))
25
- - Update @parse/node-apn@4.0.0
26
- - Update parse@2.17.0
27
-
28
- ## [3.3.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.3.0) (2020-09-24)
29
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.2.0...3.3.0)
30
-
31
- - Update @parse/node-apn ([#170](https://github.com/parse-community/parse-server-push-adapter/pull/170))
32
- - Fixed wrong usage of contentAvailable for iOS push notifications via Firebase ([#165](https://github.com/parse-community/parse-server-push-adapter/pull/165)) (thanks to [@supermar1010](https://github.com/supermar1010))
33
- - Adds request options for the gcm.Sender ([#153](https://github.com/parse-community/parse-server-push-adapter/pull/153)) (thanks to [@simonegiacco](https://github.com/simonegiacco))
34
- - parse@2.16.0
35
-
36
- ## [3.2.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.2.0) (2019-10-26)
37
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.1.0...3.2.0)
38
-
39
- - Support headers (expiration_time, collapse_id, push_type, priority) in data field ([#148](https://github.com/parse-community/parse-server-push-adapter/pull/148)) (thanks to [@dplewis](https://github.com/dplewis))
40
- - parse@2.8.0
41
-
42
- ## [3.1.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.1.0) (2019-10-03)
43
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.10...3.1.0)
44
-
45
- - Update @parse/node-apn.
46
- - Update parse.
47
-
48
- ## [3.0.10](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.10) (2019-08-26)
49
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.9...3.0.10)
50
-
51
- Use @parse/node-apn served from npm instead of using our fork served from github.
52
-
53
-
54
- ## [3.0.9](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.9) (2019-07-30)
55
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.8...3.0.9)
56
-
57
- Fix: Update node-apn version and improve publish script ([#141](https://github.com/parse-community/parse-server-push-adapter/pull/141)) (thanks to [@davimacedo](https://github.com/davimacedo))
58
-
59
- ## [3.0.8](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.8) (2019-07-26)
60
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.7...3.0.8)
61
-
62
- Last release had its lib/ folder published but it's failing in parse-server tests. Trying to fix.
63
-
64
- ## [3.0.7](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.7) (2019-07-26)
65
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.6...3.0.7)
66
-
67
- New attempt to fix last release since it was published empty to npm.
68
-
69
- ## [3.0.6](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.6) (2019-07-26)
70
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.5...3.0.6)
71
-
72
- Fix last release since it was published empty to npm.
73
-
74
- ## [3.0.5](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.5) (2019-07-26)
75
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.4...3.0.5)
76
-
77
- Trying to make Travis publish to npm.
78
-
79
- ## [3.0.4](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.4) (2019-07-26)
80
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.3...3.0.4)
81
-
82
- **What's new**
83
-
84
- - Add support for apns-push-type [\#1](https://github.com/parse-community/parse-server-push-adapter/pull/127) (thanks to [@funkenstrahlen](https://github.com/funkenstrahlen))
85
-
86
- ## [3.0.3](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.3) (2019-07-12)
87
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.2...3.0.3)
88
-
89
- Continuing attempt to get travis to deploy to npm on release. Third time's a charm?
90
-
91
- ## [3.0.2](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.2) (2019-07-12)
92
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/3.0.1...3.0.2)
93
-
94
- Update Travis to deploy the correct repo to npm
95
-
96
- ## [3.0.1](https://github.com/parse-server-modules/parse-server-push-adapter/tree/3.0.1) (2019-07-11)
97
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v2.0.3...3.0.1)
98
-
99
- Update Packages to address security alerts
100
-
101
-
102
- ## [2.0.3](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v2.0.3) (2018-04-13)
103
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v2.0.2...v2.0.3)
104
-
105
- **What's new**
106
-
107
- - Use updated node-gcm version from @parse org. with safe request version
108
-
109
- ## [2.0.2](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v2.0.2) (2017-10-22)
110
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v2.0.1...v2.0.2)
111
-
112
- **What's new**
113
-
114
- - Adds ability to pass apn key for iOS pushes
115
-
116
- ## [2.0.1](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v2.0.1) (2017-10-21)
117
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v2.0.0...v2.0.1)
118
-
119
- **What's new**
120
-
121
- - Fixes issue setting the push notificaiton title
122
-
123
- ## [2.0.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v2.0.0) (2017-03-14)
124
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v2.0.0-alpha.1...v2.0.0)
125
-
126
- **What's new**
127
-
128
- - Adds support for APNS notification title
129
- - Adds support for APN collapse-id
130
-
131
-
132
- ## [2.0.0-alpha.1](https://github.com/parse-server-modules/parse-server-push-adapter/tree/2.0.0-alpha.1) (2017-03-14)
133
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.3.0...v2.0.0-alpha.1)
134
-
135
- **What's new**
136
-
137
- - Adds support for APNS with HTTP/2.0
138
- - Improvements in testing, tooling
139
-
140
- ## [1.3.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/1.3.0) (2017-03-14)
141
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.2.0...1.3.0)
142
-
143
- **Closed issues:**
144
-
145
- - Modernize dependencies and test tools [\#60](https://github.com/parse-server-modules/parse-server-push-adapter/issues/60)
146
- - Fixed link for Parse-server push configuration [\#57](https://github.com/parse-server-modules/parse-server-push-adapter/issues/57)
147
-
148
- **Merged pull requests:**
149
-
150
- - Add macOS and tvOS push notification support [\#58](https://github.com/parse-server-modules/parse-server-push-adapter/pull/58) ([funkenstrahlen](https://github.com/funkenstrahlen))
151
- - Require node version >= 4.6.0 [\#53](https://github.com/parse-server-modules/parse-server-push-adapter/pull/53) ([flovilmart](https://github.com/flovilmart))
152
-
153
- ## [1.2.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/1.2.0) (2017-01-16)
154
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.1.0...1.2.0)
155
-
156
- **Closed issues:**
157
-
158
- - Classify installation with pushType and failback with deviceType [\#31](https://github.com/parse-server-modules/parse-server-push-adapter/issues/31)
159
- - Send deviceType key to push handler [\#39](https://github.com/parse-server-modules/parse-server-push-adapter/issues/39)
160
- - Added notification field for fcm [\#41](https://github.com/parse-server-modules/parse-server-push-adapter/issues/41)
161
- - fixes 64k limit on GCM push. [\#49](https://github.com/parse-server-modules/parse-server-push-adapter/issues/49)
162
-
163
- ## [1.1.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/1.1.0) (2016-08-25)
164
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.0.4...1.1.0)
165
-
166
- **Closed issues:**
167
-
168
- - New release for `mutableContent` [\#28](https://github.com/parse-server-modules/parse-server-push-adapter/issues/28)
169
- - APNS TypeError: Cannot read property 'key' of undefined [\#24](https://github.com/parse-server-modules/parse-server-push-adapter/issues/24)
170
- - Can not find sender for push type android/ios [\#16](https://github.com/parse-server-modules/parse-server-push-adapter/issues/16)
171
- - APNS adapter failure -- cannot find valid connection [\#15](https://github.com/parse-server-modules/parse-server-push-adapter/issues/15)
172
- - pushing to thousands of installations [\#9](https://github.com/parse-server-modules/parse-server-push-adapter/issues/9)
173
- - Push is not delivered to iOS device [\#8](https://github.com/parse-server-modules/parse-server-push-adapter/issues/8)
174
- - Push not sent to iOS Device [\#4](https://github.com/parse-server-modules/parse-server-push-adapter/issues/4)
175
-
176
- **Merged pull requests:**
177
-
178
- - Support `mutable-content` [\#27](https://github.com/parse-server-modules/parse-server-push-adapter/pull/27) ([alexanderedge](https://github.com/alexanderedge))
179
- - Update README.md [\#18](https://github.com/parse-server-modules/parse-server-push-adapter/pull/18) ([tingham](https://github.com/tingham))
180
- - APNS expects expiration time to be in seconds, not MS. [\#14](https://github.com/parse-server-modules/parse-server-push-adapter/pull/14) ([0x18B2EE](https://github.com/0x18B2EE))
181
- - Push notifications to APNS per batches [\#10](https://github.com/parse-server-modules/parse-server-push-adapter/pull/10) ([flovilmart](https://github.com/flovilmart))
182
-
183
- ## [v1.0.4](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v1.0.4) (2016-03-30)
184
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.0.3...v1.0.4)
185
-
186
- **Closed issues:**
187
-
188
- - Push notifications not sent [\#2](https://github.com/parse-server-modules/parse-server-push-adapter/issues/2)
189
-
190
- **Merged pull requests:**
191
-
192
- - :tada: v1.0.4 [\#7](https://github.com/parse-server-modules/parse-server-push-adapter/pull/7) ([flovilmart](https://github.com/flovilmart))
193
- - Fixed error when sending pushes to one pushType [\#6](https://github.com/parse-server-modules/parse-server-push-adapter/pull/6) ([Gameleon12](https://github.com/Gameleon12))
194
-
195
- ## [v1.0.3](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v1.0.3) (2016-03-26)
196
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.0.2...v1.0.3)
197
-
198
- **Merged pull requests:**
199
-
200
- - Adds verbose logging [\#5](https://github.com/parse-server-modules/parse-server-push-adapter/pull/5) ([flovilmart](https://github.com/flovilmart))
201
-
202
- ## [v1.0.2](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v1.0.2) (2016-03-26)
203
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.0.1...v1.0.2)
204
-
205
- **Merged pull requests:**
206
-
207
- - reports all sending error for mis-configurations [\#3](https://github.com/parse-server-modules/parse-server-push-adapter/pull/3) ([flovilmart](https://github.com/flovilmart))
208
-
209
- ## [v1.0.1](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v1.0.1) (2016-03-25)
210
- [Full Changelog](https://github.com/parse-server-modules/parse-server-push-adapter/compare/v1.0.0...v1.0.1)
211
-
212
- **Merged pull requests:**
213
-
214
- - Expose these two methods [\#1](https://github.com/parse-server-modules/parse-server-push-adapter/pull/1) ([rogerhu](https://github.com/rogerhu))
215
-
216
- ## [v1.0.0](https://github.com/parse-server-modules/parse-server-push-adapter/tree/v1.0.0) (2016-03-25)
217
-
218
-
219
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*