Skip to content

Commit 5907021

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 1d9528f + 300caf2 commit 5907021

File tree

138 files changed

+13474
-10440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+13474
-10440
lines changed

.github/workflows/pages.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: docs
22
on:
3-
push:
4-
branches:
5-
- master
6-
tags:
7-
- '*'
3+
release:
4+
types: [published]
85
jobs:
96
build:
107
runs-on: ubuntu-18.04

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: release
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish-npm:
7+
runs-on: ubuntu-18.04
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 12
13+
registry-url: https://registry.npmjs.org/
14+
- name: Cache Node.js modules
15+
uses: actions/cache@v2
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-node-
21+
- run: npm ci
22+
- run: npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
semi: true
2+
trailingComma: "es5"
3+
singleQuote: true
4+
arrowParens: "avoid"
5+
printWidth: 100

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
# Parse-SDK-JS
22

33
### master
4-
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.18.0...master)
4+
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.19.0...master)
5+
6+
## 2.19.0
7+
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.18.0...2.19.0)
8+
9+
**Features**
10+
- New error code 210 (MFA_ERROR) ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268))
11+
- New error code 211 (MFA_TOKEN_REQUIRED) ([#1268](https://github.com/parse-community/Parse-SDK-JS/pull/1268))
12+
- New error code 161 (FILE_DELETE_UNNAMED_ERROR) ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257))
13+
14+
**Improvements**
15+
- Parse.File.destroy without name error message ([#1257](https://github.com/parse-community/Parse-SDK-JS/pull/1257))
16+
17+
**Fixes**
18+
- Remove unnecessary object reference and comment from AddUniqueOp ([#1253](https://github.com/parse-community/Parse-SDK-JS/pull/1253))
19+
- Internal Referencing for Increment Dot Notation ([#1255](https://github.com/parse-community/Parse-SDK-JS/pull/1255))
20+
- Saving for Increment Dot Notation ([#1219](https://github.com/parse-community/Parse-SDK-JS/pull/1219))
521

622
## 2.18.0
723
[Full Changelog](https://github.com/parse-community/Parse-SDK-JS/compare/2.17.0...2.18.0)

integration/cloud/main.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* global Parse */
2-
Parse.Cloud.define("bar", function(request) {
3-
if (request.params.key2 === "value1") {
2+
Parse.Cloud.define('bar', function (request) {
3+
if (request.params.key2 === 'value1') {
44
return 'Foo';
55
} else {
6-
throw "bad stuff happened";
6+
throw 'bad stuff happened';
77
}
88
});
99

@@ -26,26 +26,26 @@ Parse.Cloud.define('CloudFunctionIdempotency', function () {
2626
return object.save(null, { useMasterKey: true });
2727
});
2828

29-
Parse.Cloud.define('CloudFunctionUndefined', function() {
29+
Parse.Cloud.define('CloudFunctionUndefined', function () {
3030
return undefined;
3131
});
3232

33-
Parse.Cloud.job('CloudJob1', function() {
33+
Parse.Cloud.job('CloudJob1', function () {
3434
return {
35-
status: 'cloud job completed'
35+
status: 'cloud job completed',
3636
};
3737
});
3838

39-
Parse.Cloud.job('CloudJob2', function() {
40-
return new Promise((resolve) => {
41-
setTimeout(function() {
39+
Parse.Cloud.job('CloudJob2', function () {
40+
return new Promise(resolve => {
41+
setTimeout(function () {
4242
resolve({
43-
status: 'cloud job completed'
44-
})
43+
status: 'cloud job completed',
44+
});
4545
}, 1000);
4646
});
4747
});
4848

49-
Parse.Cloud.job('CloudJobFailing', function() {
49+
Parse.Cloud.job('CloudJobFailing', function () {
5050
throw 'cloud job failed';
5151
});

integration/server.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,18 @@ const api = new ParseServer({
2020
option2: 'world',
2121
},
2222
facebook: {
23-
appIds: "test"
23+
appIds: 'test',
2424
},
2525
twitter: {
26-
consumer_key: "5QiVwxr8FQHbo5CMw46Z0jquF",
27-
consumer_secret: "p05FDlIRAnOtqJtjIt0xcw390jCcjj56QMdE9B52iVgOEb7LuK",
26+
consumer_key: '5QiVwxr8FQHbo5CMw46Z0jquF',
27+
consumer_secret: 'p05FDlIRAnOtqJtjIt0xcw390jCcjj56QMdE9B52iVgOEb7LuK',
2828
},
2929
},
3030
verbose: false,
3131
silent: true,
3232
idempotencyOptions: {
33-
paths: [
34-
'functions/CloudFunctionIdempotency',
35-
'jobs/CloudJob1',
36-
'classes/IdempotentTest'
37-
],
38-
ttl: 120
33+
paths: ['functions/CloudFunctionIdempotency', 'jobs/CloudJob1', 'classes/IdempotentTest'],
34+
ttl: 120,
3935
},
4036
serverStartComplete: () => {
4137
/* Ignore ParseError: schema class name does not revalidate */
@@ -54,5 +50,5 @@ app.get('/clear/:fast', (req, res) => {
5450
});
5551

5652
module.exports = {
57-
app
53+
app,
5854
};

0 commit comments

Comments
 (0)