realm-studio icon indicating copy to clipboard operation
realm-studio copied to clipboard

Support multiple Realm file formats without upgrading files

Open kraenhansen opened this issue 4 years ago • 2 comments

Users have recently experienced issues upgrading to Realm Studio v3.11.0 because it uses a new Realm file format, upgrading the file being opened which makes it impossible to use with older versions of our SDKs. Initial investigations into packaging multiple versions of Realm JS has been made and we deem it possible to open Realms with the appropriate version of Realm JS, avoiding the need to upgrade the file before opening it.

kraenhansen avatar Jun 02 '20 12:06 kraenhansen

➤ Kræn Hansen commented:

Realm JS is currently relying on a global "Realm" property, this will lead to undefined behaviour when multiple versions of Realm JS is loaded into the same process.

RealmBot avatar Jul 16 '20 08:07 RealmBot

We're investigating this, but we're hesitant since:

  1. It would most likely pin our version of Electron too low (we would need to use a version which had a Realm JS binary compiled for the lowest file format that we want to support)
  2. It would complicate Realm Studio since we would potentially need multiple implementations to support the different versions of Realm JS
  3. It would most likely increase the download size of Realm Studio by ~20mb.

kraenhansen avatar Sep 19 '20 11:09 kraenhansen