-
Notifications
You must be signed in to change notification settings - Fork 257
feat(NODE-4892)!: error on bson types not from this version #543
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
c95f4c1
feat(NODE-4892)!: error on bson types not from this version
nbbeeken c0ce081
chore(release): 5.0.0-alpha.0
nbbeeken 5b38dd8
fix: BSONSymbol issue
nbbeeken 6557ebc
fix: use common constant for versioning
nbbeeken 7596086
chore(release): 5.0.0-alpha.1
nbbeeken 1cd6a31
Merge branch 'main' into NODE-4892-version-tag
durran 9132939
Merge branch 'main' into NODE-4892-version-tag
nbbeeken c4715c1
Merge branch 'main' into NODE-4892-version-tag
nbbeeken 90d2467
Merge branch 'main' into NODE-4892-version-tag
nbbeeken 02f26dd
fix: calculate object size and test for error case
nbbeeken 9e6a976
Merge branch 'main' into NODE-4892-version-tag
nbbeeken ff249e9
chore(release): 5.0.0-alpha.2
nbbeeken 60bf3d4
feat: add BSONValue super class with version getter
nbbeeken 40ed19e
test: name fix
nbbeeken 120d026
fix: rm getter from uuid
nbbeeken 3860c8c
fix: lint
nbbeeken b7c0e01
feat: add other common apis
nbbeeken 3887429
fix: add access annotations
nbbeeken 56e348d
fix: comments
nbbeeken 11159bb
fix: revert history file
nbbeeken 06911d1
fix: lint
nbbeeken b11e13d
fix tests checking for BSONVersionError
nbbeeken ee1c500
docs: migrate
nbbeeken c3b4cc2
docs: add jira ticket
nbbeeken 814f52f
address comments
nbbeeken 7614863
docs: update guide
nbbeeken File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { BSON_MAJOR_VERSION } from './constants'; | ||
|
||
/** @public */ | ||
export abstract class BSONValue { | ||
dariakp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/** @public */ | ||
public abstract get _bsontype(): string; | ||
|
||
/** @internal */ | ||
get [Symbol.for('@@mdb.bson.version')](): typeof BSON_MAJOR_VERSION { | ||
return BSON_MAJOR_VERSION; | ||
} | ||
|
||
/** @public */ | ||
public abstract inspect(): string; | ||
|
||
/** @internal */ | ||
abstract toExtendedJSON(): unknown; | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.