Skip to content

Commit 3bb9e0e

Browse files
authored
⚡ Release 2.6.4 (#4287)
* ⚡ Release 2.6.4 * Marks port ENV var as PORT * Fixes broken definitions * Update CHANGELOG.md * Update CHANGELOG.md * Update CHANGELOG.md
1 parent 7d2332e commit 3bb9e0e

File tree

5 files changed

+53
-17
lines changed

5 files changed

+53
-17
lines changed

CHANGELOG.md

+33-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,39 @@
11
## Parse Server Changelog
22

33
### master
4-
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.3...master)
4+
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.4...master)
5+
6+
### 2.6.4
7+
[Full Changelog](https://github.com/ParsePlatform/parse-server/compare/2.6.4...2.6.3)
8+
9+
### Improvements:
10+
* Improves management of configurations and default values, thanks to [Florent Vilmart](https://github.com/flovilmart)
11+
* Adds ability to start ParseServer with `ParseServer.start(options)`, thanks to [Florent Vilmart](https://github.com/flovilmart)
12+
* Adds request original IP to cloud code hooks, thanks to [Gustav Ahlberg](https://github.com/Gyran)
13+
* Corrects some outdated links, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
14+
* Adds serverURL validation on startup, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
15+
* Adds ability to login with POST requests alongside GET, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
16+
* Adds ability to login with email, instead of username, thanks to [Florent Vilmart](https://github.com/flovilmart)
17+
18+
### Bug Fixes:
19+
* Fixes issue affecting beforeSaves and increments, thanks to [Benjamin Wilson Friedman](https://github.com/montymxb)
20+
21+
#### Dependency Updates:
22+
* [[email protected]](https://www.npmjs.com/package/parse-server-push-adapter)
23+
* [[email protected]](https://www.npmjs.com/package/semver)
24+
* [[email protected]](https://www.npmjs.com/package/pg-promise)
25+
* [[email protected]](https://www.npmjs.com/package/mongodb)
26+
* [[email protected]](https://www.npmjs.com/package/mongodb)
27+
* [[email protected]](https://www.npmjs.com/package/express)
28+
* [[email protected]](https://www.npmjs.com/package/mime)
29+
* [[email protected]](https://www.npmjs.com/package/parse-server-simple-mailgun-adapter)
30+
31+
##### Devevelopment Dependencies Updates:
32+
* [[email protected]](https://www.npmjs.com/package/babel-preset-env)
33+
* [[email protected]](https://www.npmjs.com/package/cross-env)
34+
* [[email protected]](https://www.npmjs.com/package/mongodb-runner)
35+
* [[email protected]](https://www.npmjs.com/package/eslint-plugin-flowtype)
36+
* [[email protected]](https://www.npmjs.com/package/eslint)
537

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

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "2.6.3",
3+
"version": "2.6.4",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {

resources/buildConfigDefinitions.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ function getENVPrefix(iface) {
4747
return 'PARSE_SERVER_CUSTOM_PAGES_';
4848
}
4949
if (iface.id.name === 'LiveQueryServerOptions') {
50-
return 'PARSE_SERVER_LIVE_QUERY_';
50+
return 'PARSE_LIVE_QUERY_SERVER_';
51+
}
52+
if (iface.id.name === 'LiveQueryOptions') {
53+
return 'PARSE_SERVER_LIVEQUERY_';
5154
}
5255
}
5356

src/Options/Definitions.js

+13-13
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ module.exports.ParseServerOptions = {
265265
"default": 10
266266
},
267267
"port": {
268-
"env": "PARSE_SERVER_PORT",
268+
"env": "PORT",
269269
"help": "The port to run the ParseServer. defaults to 1337.",
270270
"action": parsers.numberParser("port"),
271271
"default": 1337
@@ -325,59 +325,59 @@ module.exports.LiveQueryOptions = {
325325
"action": parsers.arrayParser
326326
},
327327
"redisURL": {
328-
"env": "undefinedREDIS_URL",
328+
"env": "PARSE_SERVER_LIVEQUERY_REDIS_URL",
329329
"help": "parse-server's LiveQuery redisURL"
330330
},
331331
"pubSubAdapter": {
332-
"env": "undefinedPUB_SUB_ADAPTER",
332+
"env": "PARSE_SERVER_LIVEQUERY_PUB_SUB_ADAPTER",
333333
"help": "LiveQuery pubsub adapter",
334334
"action": parsers.moduleOrObjectParser
335335
}
336336
};
337337
module.exports.LiveQueryServerOptions = {
338338
"appId": {
339-
"env": "PARSE_SERVER_LIVE_QUERY_APP_ID",
339+
"env": "PARSE_LIVE_QUERY_SERVER_APP_ID",
340340
"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."
341341
},
342342
"masterKey": {
343-
"env": "PARSE_SERVER_LIVE_QUERY_MASTER_KEY",
343+
"env": "PARSE_LIVE_QUERY_SERVER_MASTER_KEY",
344344
"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."
345345
},
346346
"serverURL": {
347-
"env": "PARSE_SERVER_LIVE_QUERY_SERVER_URL",
347+
"env": "PARSE_LIVE_QUERY_SERVER_SERVER_URL",
348348
"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."
349349
},
350350
"keyPairs": {
351-
"env": "PARSE_SERVER_LIVE_QUERY_KEY_PAIRS",
351+
"env": "PARSE_LIVE_QUERY_SERVER_KEY_PAIRS",
352352
"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.",
353353
"action": parsers.objectParser
354354
},
355355
"websocketTimeout": {
356-
"env": "PARSE_SERVER_LIVE_QUERY_WEBSOCKET_TIMEOUT",
356+
"env": "PARSE_LIVE_QUERY_SERVER_WEBSOCKET_TIMEOUT",
357357
"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).",
358358
"action": parsers.numberParser("websocketTimeout")
359359
},
360360
"cacheTimeout": {
361-
"env": "PARSE_SERVER_LIVE_QUERY_CACHE_TIMEOUT",
361+
"env": "PARSE_LIVE_QUERY_SERVER_CACHE_TIMEOUT",
362362
"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).",
363363
"action": parsers.numberParser("cacheTimeout")
364364
},
365365
"logLevel": {
366-
"env": "PARSE_SERVER_LIVE_QUERY_LOG_LEVEL",
366+
"env": "PARSE_LIVE_QUERY_SERVER_LOG_LEVEL",
367367
"help": "This string defines the log level of the LiveQuery server. We support VERBOSE, INFO, ERROR, NONE. Defaults to INFO."
368368
},
369369
"port": {
370-
"env": "PARSE_SERVER_LIVE_QUERY_PORT",
370+
"env": "PARSE_LIVE_QUERY_SERVER_PORT",
371371
"help": "The port to run the ParseServer. defaults to 1337.",
372372
"action": parsers.numberParser("port"),
373373
"default": 1337
374374
},
375375
"redisURL": {
376-
"env": "PARSE_SERVER_LIVE_QUERY_REDIS_URL",
376+
"env": "PARSE_LIVE_QUERY_SERVER_REDIS_URL",
377377
"help": "parse-server's LiveQuery redisURL"
378378
},
379379
"pubSubAdapter": {
380-
"env": "PARSE_SERVER_LIVE_QUERY_PUB_SUB_ADAPTER",
380+
"env": "PARSE_LIVE_QUERY_SERVER_PUB_SUB_ADAPTER",
381381
"help": "LiveQuery pubsub adapter",
382382
"action": parsers.moduleOrObjectParser
383383
}

src/Options/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ export interface ParseServerOptions {
113113
enableSingleSchemaCache: ?boolean; // = false
114114
/* Sets the number of characters in generated object id's, default 10 */
115115
objectIdSize: ?number; // = 10
116-
/* The port to run the ParseServer. defaults to 1337. */
116+
/* The port to run the ParseServer. defaults to 1337.
117+
:ENV: PORT */
117118
port: ?number; // = 1337
118119
/* The host to serve ParseServer on. defaults to 0.0.0.0 */
119120
host: ?string; // = 0.0.0.0

0 commit comments

Comments
 (0)