Skip to content

Commit 853a17e

Browse files
authored
Merge branch 'alpha' into moumouls/fix-graphql-realy
2 parents 5d6bd54 + ae99b92 commit 853a17e

File tree

8 files changed

+44
-45
lines changed

8 files changed

+44
-45
lines changed

.babelrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
["@babel/preset-env", {
88
"targets": {
99
"node": "12"
10-
},
11-
"exclude": ["proposal-dynamic-import"]
10+
}
1211
}]
1312
],
1413
"sourceMaps": "inline"

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,11 +489,12 @@ You can also find more adapters maintained by the community by searching on [npm
489489

490490
Parse Server allows developers to choose from several options when hosting files:
491491

492-
* `GridFSBucketAdapter`, which is backed by MongoDB;
493-
* `S3Adapter`, which is backed by [Amazon S3](https://aws.amazon.com/s3/); or
494-
* `GCSAdapter`, which is backed by [Google Cloud Storage](https://cloud.google.com/storage/)
492+
* `GridFSBucketAdapter` - which is backed by MongoDB
493+
* `S3Adapter` - which is backed by [Amazon S3](https://aws.amazon.com/s3/)
494+
* `GCSAdapter` - which is backed by [Google Cloud Storage](https://cloud.google.com/storage/)
495+
* `FSAdapter` - local file storage
495496

496-
`GridFSBucketAdapter` is used by default and requires no setup, but if you're interested in using S3 or Google Cloud Storage, additional configuration information is available in the [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/#configuring-file-adapters).
497+
`GridFSBucketAdapter` is used by default and requires no setup, but if you're interested in using Amazon S3, Google Cloud Storage, or local file storage, additional configuration information is available in the [Parse Server guide](http://docs.parseplatform.org/parse-server/guide/#configuring-file-adapters).
497498
498499
## Idempotency Enforcement
499500

changelogs/CHANGELOG_alpha.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# [5.0.0-alpha.7](https://github.com/parse-community/parse-server/compare/5.0.0-alpha.6...5.0.0-alpha.7) (2021-11-12)
2+
3+
4+
### Bug Fixes
5+
6+
* node engine range has no upper limit to exclude incompatible node versions ([#7692](https://github.com/parse-community/parse-server/issues/7692)) ([573558d](https://github.com/parse-community/parse-server/commit/573558d3adcbcc6222c92003829867e1a73eef94))
7+
8+
# [5.0.0-alpha.6](https://github.com/parse-community/parse-server/compare/5.0.0-alpha.5...5.0.0-alpha.6) (2021-11-10)
9+
10+
11+
### Reverts
12+
13+
* refactor: allow ES import for cloud string if package type is module ([b64640c](https://github.com/parse-community/parse-server/commit/b64640c5705f733798783e68d216e957044ef23c))
14+
115
# [5.0.0-alpha.5](https://github.com/parse-community/parse-server/compare/5.0.0-alpha.4...5.0.0-alpha.5) (2021-11-01)
216

317

package-lock.json

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

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-server",
3-
"version": "5.0.0-alpha.5",
3+
"version": "5.0.0-alpha.7",
44
"description": "An express module providing a Parse-compatible API server",
55
"main": "lib/index.js",
66
"repository": {
@@ -23,7 +23,7 @@
2323
"@graphql-tools/links": "6.2.5",
2424
"@graphql-tools/stitch": "6.2.4",
2525
"@graphql-tools/utils": "6.2.4",
26-
"@parse/fs-files-adapter": "1.2.0",
26+
"@parse/fs-files-adapter": "1.2.1",
2727
"@parse/push-adapter": "3.4.1",
2828
"apollo-server-express": "2.25.2",
2929
"bcryptjs": "2.4.3",
@@ -32,8 +32,8 @@
3232
"cors": "2.8.5",
3333
"deepcopy": "2.1.0",
3434
"express": "4.17.1",
35-
"follow-redirects": "1.14.2",
36-
"graphql": "15.6.0",
35+
"follow-redirects": "1.14.4",
36+
"graphql": "15.7.0",
3737
"graphql-list-fields": "2.0.2",
3838
"graphql-relay": "0.7.0",
3939
"graphql-tag": "2.12.5",
@@ -49,7 +49,7 @@
4949
"mustache": "4.2.0",
5050
"parse": "3.3.1",
5151
"pg-monitor": "1.4.1",
52-
"pg-promise": "10.11.0",
52+
"pg-promise": "10.11.1",
5353
"pluralize": "8.0.0",
5454
"redis": "3.1.2",
5555
"semver": "7.3.5",
@@ -58,7 +58,7 @@
5858
"uuid": "8.3.2",
5959
"winston": "3.3.3",
6060
"winston-daily-rotate-file": "4.5.5",
61-
"ws": "8.2.2"
61+
"ws": "8.2.3"
6262
},
6363
"devDependencies": {
6464
"@actions/core": "1.2.6",
@@ -135,7 +135,7 @@
135135
"madge:circular": "node_modules/.bin/madge ./src --circular"
136136
},
137137
"engines": {
138-
"node": ">=12.20.0"
138+
"node": ">=12.20.0 <16"
139139
},
140140
"bin": {
141141
"parse-server": "bin/parse-server"

spec/CloudCode.spec.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ describe('Cloud Code', () => {
3939
});
4040
});
4141

42-
it('can load cloud code as a module', async () => {
43-
process.env.npm_package_type = 'module';
44-
await reconfigureServer({ cloud: './spec/cloud/cloudCodeModuleFile.js' });
45-
const result = await Parse.Cloud.run('cloudCodeInFile');
46-
expect(result).toEqual('It is possible to define cloud code in a file.');
47-
delete process.env.npm_package_type;
48-
});
49-
5042
it('can create functions', done => {
5143
Parse.Cloud.define('hello', () => {
5244
return 'Hello world!';

spec/cloud/cloudCodeModuleFile.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/ParseServer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,7 @@ class ParseServer {
108108
if (typeof cloud === 'function') {
109109
cloud(Parse);
110110
} else if (typeof cloud === 'string') {
111-
if (process.env.npm_package_type === 'module') {
112-
import(path.resolve(process.cwd(), cloud));
113-
} else {
114-
require(path.resolve(process.cwd(), cloud));
115-
}
111+
require(path.resolve(process.cwd(), cloud));
116112
} else {
117113
throw "argument 'cloud' must either be a string or a function";
118114
}

0 commit comments

Comments
 (0)