ITADN

chore(deps): bump bson from 6.9.0 to 7.2.0

#561Pull Requestdependabot[bot] 创建于 2026-03-01
dependenciesStalejavascript
D
dependabot[bot]commented
Bumps [bson](https://github.com/mongodb/js-bson) from 6.9.0 to 7.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mongodb/js-bson/releases">bson's releases</a>.</em></p> <blockquote> <h2>v7.2.0</h2> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.1.1...v7.2.0">7.2.0</a> (2026-01-29)</h2> <p>The MongoDB Node.js team is pleased to announce version 7.2.0 of the <code>bson</code> package!</p> <h2>Release Notes</h2> <h3><code>EJSON</code> now supports <code>ignoreUndefined</code></h3> <p><code>serialize</code> supports an option, <code>ignoreUndefined</code>, which instructs the serializer to skip any keys whose values are <code>undefined</code>.</p> <p>This option has been added to EJSON:</p> <pre lang="typescript"><code>&gt; EJSON.stringify({ a: undefined }, { ignoreUndefined: true }); '{}' &gt; EJSON.stringify({ a: undefined }, { ignoreUndefined: false }); '{&quot;a&quot;:null}' &gt; EJSON.serialize({ a: undefined }, { ignoreUndefined: true }); {} &gt; EJSON.serialize({ a: undefined }, { ignoreUndefined: false }); { a: null } </code></pre> <p>This option defaults to <code>false</code>.</p> <h3><code>Buffer.copy()</code> now present in ByteUtils</h3> <p>ByteUtils now contains a <code>copy()</code> method, we behaves identically to Nodejs' <code>Buffer.copy()</code> method.</p> <h3>Features</h3> <ul> <li><strong>NODE-7328:</strong> Add ignoreUndefined option to EJSON APIs (<a href="https://redirect.github.com/mongodb/js-bson/issues/853">#853</a>) (<a href="https://github.com/mongodb/js-bson/commit/5cf00c2165fed16329d147ba088c6af35e8d1c3c">5cf00c2</a>)</li> <li><strong>NODE-7414:</strong> add copy method to ByteUtils (<a href="https://redirect.github.com/mongodb/js-bson/issues/867">#867</a>) (<a href="https://github.com/mongodb/js-bson/commit/ffa77c6ff6ddb8f0e8a1f33ffdccbe69bf77271c">ffa77c6</a>)</li> </ul> <h2>Documentation</h2> <ul> <li><a href="https://github.com/mongodb/js-bson#readme">API</a></li> <li><a href="https://github.com/mongodb/js-bson/blob/main/HISTORY.md#change-log">Changelog</a></li> </ul> <p>We invite you to try the <code>bson</code> library immediately, and report any issues to the <a href="https://jira.mongodb.org/projects/NODE">NODE project</a>.</p> <h2>v7.1.1</h2> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.1.0...v7.1.1">7.1.1</a> (2026-01-17)</h2> <p>The MongoDB Node.js team is pleased to announce version 7.1.1 of the <code>bson</code> package!</p> <h2>Release Notes</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/mongodb/js-bson/blob/main/HISTORY.md">bson's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.1.1...v7.2.0">7.2.0</a> (2026-01-29)</h2> <h3>Features</h3> <ul> <li><strong>NODE-7328:</strong> Add ignoreUndefined option to EJSON APIs (<a href="https://redirect.github.com/mongodb/js-bson/issues/853">#853</a>) (<a href="https://github.com/mongodb/js-bson/commit/5cf00c2165fed16329d147ba088c6af35e8d1c3c">5cf00c2</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-7414:</strong> add copy method to ByteUtils (<a href="https://redirect.github.com/mongodb/js-bson/issues/867">#867</a>) (<a href="https://github.com/mongodb/js-bson/commit/ffa77c6ff6ddb8f0e8a1f33ffdccbe69bf77271c">ffa77c6</a>)</li> </ul> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.1.0...v7.1.1">7.1.1</a> (2026-01-17)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-7399:</strong> revert bson PR 859 / NODE-7334 (<a href="https://redirect.github.com/mongodb/js-bson/issues/861">#861</a>) (<a href="https://github.com/mongodb/js-bson/commit/6511e0d6ca20a69a89d53ed6c265af67704efc08">6511e0d</a>)</li> </ul> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.0.0...v7.1.0">7.1.0</a> (2026-01-16)</h2> <h3>Features</h3> <ul> <li><strong>NODE-7314:</strong> export byteUtils &amp; add missing methods (<a href="https://redirect.github.com/mongodb/js-bson/issues/852">#852</a>) (<a href="https://github.com/mongodb/js-bson/commit/a31c90ebb5ea9c80b94986a13c574f0541d0d5d2">a31c90e</a>)</li> <li><strong>NODE-7316:</strong> export number utils (<a href="https://redirect.github.com/mongodb/js-bson/issues/850">#850</a>) (<a href="https://github.com/mongodb/js-bson/commit/a23e788eded5253f7e1295c36e3187363971ab8c">a23e788</a>)</li> <li><strong>NODE-7334:</strong> remove ByteUtils and NumberUtils from the <code>onDemand</code> ns (<a href="https://redirect.github.com/mongodb/js-bson/issues/859">#859</a>) (<a href="https://github.com/mongodb/js-bson/commit/92bbc34a5aa2de972a61b9a5f77246e8dc6288e8">92bbc34</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-7397:</strong> Use type predicate for isUint8Array (<a href="https://redirect.github.com/mongodb/js-bson/issues/860">#860</a>) (<a href="https://github.com/mongodb/js-bson/commit/89b3a2b6cf88de5ba407ce24c71eff5e55db2165">89b3a2b</a>)</li> </ul> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.0.0-alpha.2...v7.0.0">7.0.0</a> (2025-11-05)</h2> <h3>Miscellaneous Chores</h3> <ul> <li>prerelease false (<a href="https://redirect.github.com/mongodb/js-bson/issues/847">#847</a>) (<a href="https://github.com/mongodb/js-bson/commit/b925f26686015853516851ece9f38ba6bb792e89">b925f26</a>)</li> </ul> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.0.0-alpha.1...v7.0.0-alpha.2">7.0.0-alpha.2</a> (2025-10-24)</h2> <h3>Bug Fixes</h3> <ul> <li><strong>NODE-7271:</strong> revert private property usage in ObjectId (<a href="https://redirect.github.com/mongodb/js-bson/issues/835">#835</a>) (<a href="https://github.com/mongodb/js-bson/commit/79faf75869c64c65bcd948d8906b65e9be0a93af">79faf75</a>)</li> </ul> <h2><a href="https://github.com/mongodb/js-bson/compare/v7.0.0-alpha...v7.0.0-alpha.1">7.0.0-alpha.1</a> (2025-10-21)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/mongodb/js-bson/commit/0712bb15653093766a80bbd4ba104353cd4581e3"><code>0712bb1</code></a> chore(main): release 7.2.0 (<a href="https://redirect.github.com/mongodb/js-bson/issues/866">#866</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/ffa77c6ff6ddb8f0e8a1f33ffdccbe69bf77271c"><code>ffa77c6</code></a> fix(NODE-7414): add copy method to ByteUtils (<a href="https://redirect.github.com/mongodb/js-bson/issues/867">#867</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/5cf00c2165fed16329d147ba088c6af35e8d1c3c"><code>5cf00c2</code></a> feat(NODE-7328): Add ignoreUndefined option to EJSON APIs (<a href="https://redirect.github.com/mongodb/js-bson/issues/853">#853</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/51f86bc470c869369c9c341de92b551073be0acd"><code>51f86bc</code></a> chore(main): release 7.1.1 (<a href="https://redirect.github.com/mongodb/js-bson/issues/862">#862</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/6511e0d6ca20a69a89d53ed6c265af67704efc08"><code>6511e0d</code></a> fix(NODE-7399): revert bson PR 859 / NODE-7334 (<a href="https://redirect.github.com/mongodb/js-bson/issues/861">#861</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/4375ec6124102328536cb9c6f32b167cc0ed6730"><code>4375ec6</code></a> chore(main): release 7.1.0 (<a href="https://redirect.github.com/mongodb/js-bson/issues/851">#851</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/89b3a2b6cf88de5ba407ce24c71eff5e55db2165"><code>89b3a2b</code></a> fix(NODE-7397): Use type predicate for isUint8Array (<a href="https://redirect.github.com/mongodb/js-bson/issues/860">#860</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/92bbc34a5aa2de972a61b9a5f77246e8dc6288e8"><code>92bbc34</code></a> feat(NODE-7334): remove ByteUtils and NumberUtils from the <code>onDemand</code> ns (<a href="https://redirect.github.com/mongodb/js-bson/issues/859">#859</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/a31c90ebb5ea9c80b94986a13c574f0541d0d5d2"><code>a31c90e</code></a> feat(NODE-7314): export byteUtils &amp; add missing methods (<a href="https://redirect.github.com/mongodb/js-bson/issues/852">#852</a>)</li> <li><a href="https://github.com/mongodb/js-bson/commit/a23e788eded5253f7e1295c36e3187363971ab8c"><code>a23e788</code></a> feat(NODE-7316): export number utils (<a href="https://redirect.github.com/mongodb/js-bson/issues/850">#850</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mongodb/js-bson/compare/v6.9.0...v7.2.0">compare view</a></li> </ul> </details> <details> <summary>Install script changes</summary> <p>This version adds <code>prepare</code> script that runs during installation. Review the package contents before updating.</p> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=bson&package-manager=npm_and_yarn&previous-version=6.9.0&new-version=7.2.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
合并状态:未合并 关闭于 2026-05-31 1 条评论