Skip to content

⚡ Release 2.5.2 #3985

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
include:
# release on github latest branch
- stage: release
node_js: '6.10'
node_js: '4.6'
env:
before_script: skip
after_script: skip
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
## Parse Server Changelog

### 2.5.2
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.5.1...2.5.2)

#### Improvements:
* Restores ability to run on node >= 4.6
* Adds ability to configure cache from CLI
* Removes runtime check for node >= 4.6

### 2.5.1
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.5.0...2.5.1)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parse-server",
"version": "2.5.1",
"version": "2.5.2",
"description": "An express module providing a Parse-compatible API server",
"main": "lib/index.js",
"repository": {
Expand Down
4 changes: 0 additions & 4 deletions src/ParseServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ class ParseServer {
objectIdSize = defaults.objectIdSize,
__indexBuildCompletionCallbackForTests = () => {},
}) {
// verify parse-server is running on node >= 4.6
if (process.versions.node < '4.6') {
throw 'You must run parse-server on node >= 4.6. Your current node version is ' + process.versions.node + '.';
}

// Initialize the node client SDK automatically
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
Expand Down
11 changes: 10 additions & 1 deletion src/cli/definitions/parse-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
nullParser
} from '../utils/parsers';


export default {
"appId": {
env: "PARSE_SERVER_APPLICATION_ID",
Expand Down Expand Up @@ -225,6 +224,16 @@ export default {
help: "Use a single schema cache shared across requests. Reduces number of queries made to _SCHEMA. Defaults to false, i.e. unique schema cache per request.",
action: booleanParser
},
"cacheTTL": {
env: "PARSE_SERVER_CACHE_TTL",
help: "Sets the TTL for the in memory cache (in ms), defaults to 5000 (5 seconds)",
action: numberParser,
},
"cacheMaxSize": {
env: "PARSE_SERVER_CACHE_MAX_SIZE",
help: "Sets the maximum size for the in memory cache, defaults to 10000",
action: numberParser
},
"cluster": {
env: "PARSE_SERVER_CLUSTER",
help: "Run with cluster, optionally set the number of processes default to os.cpus().length",
Expand Down
2 changes: 1 addition & 1 deletion src/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function enforceRoleSecurity(method, className, auth) {
}

//all volatileClasses are masterKey only
if(classesWithMasterOnlyAccess.includes(className) && !auth.isMaster){
if(classesWithMasterOnlyAccess.indexOf(className) >= 0 && !auth.isMaster){
const error = `Clients aren't allowed to perform the ${method} operation on the ${className} collection.`
throw new Parse.Error(Parse.Error.OPERATION_FORBIDDEN, error);
}
Expand Down