You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My code, which is primarily automerge-repo-based, accessed RawString through a '@automerge/automerge/next' import. At one point, I noticed that I didn't have '@automerge/automerge' in my package.json, which I reflexively consider bad practice, so I added it. This actually broke my code, I think because automerge-repo used a different version of automerge. (This was the root cause of automerge/automerge#891, fwiw.)
I want to flag this as a potential issue. My guess is that the best approach would be for automerge-repo to be a "one stop shop" – just import it and you'll get everything you need in a nice consistent bundle, including access to RawString. If it's better to access RawString through a separate automerge import, I wonder what approach would make sure that versions are in sync, and/or provide helpful error messages if they get out of sync.
(Thanks!)
The text was updated successfully, but these errors were encountered:
I agree! I'd like to go through all of Automerge-Core and make sure we export any types and functions you might need as well as generally cleaning up the API. I think that might be a good small project to make a point release out of.
My code, which is primarily automerge-repo-based, accessed RawString through a '@automerge/automerge/next' import. At one point, I noticed that I didn't have '@automerge/automerge' in my package.json, which I reflexively consider bad practice, so I added it. This actually broke my code, I think because automerge-repo used a different version of automerge. (This was the root cause of automerge/automerge#891, fwiw.)
I want to flag this as a potential issue. My guess is that the best approach would be for automerge-repo to be a "one stop shop" – just import it and you'll get everything you need in a nice consistent bundle, including access to RawString. If it's better to access RawString through a separate automerge import, I wonder what approach would make sure that versions are in sync, and/or provide helpful error messages if they get out of sync.
(Thanks!)
The text was updated successfully, but these errors were encountered: