-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Remove dependency on Parse JS SDK #8787
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
Comments
Thanks for opening this issue!
|
A possible approach could be to move the common internal APIs such as Parse.Error, Parse._encode, Parse._decode into a separate repository and use it as a dependency in Parse Server and possibly all client SDKs, if there's a way to do that. It may need to be abstracted in a way that makes it compatible across ecosystems. For Parse.Error that's easy with a JSON import, but Object transcoding may be a challenge. |
@mtrezza This might be easier than I thought, all we have to do is isolate which parts of the is Cloud Code, routers, hooks, triggers. Thats where the Object transcoding happens then just |
I hope it is as easy as you make it sound - if you guessed, would you say this is an effort of days, weeks or months? |
Depends on how fast you can move |
Here are all the features from the Parse JS SDK used internally on the Server. Most likely
From what I can tell developers should be able to run Parse Server standalone without the Parse JS SDK but for features like Email Verification, Authentication, LIveQuery, CloudCode and Schema Migration, DirectAccess (default true) would need the Parse JS SDK |
What inside the JS SDK that makes these server features require it?
Then there are the tests that heavily use the JS SDK. Maybe none of the tests should actually use it but use the REST API. But given the amount of tests, it'd be an enormous effort to migrate them all. |
New Feature / Enhancement Checklist
Current Limitation
Parse Server currently depends on the Parse JS SDK. This is because the Parse JS SDK is leading a double life - as a Parse client SDK and as a internal module of Parse Server that is uses for various features. This creates the following issues:
Feature / Enhancement Description
Remove Parse Server's dependency on the Parse JS SDK. It should only be needed:
dependency
alongside Parse Server if a developer wants to use the Cloud Code feature. In that case the developer needs to add the Parse JS SDK as a dependency themselves.devDependency
for the Parse Server tests of Cloud Code.All elements of the Parse JS SDK that are currently in use in Parse Server should be moved to the
Parse.Cloud
namespace.The text was updated successfully, but these errors were encountered: