Skip to content

Commit 4a0be3a

Browse files
authored
Merge pull request #1 from parse-community/master
update
2 parents 0fbc604 + 074f651 commit 4a0be3a

File tree

168 files changed

+29032
-13755
lines changed

Some content is hidden

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

168 files changed

+29032
-13755
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"root": true,
3+
"extends": "eslint:recommended",
4+
"env": {
5+
"node": true,
6+
"es6": true
7+
},
8+
"parser": "babel-eslint",
9+
"globals": {
10+
"wx": true
11+
},
12+
"plugins": [
13+
"flowtype"
14+
],
15+
"parserOptions": {
16+
"ecmaVersion": 6,
17+
"sourceType": "module"
18+
},
19+
"rules": {
20+
"indent": ["error", 2],
21+
"linebreak-style": ["error", "unix"],
22+
"no-trailing-spaces": 2,
23+
"eol-last": 2,
24+
"space-in-parens": ["error", "never"],
25+
"no-multiple-empty-lines": 1,
26+
"prefer-const": "error",
27+
"space-infix-ops": "error",
28+
"no-useless-escape": "off",
29+
"no-var": "error",
30+
"no-console": 0,
31+
"no-prototype-builtins": "off",
32+
"require-atomic-updates": "off"
33+
}
34+
}

.gitattributes

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
* text=auto eol=lf
2+
3+
*.js text
4+
*.html text
5+
*.less text
6+
*.json text
7+
*.css text
8+
*.xml text
9+
*.md text
10+
*.txt text
11+
*.yml text
12+
*.sql text
13+
*.sh text
14+
15+
*.png binary
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: "\U0001F4A1 Feature request"
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: "🙋‍Getting Help"
3+
about: Join https://community.parseplatform.org
4+
5+
---
6+
7+
<!---
8+
9+
**We use GitHub Issues for reporting bugs with Parse JS SDK.**
10+
11+
If you have a code-level question, use Stack Overflow with tags `parse-platform` and `parse-javascript-sdk`
12+
13+
If you have a non-bug question, you should join the [Parse Community's Discourse forum](https://community.parseplatform.org/c/sdk/js).
14+
15+
--->
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
name: "\U0001F525 Parse SDK JS 2.0.0"
3+
about: Report an issue while migrating to Parse SDK JS 2.0.0
4+
5+
---
6+
7+
<!---
8+
** Use this template only if you have an issue migrating to Parse SDK JS 2.0.0 **
9+
10+
If you have a question, ask on [Parse Community's Discourse forum](https://community.parseplatform.org/c/sdk/js)
11+
12+
If you have a vulnerability disclosure, please follow our policy available here https://github.com/parse-community/parse-server/blob/master/SECURITY.md
13+
14+
You may also search through existing issues before opening a new one: https://github.com/parse-community/Parse-SDK-JS/issues
15+
16+
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
17+
--->
18+
19+
# Before opening the issue please ensure that you have:
20+
21+
- [ ] [Read the migration guide](https://github.com/parse-community/parse-server/blob/master/3.0.0.md) to parse-server 3.0.0
22+
- [ ] [Read the migration guide](https://github.com/parse-community/Parse-SDK-JS/blob/master/2.0.0.md) to Parse SDK JS 2.0.0
23+
24+
### Issue Description
25+
26+
<!--- Describe your issue in as much detail as possible. -->
27+
28+
### Steps to reproduce
29+
30+
<!--- Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable. --->
31+
32+
### Expected Results
33+
34+
<!--- What you expected to happen. --->
35+
36+
### Actual Outcome
37+
38+
<!--- What is happening instead. --->
39+
40+
### Environment Setup
41+
42+
- **Server**
43+
- parse-server version (Be specific! Don't say 'latest'.) : [FILL THIS OUT]
44+
- Operating System: [FILL THIS OUT]
45+
- Hardware: [FILL THIS OUT]
46+
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [FILL THIS OUT]
47+
48+
- **JS SDK**
49+
- JS SDK version: [FILL THIS OUT]
50+
- Application? (Browser, Node, React-Native, etc): [FILL THIS OUT]
51+
52+
### Logs/Trace
53+
54+
<!--- Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment. --->
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
name: "\U0001F41B Report an issue"
3+
about: Report an issue on Parse JS SDK
4+
5+
---
6+
7+
<!---
8+
9+
**We use GitHub Issues for reporting bugs with Parse JS SDK.**
10+
11+
If you have a *question*, you should join the [Parse Community's Discourse forum](https://community.parseplatform.org/c/sdk/js).
12+
13+
If you have a vulnerability disclosure, please follow our policy available here https://github.com/parse-community/parse-server/blob/master/SECURITY.md
14+
15+
You may also search through existing issues before opening a new one: https://github.com/parse-community/Parse-SDK-JS/issues
16+
17+
--- Please use this template. If you don't use this template, your issue may be closed without comment. ---
18+
--->
19+
### Issue Description
20+
21+
<!--- Describe your issue in as much detail as possible. -->
22+
23+
### Steps to reproduce
24+
25+
<!--- Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable. --->
26+
27+
### Expected Results
28+
29+
<!--- What you expected to happen. --->
30+
31+
### Actual Outcome
32+
33+
<!--- What is happening instead. --->
34+
35+
### Environment Setup
36+
37+
- **Server**
38+
- parse-server version (Be specific! Don't say 'latest'.) : [FILL THIS OUT]
39+
- Operating System: [FILL THIS OUT]
40+
- Hardware: [FILL THIS OUT]
41+
- Localhost or remote server? (AWS, Heroku, Azure, Digital Ocean, etc): [FILL THIS OUT]
42+
43+
- **JS SDK**
44+
- JS SDK version: [FILL THIS OUT]
45+
- Application? (Browser, Node, React-Native, etc): [FILL THIS OUT]
46+
47+
### Logs/Trace
48+
49+
<!--- Include all relevant logs. You can turn on additional logging by configuring VERBOSE=1 in your environment. --->

.github/stale.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 45
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- pinned
8+
- security
9+
- good first task
10+
- up-for-grabs
11+
- enhancement
12+
- help wanted
13+
- bug
14+
- greenkeeper
15+
- feature
16+
- needs more info
17+
- discussion
18+
- question
19+
# Label to use when marking an issue as stale
20+
staleLabel: wontfix
21+
# Limit to only `issues` not `pulls`
22+
only: issues
23+
# Comment to post when marking an issue as stale. Set to `false` to disable
24+
markComment: >
25+
This issue has been automatically marked as stale because it has not had
26+
recent activity. It will be closed if no further activity occurs. Thank you
27+
for your contributions.
28+
# Comment to post when closing a stale issue. Set to `false` to disable
29+
closeComment: false

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ integration/test_logs
99
.DS_Store
1010
.idea/
1111
integration/test_logs
12+
test_logs
1213
out/
1314
docs/
15+
.eslintcache
1416

.travis.yml

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
11
language: node_js
22
dist: trusty
33
node_js:
4-
- '8.10'
5-
4+
- '10.14'
65
branches:
76
only:
8-
- master
9-
- /^greenkeeper/.*$/
10-
- /^v?[0-9]+.[0-9]+.[0-9]+(-.*)?$/
11-
7+
- master
8+
- "/^greenkeeper/.*$/"
9+
- "/^v?[0-9]+.[0-9]+.[0-9]+(-.*)?$/"
1210
cache:
1311
directories:
14-
- node_modules
12+
- "$HOME/.npm"
1513
- "$HOME/.mongodb/versions"
16-
1714
jobs:
1815
include:
19-
- stage: test
20-
env:
21-
- MONGODB_VERSION=3.2.13
22-
before_script:
23-
- npm install -g mongodb-runner
24-
- mongodb-runner start
25-
script: npm test -- --maxWorkers=4 && ./run_integration.sh
26-
after_script: cat ./coverage/coverage-final.json | ./node_modules/codecov.io/bin/codecov.io.js && rm -rf ./coverage
27-
# release on github latest branch
28-
- stage: release
29-
env:
30-
before_script: skip
31-
after_script: skip
32-
script:
33-
- npm run release_docs
34-
- npm run build
35-
deploy:
36-
- provider: pages
37-
skip_cleanup: true
38-
github_token: $GITHUB_TOKEN # Set in travis-ci.org dashboard
39-
local_dir: docs/
40-
on:
41-
all_branches: true
42-
- provider: npm
43-
skip_cleanup: true
44-
email:
45-
secure: "YweTGc22uqFWpzbfiUa5ptBLRAy6tt6d9TZLwEkPtmnsWzN9dguGyKWmXiw0qL+848FWQ5PWzUgBn5XdigV9tF3rJY6RGs8i38WulNjwSoGuRZa3AChsQHAb1KenANcJybzhnwgEj9gRsrGZPEsyI2whfake/xLDtG91kHjpJANsd4gseOh6fdS4FIYCbyXvSbC7S0yZzIJkgSkMqJO7RJ8r0HYQ7srYIw31dM3ZXSmUYu+GaMDUUu3RLAGYoKaROxhDRnzkjdeLLiwZH8hQ/6CaqwqX54iJ6OS+MOQU3fi5ZXalA7RZvtC4RmrcCkaTf3i0f+5xejYIFgzXdYGMVm8DUc82tDw1s4b6Pb19bgi1xXOQ0IKzRmZuGxnvkRN61dnYdnpnnNuG97HXgVjiOigZXVLZkWazUdnf9zXqmkC+KxPfa4Ldqg0TMjQ9J14n6TXxRti8Tt0xMa1Uzho7VdsxdJy35Bghy398O6X8VdX6parfzEkX7c/JzcA3TIMJ9+S1dy3J4Tb2URB5367W6h7cDeXtGmwLTFu75Q1CNqRJkUGbSrX2NyMqG5tc8oaTM+OWvLxcbKPRy9T6qN7x2JmCHHaapf8/8VR9wCy2PwE5j+KWhmctEHqqOgrtG5gsjC0eCPJsposxZWyM7M6aUpXe3w+olBfKq9apUGStUSU="
46-
api_key:
47-
secure: "BI+JcD4Ly3OtyHZ+K/qxJ5B+iHZPgfTHjZLVZz0K7jGVBFPtElDXdvCosjUA518uDIQX2yM8l4qg3EMoHW1LKHqGkcN57bT5fAQ/W5OSD49qJPAqZ4Nxa2BKup+jshjNq6jzLNG/IzyQ+UXB1eRQBiWeCz95d80LEdFpIW33avo1G4lLBCCm3IxSExV5D1fjH2/vSuNnDDfgBImSBqWxiv/oojp4O0dfgS3yoqoxiRXMOayTXP9FmQ0Bu6xZXaCiVfaVjQ2M2JQixMNq9pOIwXkYbI7SCMLcU9zutwfSVnOGOHc5rwe+7FJSwnQvZGzjJztYbxk7IykHMIv9qiSTiMtHfSSn7933V666PW+NOl/Cp6qESOI7KBZpI+45vyeBCQDP0vYdIIMg9xFLKPdiCltBxLOcCpZTGlWi5kkYA7DpzferPIybn6uiLqLHgEN891blevYZgr4sGFnHU29rZF17hDvWlZiRi4IFKbDl10RH7voSot71xf/47Iiq/J0MnlndUqqS6Ufj0QWLshoUlQxNH7TREwnw/Fo3Kz0ADY7sVeWjwzlZX2t+qkd1Xt8U73bLVjitY87EDIGRo5bMu5FMlJCUff5QAVYXE98hNkDDogqFJyvK6vuZteFMw3ouU1RwJyyYJqQP2/anZ4JysrFVguGdxObOV5Meq7+Wa/w="
48-
on:
49-
tags: true
50-
all_branches: true
51-
repo: parse-community/Parse-SDK-JS
16+
- stage: test
17+
env:
18+
- MONGODB_VERSION=3.2.13
19+
before_script:
20+
- npm install -g mongodb-runner
21+
- mongodb-runner start
22+
script:
23+
- npm run lint
24+
- npm test -- --maxWorkers=4
25+
- npm run integration
26+
after_script: "./node_modules/codecov/bin/codecov -f ./coverage/coverage-final.json
27+
&& rm -rf ./coverage"
28+
- stage: release
29+
env:
30+
-
31+
before_script: skip
32+
after_script: skip
33+
script:
34+
- npm run release_docs
35+
deploy:
36+
- provider: pages
37+
skip_cleanup: true
38+
github_token: "$GITHUB_TOKEN"
39+
local_dir: docs/
40+
on:
41+
all_branches: true
42+
- provider: npm
43+
skip_cleanup: true
44+
email:
45+
secure: NGcEiR5Q9N2n83xRUTY9KjrirwE86/8CiLxfdheKVYGag454GXh8uPHZQzhv9p4taprx/nPxQtnyLdUOrlmbW9a5grA1j/QMxKmKw00AjkIMefOSCJ4n0penlz2JI7M746DPraUwiJ2/UZERwV5cQmJg4X3eNetEc68WmLQeeV1IV6/72vExA0zFWdb+eg6sP06ZyYLi9StO730LqnxPsvqQSRJbFn7RVgj8Jz9aRK2YnMT8pq6Vj7N56Pu9nnno4eytfNynlzNgubBHhF1Jl5dxW3VWoem5/B7ehxk2sgZgkgH53kFmZsePTu2gFwQHGVV/zl40/a2BDjsIm4Na0X52HEoPMEHUlemRVMXB3Sl9sglo72YpGAbIc3rYRsr23aJ2pUgXVGjuhdQqB9OH/UMWPmm9ZTtQg08nhBfOQDLvf7rHrScqPGk6pWJEMAXA4B09asFD1wcrMfdgs8uuPJ2DIzxSK4FMyfbJci5/G/BzojtQsOn/PGdLZ5HM7gHwUoZ8qYbv+sVtNl4vOXEAuyuOpm9i8OJZBG+BzVwAoXZeilJtHlt4LkZBhSKcLfWg+2V1t+VmOr4cnBHPLHOdSYTkI9zqyRgKDI3zbSszLQcuNVXDAsygI5/MbW+xEYiY8lllvfj3KTdXrTobJGL97A6egq9ZxtY6EOGbbMgUmkg=
46+
api_key:
47+
secure: dEvG8zO1GL6yEJkfcbpIE+PejmsKPgZsOY4xGxFtrCdDCk4qHTyO6qc9TwQ5m+LfajZuq9EGCyTj7mPcwOrwmLTmX+sEP8QcW6L08syUvQeXqSL28RM10e6i/aEeMzwLrEvh9MmJZhA1mvuQLGq8Sx6SPZHQaQvvOia2hwQaATI9EM+FO1+ieawSIctNvtqkWwvqHHYTDJcJvT8q5uxIf2b5vJj42j2+JLuMDxVKwc7khdO/k9JBpbd0YZptIL3SL4LfMIczKMH/bMwAarG/Cm6fggexPCyofJn7Oof9PBXgUMDUCgxYvHstLK1WbvbEeyA6DvJIoY3SYwmdEjjIUdasMLTJyHlpppntR8fMmEt71BpHJG2TcLOt/dk1BdAKdNOLZMODo/nhLNuxvC3ymB8N2ZfhFk8cGEfU2SdapRkA9RVYEt6mrXT0lJEJ2V/A1giRNzeYaUX69JzcnUACJlzmbxlyRESvawdWJI+/JzjROS0PJG8y9cpe8I+SwqbNi7NFk1lWnSmvcyjTM4fFMppPdz3rEaGBYY7S1NlMayG5PdCctxn6ZBC6snRDMEPL2W2FbOO275M+fiwJ9m5A6AWapeBADAzc7gRCobpXB2dQXrvFi+2X6ReHP09ecFzdJLVEt9VdPAPUij/0s9Mby219s731mFh/0zhdYAo8/fA=
48+
on:
49+
tags: true
50+
all_branches: true
51+
repo: parse-community/Parse-SDK-JS

0 commit comments

Comments
 (0)