Skip to content

⚡ Release 2.6.4 #4287

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 7 commits into from
Oct 25, 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
34 changes: 33 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,39 @@
## Parse Server Changelog

### master
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.3...master)
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.4...master)

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

### Improvements:
* Improves management of configurations and default values, thanks to [Florent Vilmart](https://github.com/flovilmart)
* Adds ability to start ParseServer with `ParseServer.start(options)`, thanks to [Florent Vilmart](https://github.com/flovilmart)
* Adds request original IP to cloud code hooks, thanks to [Gustav Ahlberg](https://github.com/Gyran)
* Corrects some outdated links, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
* Adds serverURL validation on startup, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
* Adds ability to login with POST requests alongside GET, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
* Adds ability to login with email, instead of username, thanks to [Florent Vilmart](https://github.com/flovilmart)

### Bug Fixes:
* Fixes issue affecting beforeSaves and increments, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)

#### Dependency Updates:
* [[email protected]](https://www.npmjs.com/package/parse-server-push-adapter)
* [[email protected]](https://www.npmjs.com/package/semver)
* [[email protected]](https://www.npmjs.com/package/pg-promise)
* [[email protected]](https://www.npmjs.com/package/mongodb)
* [[email protected]](https://www.npmjs.com/package/mongodb)
* [[email protected]](https://www.npmjs.com/package/express)
* [[email protected]](https://www.npmjs.com/package/mime)
* [[email protected]](https://www.npmjs.com/package/parse-server-simple-mailgun-adapter)

##### Devevelopment Dependencies Updates:
* [[email protected]](https://www.npmjs.com/package/babel-preset-env)
* [[email protected]](https://www.npmjs.com/package/cross-env)
* [[email protected]](https://www.npmjs.com/package/mongodb-runner)
* [[email protected]](https://www.npmjs.com/package/eslint-plugin-flowtype)
* [[email protected]](https://www.npmjs.com/package/eslint)

### 2.6.3
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.2...2.6.3)
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.6.3",
"version": "2.6.4",
"description": "An express module providing a Parse-compatible API server",
"main": "lib/index.js",
"repository": {
Expand Down
5 changes: 4 additions & 1 deletion resources/buildConfigDefinitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ function getENVPrefix(iface) {
return 'PARSE_SERVER_CUSTOM_PAGES_';
}
if (iface.id.name === 'LiveQueryServerOptions') {
return 'PARSE_SERVER_LIVE_QUERY_';
return 'PARSE_LIVE_QUERY_SERVER_';
}
if (iface.id.name === 'LiveQueryOptions') {
return 'PARSE_SERVER_LIVEQUERY_';
}
}

Expand Down
26 changes: 13 additions & 13 deletions src/Options/Definitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ module.exports.ParseServerOptions = {
"default": 10
},
"port": {
"env": "PARSE_SERVER_PORT",
"env": "PORT",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was dumbly competing with k8s when your service is named PARSE_SERVER, k8s exposed it as an env variable, but this is not a port (int) but the tcp URL for the service 🤕🔫

"help": "The port to run the ParseServer. defaults to 1337.",
"action": parsers.numberParser("port"),
"default": 1337
Expand Down Expand Up @@ -325,59 +325,59 @@ module.exports.LiveQueryOptions = {
"action": parsers.arrayParser
},
"redisURL": {
"env": "undefinedREDIS_URL",
"env": "PARSE_SERVER_LIVEQUERY_REDIS_URL",
"help": "parse-server's LiveQuery redisURL"
},
"pubSubAdapter": {
"env": "undefinedPUB_SUB_ADAPTER",
"env": "PARSE_SERVER_LIVEQUERY_PUB_SUB_ADAPTER",
"help": "LiveQuery pubsub adapter",
"action": parsers.moduleOrObjectParser
}
};
module.exports.LiveQueryServerOptions = {
"appId": {
"env": "PARSE_SERVER_LIVE_QUERY_APP_ID",
"env": "PARSE_LIVE_QUERY_SERVER_APP_ID",
"help": "This string should match the appId in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same appId."
},
"masterKey": {
"env": "PARSE_SERVER_LIVE_QUERY_MASTER_KEY",
"env": "PARSE_LIVE_QUERY_SERVER_MASTER_KEY",
"help": "This string should match the masterKey in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same masterKey."
},
"serverURL": {
"env": "PARSE_SERVER_LIVE_QUERY_SERVER_URL",
"env": "PARSE_LIVE_QUERY_SERVER_SERVER_URL",
"help": "This string should match the serverURL in use by your Parse Server. If you deploy the LiveQuery server alongside Parse Server, the LiveQuery server will try to use the same serverURL."
},
"keyPairs": {
"env": "PARSE_SERVER_LIVE_QUERY_KEY_PAIRS",
"env": "PARSE_LIVE_QUERY_SERVER_KEY_PAIRS",
"help": "A JSON object that serves as a whitelist of keys. It is used for validating clients when they try to connect to the LiveQuery server. Check the following Security section and our protocol specification for details.",
"action": parsers.objectParser
},
"websocketTimeout": {
"env": "PARSE_SERVER_LIVE_QUERY_WEBSOCKET_TIMEOUT",
"env": "PARSE_LIVE_QUERY_SERVER_WEBSOCKET_TIMEOUT",
"help": "Number of milliseconds between ping/pong frames. The WebSocket server sends ping/pong frames to the clients to keep the WebSocket alive. This value defines the interval of the ping/pong frame from the server to clients. Defaults to 10 * 1000 ms (10 s).",
"action": parsers.numberParser("websocketTimeout")
},
"cacheTimeout": {
"env": "PARSE_SERVER_LIVE_QUERY_CACHE_TIMEOUT",
"env": "PARSE_LIVE_QUERY_SERVER_CACHE_TIMEOUT",
"help": "Number in milliseconds. When clients provide the sessionToken to the LiveQuery server, the LiveQuery server will try to fetch its ParseUser's objectId from parse server and store it in the cache. The value defines the duration of the cache. Check the following Security section and our protocol specification for details. Defaults to 30 * 24 * 60 * 60 * 1000 ms (~30 days).",
"action": parsers.numberParser("cacheTimeout")
},
"logLevel": {
"env": "PARSE_SERVER_LIVE_QUERY_LOG_LEVEL",
"env": "PARSE_LIVE_QUERY_SERVER_LOG_LEVEL",
"help": "This string defines the log level of the LiveQuery server. We support VERBOSE, INFO, ERROR, NONE. Defaults to INFO."
},
"port": {
"env": "PARSE_SERVER_LIVE_QUERY_PORT",
"env": "PARSE_LIVE_QUERY_SERVER_PORT",
"help": "The port to run the ParseServer. defaults to 1337.",
"action": parsers.numberParser("port"),
"default": 1337
},
"redisURL": {
"env": "PARSE_SERVER_LIVE_QUERY_REDIS_URL",
"env": "PARSE_LIVE_QUERY_SERVER_REDIS_URL",
"help": "parse-server's LiveQuery redisURL"
},
"pubSubAdapter": {
"env": "PARSE_SERVER_LIVE_QUERY_PUB_SUB_ADAPTER",
"env": "PARSE_LIVE_QUERY_SERVER_PUB_SUB_ADAPTER",
"help": "LiveQuery pubsub adapter",
"action": parsers.moduleOrObjectParser
}
Expand Down
3 changes: 2 additions & 1 deletion src/Options/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export interface ParseServerOptions {
enableSingleSchemaCache: ?boolean; // = false
/* Sets the number of characters in generated object id's, default 10 */
objectIdSize: ?number; // = 10
/* The port to run the ParseServer. defaults to 1337. */
/* The port to run the ParseServer. defaults to 1337.
:ENV: PORT */
port: ?number; // = 1337
/* The host to serve ParseServer on. defaults to 0.0.0.0 */
host: ?string; // = 0.0.0.0
Expand Down