Skip to content

Commit b4b9bc8

Browse files
authored
Merge pull request #3 from parse-community/master
Merge from upstream
2 parents 09ba216 + 0197d39 commit b4b9bc8

File tree

5 files changed

+12883
-237
lines changed

5 files changed

+12883
-237
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
11
name: ci
22
on:
33
push:
4-
branches: [ master, release, alpha, beta ]
4+
branches:
5+
- master
56
pull_request:
6-
branches: [ '**' ]
7+
branches:
8+
- '**'
79
jobs:
810
test:
11+
strategy:
12+
matrix:
13+
include:
14+
- name: Node.js 14
15+
NODE_VERSION: 14
16+
- name: Node.js 16
17+
NODE_VERSION: 16
18+
- name: Node.js 18
19+
NODE_VERSION: 18
20+
- name: Node.js 20
21+
NODE_VERSION: 20
22+
fail-fast: false
23+
name: ${{ matrix.name }}
24+
timeout-minutes: 15
925
runs-on: ubuntu-latest
10-
timeout-minutes: 30
1126
steps:
12-
- name: Checkout repository
13-
uses: actions/checkout@v2
14-
- name: Setup Node
15-
uses: actions/setup-node@v2
27+
- uses: actions/checkout@v2
28+
- name: Use Node.js ${{ matrix.NODE_VERSION }}
29+
uses: actions/setup-node@v1
1630
with:
17-
node-version: 14
31+
node-version: ${{ matrix.NODE_VERSION }}
1832
- name: Cache Node.js modules
1933
uses: actions/cache@v2
2034
with:
2135
path: ~/.npm
22-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
36+
key: ${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
2337
restore-keys: |
24-
${{ runner.os }}-node-
38+
${{ runner.os }}-node-${{ matrix.NODE_VERSION }}-
2539
- name: Install dependencies
2640
run: npm ci
2741
- name: Build package

CHANGELOG.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,64 @@
1+
## [5.0.2](https://github.com/parse-community/parse-server-push-adapter/compare/5.0.1...5.0.2) (2023-10-21)
2+
3+
4+
### Bug Fixes
5+
6+
* Security upgrade semver-regex from 3.1.3 to 3.1.4 ([#210](https://github.com/parse-community/parse-server-push-adapter/issues/210)) ([089149b](https://github.com/parse-community/parse-server-push-adapter/commit/089149b70347200b7df37c280029f84c829d6798))
7+
8+
## [5.0.1](https://github.com/parse-community/parse-server-push-adapter/compare/5.0.0...5.0.1) (2023-10-21)
9+
10+
11+
### Bug Fixes
12+
13+
* Security upgrade qs from 6.5.2 to 6.5.3 ([#215](https://github.com/parse-community/parse-server-push-adapter/issues/215)) ([7fe2446](https://github.com/parse-community/parse-server-push-adapter/commit/7fe2446b1ec3c3bab06dc5302bc97deb1fb43fb2))
14+
15+
# [5.0.0](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.5...5.0.0) (2023-10-21)
16+
17+
18+
### Features
19+
20+
* Upgrade to node-apn 6.0.1, parse 4.2.0 ([#227](https://github.com/parse-community/parse-server-push-adapter/issues/227)) ([615e730](https://github.com/parse-community/parse-server-push-adapter/commit/615e73012056c6702a9f7eb1ab9359f7f88b8efc))
21+
22+
23+
### BREAKING CHANGES
24+
25+
* This release removes support for Node 12; the minimum required version is Node 14. ([615e730](615e730))
26+
27+
## [4.2.5](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.4...4.2.5) (2023-10-21)
28+
29+
30+
### Bug Fixes
31+
32+
* Security upgrade json-schema and jsprim ([#226](https://github.com/parse-community/parse-server-push-adapter/issues/226)) ([83ca68f](https://github.com/parse-community/parse-server-push-adapter/commit/83ca68f028222a38cdcb7d8a7296509a1189b258))
33+
34+
## [4.2.4](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.3...4.2.4) (2023-10-21)
35+
36+
37+
### Bug Fixes
38+
39+
* Security upgrade @babel/traverse from 7.17.3 to 7.23.2 ([#225](https://github.com/parse-community/parse-server-push-adapter/issues/225)) ([afdb28e](https://github.com/parse-community/parse-server-push-adapter/commit/afdb28e8d1eccc1b848612210804bd2fe6973622))
40+
41+
## [4.2.3](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.2...4.2.3) (2023-10-21)
42+
43+
44+
### Bug Fixes
45+
46+
* Security upgrade decode-uri-component from 0.2.0 to 0.2.2 ([#214](https://github.com/parse-community/parse-server-push-adapter/issues/214)) ([16863c0](https://github.com/parse-community/parse-server-push-adapter/commit/16863c09f08fa346462711d906e6fbdc38721222))
47+
48+
## [4.2.2](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.1...4.2.2) (2023-10-21)
49+
50+
51+
### Bug Fixes
52+
53+
* Security upgrade http-cache-semantics from 4.1.0 to 4.1.1 ([#216](https://github.com/parse-community/parse-server-push-adapter/issues/216)) ([ba48dd6](https://github.com/parse-community/parse-server-push-adapter/commit/ba48dd66741f136847ae93684dc2f0184ca9512f))
54+
55+
## [4.2.1](https://github.com/parse-community/parse-server-push-adapter/compare/4.2.0...4.2.1) (2023-10-02)
56+
57+
58+
### Bug Fixes
59+
60+
* Upgrade @parse/node-apn from 5.2.1 to 5.2.3 ([#221](https://github.com/parse-community/parse-server-push-adapter/issues/221)) ([7aaab38](https://github.com/parse-community/parse-server-push-adapter/commit/7aaab38b8c97215ea9e63f87fc627450646c714e))
61+
162
# [4.2.0](https://github.com/parse-community/parse-server-push-adapter/compare/4.1.3...4.2.0) (2023-08-06)
263

364

README.md

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ The official Push Notification adapter for Parse Server. See [Parse Server Push
1919
- [Install Push Adapter](#install-push-adapter)
2020
- [Configure Parse Server](#configure-parse-server)
2121

22-
23-
2422
# Silent Notifications
2523

2624
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.
@@ -44,30 +42,26 @@ This will produce a more verbose output for all the push sending attempts
4442
## Install Push Adapter
4543

4644
```
47-
npm install --save @parse/push-adapter@VERSION
45+
npm install --save @parse/push-adapter@<VERSION>
4846
```
4947

50-
Replace VERSION with the version you want to install.
48+
Replace `<VERSION>` with the version you want to install.
5149

5250
## Configure Parse Server
5351

5452
```js
5553
const PushAdapter = require('@parse/push-adapter').default;
56-
const pushOptions = {
57-
ios: { /* iOS push options */ } ,
58-
android: { /* android push options */ }
59-
}
60-
// starting 3.0.0
61-
const options = {
62-
appId: "****",
63-
masterKey: "****",
54+
const parseServerOptions = {
6455
push: {
65-
adapter: new PushAdapter(pushOptions),
56+
adapter: new PushAdapter({
57+
ios: {
58+
/* Apple push notification options */
59+
},
60+
android: {
61+
/* Android push options */
62+
}
63+
})
6664
},
67-
/* ... */
65+
/* Other Parse Server options */
6866
}
69-
70-
const server = new ParseServer(options);
71-
72-
/* continue with the initialization of parse-server */
7367
```

0 commit comments

Comments
 (0)