Skip to content
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

Upgrade to BSON v5 #6018

Closed
takameyer opened this issue Jul 31, 2023 · 3 comments
Closed

Upgrade to BSON v5 #6018

takameyer opened this issue Jul 31, 2023 · 3 comments

Comments

@takameyer
Copy link
Contributor

takameyer commented Jul 31, 2023

Currently, upgrading bson to v5 causes the integration tests to fail in react-native. It's probably due to some polyfills needing to be implemented. We should investigate what is needed to be done here in order to stay up to date with the current updates to the bson package.

@LiohAu
Copy link

LiohAu commented Aug 3, 2023

Sorry if I do not open a new issue, but mine is a little bit related.

I have a RN project where I had an issue with the realm / BSON import statements (like this one import { UUID } from 'bson';).

Since I am using BSON only for UUID, can I use any other library to define the UUID fields in my schema as I read on BSON's Jira that RN is not clearly supported ?

Because right now, I had to downgrade to v4.x and then also downgrade Realm to v10.x.

@takameyer
Copy link
Contributor Author

@LiohAu You can import BSON directly out of realm, as we re-export it.

import { BSON } from 'realm';

const id = new BSON.UUID();

Currently you we only store BSON types, but you can use another library and transform it to a string, if that's desired.
You shouldn't have to downgrade Realm in order to use v4.x.

@sync-by-unito sync-by-unito bot changed the title Upgrade to BSON v5 Upgrade to BSON v5 Feb 16, 2024
@kraenhansen
Copy link
Member

Closing this issue in favour of #6561

@kraenhansen kraenhansen closed this as not planned Won't fix, can't repro, duplicate, stale Mar 18, 2024
@kraenhansen kraenhansen added First-Good-Issue First Good Issue - Relatively easy issue for new contributers and removed First-Good-Issue First Good Issue - Relatively easy issue for new contributers labels Mar 18, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants