Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

feat: setInternalBufferSize #94

Open
wants to merge 1 commit into
base: 4.0
Choose a base branch
from
Open

feat: setInternalBufferSize #94

wants to merge 1 commit into from

Conversation

vird
Copy link

@vird vird commented Mar 5, 2023

Description

Support setInternalBufferSize (same as mongodb/js-bson)

What changed?

  • New function SetInternalBufferSize
  • Do not use global constant MAX_BSON_SIZE where possible
  • DataStream now can accept maxBSONSize
  • BSONSerializer added bson->maxBSONSize
  • New tests

Note there is bug with overflow when you try serialize javascript object larger than your internal buffer. See https://github.com/vird/bson-ext/tree/4.0_overflow_bug_testcase

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant