-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Scoped packages #4354
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
+28
−23
Merged
Scoped packages #4354
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,7 +271,7 @@ var server = ParseServer({ | |
appName: 'Parse App', | ||
// The email adapter | ||
emailAdapter: { | ||
module: 'parse-server-simple-mailgun-adapter', | ||
module: '@parse/simple-mailgun-adapter', | ||
options: { | ||
// The address that your emails come from | ||
fromAddress: '[email protected]', | ||
|
@@ -337,7 +337,12 @@ $ PORT=8080 parse-server --appId APPLICATION_ID --masterKey MASTER_KEY | |
For the full list of configurable environment variables, run `parse-server --help`. | ||
|
||
### Available Adapters | ||
[Parse Server Modules (Adapters)](https://github.com/parse-server-modules) | ||
|
||
All official adapters are distributed as scoped pacakges on [npm (@parse)](https://www.npmjs.com/search?q=scope%3Aparse). | ||
|
||
Some well maintained adapters are also available on the [Parse Server Modules](https://github.com/parse-server-modules) organization. | ||
|
||
You can also find more adapters maintained by the community by searching on [npm](https://www.npmjs.com/search?q=parse-server%20adapter&page=1&ranking=optimal). | ||
|
||
### Configuring File Adapters | ||
|
||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ describe('server', () => { | |
appName: 'unused', | ||
verifyUserEmails: true, | ||
emailAdapter: { | ||
module: 'parse-server-simple-mailgun-adapter', | ||
module: '@parse/simple-mailgun-adapter', | ||
options: { | ||
fromAddress: '[email protected]', | ||
apiKey: 'k', | ||
|
@@ -123,7 +123,7 @@ describe('server', () => { | |
reconfigureServer({ | ||
appName: 'unused', | ||
verifyUserEmails: true, | ||
emailAdapter: 'parse-server-simple-mailgun-adapter', | ||
emailAdapter: '@parse/simple-mailgun-adapter', | ||
publicServerURL: 'http://localhost:8378/1' | ||
}) | ||
.catch(error => { | ||
|
@@ -137,7 +137,7 @@ describe('server', () => { | |
appName: 'unused', | ||
verifyUserEmails: true, | ||
emailAdapter: { | ||
module: 'parse-server-simple-mailgun-adapter', | ||
module: '@parse/simple-mailgun-adapter', | ||
options: { | ||
domain: 'd', | ||
} | ||
|
@@ -350,7 +350,7 @@ describe('server', () => { | |
|
||
it('exposes correct adapters', done => { | ||
expect(ParseServer.S3Adapter).toThrow(); | ||
expect(ParseServer.GCSAdapter).toThrow('GCSAdapter is not provided by parse-server anymore; please install parse-server-gcs-adapter'); | ||
expect(ParseServer.GCSAdapter).toThrow('GCSAdapter is not provided by parse-server anymore; please install @parse/gcs-files-adapter'); | ||
expect(ParseServer.FileSystemAdapter).toThrow(); | ||
expect(ParseServer.InMemoryCacheAdapter).toThrow(); | ||
expect(ParseServer.NullCacheAdapter).toThrow(); | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Should we keep the github modules as well or are we deprecating that altogether in favor of npm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all official adapters have moved from parse-server-modules to parse-community. Others are still there but not migrated yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re added back a line as there are still some adapter there.