Skip to content

Commit

Permalink
feat: upgrade to Parse Server 5.2.1 and other dependency upgrades (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy authored May 18, 2022
1 parent c1074cb commit 96b104f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 29 deletions.
7 changes: 4 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
"ecmaVersion": 2021,
"sourceType": "module",
"requireConfigFile": false
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
Expand Down
41 changes: 18 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,36 @@
"name": "parse-server-example",
"version": "1.4.0",
"description": "An example Parse API server using the parse-server module",
"main": "index.js",
"repository": {
"type": "git",
"url": "https://github.com/ParsePlatform/parse-server-example"
},
"license": "MIT",
"dependencies": {
"express": "4.17.1",
"kerberos": "1.1.4",
"parse": "2.19.0",
"parse-server": "4.5.0"
},
"main": "index.js",
"scripts": {
"start": "node index.js",
"coverage": "nyc jasmine",
"lint": "eslint --cache ./cloud && eslint --cache index.js && eslint --cache ./spec",
"lint-fix": "eslint --cache --fix ./cloud && eslint --cache --fix index.js && eslint --cache --fix ./spec",
"test": "mongodb-runner start && jasmine",
"coverage": "nyc jasmine",
"prettier": "prettier --write '{cloud,spec}/{**/*,*}.js' 'index.js'",
"watch": "babel-watch index.js"
"start": "node index.js",
"test": "mongodb-runner start && jasmine",
"watch": "nodemon index.js"
},
"engines": {
"node": ">=4.3"
"dependencies": {
"express": "4.18.1",
"parse": "3.4.2",
"parse-server": "5.2.1"
},
"devDependencies": {
"babel-eslint": "10.1.0",
"babel-watch": "7.4.0",
"eslint": "7.19.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"jasmine": "3.6.4",
"mongodb-runner": "4.8.1",
"@babel/eslint-parser": "7.17.0",
"eslint": "8.15.0",
"jasmine": "4.1.0",
"mongodb-runner": "4.9.0",
"nodemon": "2.0.16",
"nyc": "15.1.0",
"prettier": "2.2.1"
"prettier": "2.6.2"
},
"engines": {
"node": ">=12.22.10 <19"
}
}
6 changes: 3 additions & 3 deletions spec/utils/test-runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ async function startParseServer() {
mountPath: '/test',
serverURL: `http://localhost:30001/test`,
logLevel: 'error',
silent: true
silent: true,
});
const parseServer = new ParseServer(parseServerOptions);
app.use(parseServerOptions.mountPath, parseServer);
const httpServer = http.createServer(app);
await new Promise((resolve) => httpServer.listen(parseServerOptions.port, resolve));
await new Promise(resolve => httpServer.listen(parseServerOptions.port, resolve));
Object.assign(parseServerState, {
parseServer,
httpServer,
Expand All @@ -47,7 +47,7 @@ async function startParseServer() {
*/
async function stopParseServer() {
const { httpServer } = parseServerState;
await new Promise((resolve) => httpServer.close(resolve));
await new Promise(resolve => httpServer.close(resolve));
parseServerState = {};
}

Expand Down

0 comments on commit 96b104f

Please sign in to comment.