meteorrn / meteor-react-native

Meteor client for React Native matching Meteor Spec
https://guide.meteor.com/react-native.html
Other
59 stars 31 forks source link

Expose EJSON in export #85

Closed jankapunkt closed 1 year ago

jankapunkt commented 2 years ago

We should expose EJSON to the client, importing this package.

Describe the solution you'd like

Adding EJSON to the export in the main js file would allow clients to define custom types that are EJSON-able and store them in a local cache, as well as sending them to the server (if defined there as such as well) via DDP.

Describe alternatives you've considered

Using JSON.stringify replacer and resolver to manually transform these but I am not sure, of an attempt to call to the Server would simply strip these from the call message, since EJSON has an internal lookup for custom types.

Additional context

I could add this to #83 or create an additional PR

TheRealNate commented 2 years ago

@jankapunkt additional PR would be preferred for cleanliness

github-actions[bot] commented 1 year ago

Closing this issue due to no activity. Feel free to reopen.