Skip to content

Conversation

@nbbeeken
Copy link
Contributor

@nbbeeken nbbeeken commented Jul 7, 2021

Upgrade guide, moved the versioned api feature mention out of this file, I'm thinking we should break out features from changes, thoughts?

@nbbeeken nbbeeken changed the title NODE-2329/upgrade-guide docs(NODE-2329): write upgrade and migration guide Jul 7, 2021
@nbbeeken nbbeeken force-pushed the NODE-2329/upgrade-guide branch from f39b752 to ebbd33a Compare July 7, 2021 20:03
@nbbeeken nbbeeken requested review from dariakp, durran and emadum July 7, 2021 20:11
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking great, thank you for putting this together! 👏 Had a few small requests.

@nbbeeken nbbeeken requested a review from emadum July 7, 2021 21:33
- Use command monitoring: `client.on('commandStarted', (ev) => {})`
- Top-Level export no longer a function: `typeof require('mongodb') !== 'function'`
- Must construct a MongoClient and call `.connect()` on it.
- No more `Symbol` export, now `BSONSymbol` which is a deprecated BSON type
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to clarify the implications of BSONSymbol being a deprecated type?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrote some text, looks good?

Copy link
Contributor

@dariakp dariakp Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe change the order and make one sentence?
"Existing BSON symbols in your database will be deserialized to a BSONSymbol instance; however, users should use plain strings instead of BSONSymbol"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM, done!

nbbeeken and others added 7 commits July 8, 2021 11:47
Co-authored-by: Daria Pardue <[email protected]>
Co-authored-by: Daria Pardue <[email protected]>
Co-authored-by: Daria Pardue <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
@nbbeeken nbbeeken requested a review from dariakp July 8, 2021 15:59
Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolved all comments, just the BSONSymbol wording still an open question

- Use command monitoring: `client.on('commandStarted', (ev) => {})`
- Top-Level export no longer a function: `typeof require('mongodb') !== 'function'`
- Must construct a MongoClient and call `.connect()` on it.
- No more `Symbol` export, now `BSONSymbol` which is a deprecated BSON type
Copy link
Contributor

@dariakp dariakp Jul 8, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe change the order and make one sentence?
"Existing BSON symbols in your database will be deserialized to a BSONSymbol instance; however, users should use plain strings instead of BSONSymbol"

@emadum
Copy link
Contributor

emadum commented Jul 8, 2021

moved the versioned api feature mention out of this file, I'm thinking we should break out features from changes, thoughts?

SGTM, there is also now a page in the official driver docs describing the feature, we don't need to duplicate that info here.

@terakilobyte terakilobyte mentioned this pull request Jul 9, 2021
6 tasks
nbbeeken and others added 6 commits July 9, 2021 13:23
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Eric Adum <[email protected]>
@nbbeeken nbbeeken requested a review from emadum July 9, 2021 18:18
@nbbeeken nbbeeken requested a review from emadum July 9, 2021 19:43
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably the final round of feedback 🚀

nbbeeken and others added 4 commits July 12, 2021 13:54
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Eric Adum <[email protected]>
@nbbeeken nbbeeken requested a review from emadum July 12, 2021 17:55
Copy link
Contributor

@emadum emadum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link
Contributor

@dariakp dariakp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nbbeeken nbbeeken requested a review from emadum July 13, 2021 16:38
@nbbeeken nbbeeken merged commit a3aa060 into 4.0 Jul 13, 2021
@nbbeeken nbbeeken deleted the NODE-2329/upgrade-guide branch July 13, 2021 17:12
ljhaywar pushed a commit that referenced this pull request Nov 9, 2021
Co-authored-by: Eric Adum <[email protected]>
Co-authored-by: Daria Pardue <[email protected]>
Co-authored-by: Anna Henningsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Team Review Needs review from team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants