realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.72k stars 564 forks source link

Make a separate Node.js package #3885

Open ibilux opened 3 years ago

ibilux commented 3 years ago

Goals

I hope you make a separate Node.js package, cause for Node.js we don't need to install the current dependencies for React-Native. In some cases React-Native dependencies caused some problems. I had to comment NativeModules and debugHosts, debugPort avoid errors in Node.js. https://github.com/realm/realm-js/blob/c5528b73353b108a15625668d29fd1bb18356fd3/lib/browser/index.js#L19 https://github.com/realm/realm-js/blob/c5528b73353b108a15625668d29fd1bb18356fd3/lib/browser/index.js#L38

Expected Results

A separated Node.js package without React-Native dependencies.

Version of Realm and Tooling

takameyer commented 3 years ago

@ibilux Thanks for the request. We are currently having discussions about how we could rearchitect this project to separate the needs of react-native and node users. It is, however, not a trivial task to break these apart at this time, but we have some upcoming improvements that may make this easier in the future.

That being said, we would appreciate it if you would make new issues reporting what problems you are experiencing, with some code samples so we can reproduce it.

Thanks again for your interest.

ibilux commented 3 years ago

@takameyer That's good to hear. I'll be waiting for the upcoming improvements. And I'll make a new issues with more details.

ravinderwalkover commented 2 years ago

@takameyer Any update on this? Can we have a separate package for node.js without react-native?

takameyer commented 2 years ago

@ravinderwalkover It's on our upcoming agenda, but we haven't made any progress yet.

ibilux commented 1 year ago

I have made a realm package for node only at @ibilux/realm-node, Still testing it. But the size is much smaller.