Skip to content

Commit f87169b

Browse files
authored
Merge branch 'alpha' into alpha
2 parents 3d14641 + a97d418 commit f87169b

File tree

7 files changed

+64
-55
lines changed

7 files changed

+64
-55
lines changed

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [8.0.0-alpha.8](https://github.com/parse-community/parse-server/compare/8.0.0-alpha.7...8.0.0-alpha.8) (2025-01-30)
2+
3+
4+
### Features
5+
6+
* Add support for MongoDB `databaseOptions` keys `autoSelectFamily`, `autoSelectFamilyAttemptTimeout` ([#9579](https://github.com/parse-community/parse-server/issues/9579)) ([5966068](https://github.com/parse-community/parse-server/commit/5966068e963e7a79eac8fba8720ee7d83578f207))
7+
18
# [8.0.0-alpha.7](https://github.com/parse-community/parse-server/compare/8.0.0-alpha.6...8.0.0-alpha.7) (2025-01-28)
29

310

package-lock.json

Lines changed: 35 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "8.0.0-alpha.7",
3+
"version": "8.0.0-alpha.8",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {
@@ -95,7 +95,7 @@
9595
"jasmine-spec-reporter": "7.0.0",
9696
"jsdoc": "4.0.4",
9797
"jsdoc-babel": "0.5.0",
98-
"lint-staged": "15.4.1",
98+
"lint-staged": "15.4.3",
9999
"m": "1.9.0",
100100
"madge": "8.0.0",
101101
"mock-files-adapter": "file:spec/dependencies/mock-files-adapter",

spec/ParseConfigKey.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ describe('Config Keys', () => {
8484
minPoolSize: 5,
8585
connectTimeoutMS: 5000,
8686
socketTimeoutMS: 5000,
87+
autoSelectFamily: true,
88+
autoSelectFamilyAttemptTimeout: 3000
8789
},
8890
})).toBeResolved();
8991
expect(loggerErrorSpy.calls.all().reduce((s, call) => s += call.args[0], '')).not.toMatch(invalidKeyErrorMessage);

src/Options/Definitions.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,18 @@ module.exports.FileUploadOptions = {
10431043
},
10441044
};
10451045
module.exports.DatabaseOptions = {
1046+
autoSelectFamily: {
1047+
env: 'PARSE_SERVER_DATABASE_AUTO_SELECT_FAMILY',
1048+
help:
1049+
'The MongoDB driver option to set whether the socket attempts to connect to IPv6 and IPv4 addresses until a connection is established. If available, the driver will select the first IPv6 address.',
1050+
action: parsers.booleanParser,
1051+
},
1052+
autoSelectFamilyAttemptTimeout: {
1053+
env: 'PARSE_SERVER_DATABASE_AUTO_SELECT_FAMILY_ATTEMPT_TIMEOUT',
1054+
help:
1055+
'The MongoDB driver option to specify the amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily option. If set to a positive integer less than 10, the value 10 is used instead.',
1056+
action: parsers.numberParser('autoSelectFamilyAttemptTimeout'),
1057+
},
10461058
connectTimeoutMS: {
10471059
env: 'PARSE_SERVER_DATABASE_CONNECT_TIMEOUT_MS',
10481060
help:

src/Options/docs.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Options/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,10 @@ export interface DatabaseOptions {
610610
connectTimeoutMS: ?number;
611611
/* The MongoDB driver option to specify the amount of time, in milliseconds, spent attempting to send or receive on a socket before timing out. Specifying 0 means no timeout. */
612612
socketTimeoutMS: ?number;
613+
/* The MongoDB driver option to set whether the socket attempts to connect to IPv6 and IPv4 addresses until a connection is established. If available, the driver will select the first IPv6 address. */
614+
autoSelectFamily: ?boolean;
615+
/* The MongoDB driver option to specify the amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the autoSelectFamily option. If set to a positive integer less than 10, the value 10 is used instead. */
616+
autoSelectFamilyAttemptTimeout: ?number;
613617
}
614618

615619
export interface AuthAdapter {

0 commit comments

Comments
 (0)