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

Bump bson and mongoose #58

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

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Apr 18, 2023

Bumps bson to 5.2.0 and updates ancestor dependency mongoose. These dependencies need to be updated together.

Updates bson from 1.0.9 to 5.2.0

Release notes

Sourced from bson's releases.

v5.2.0

The MongoDB Node.js team is pleased to announce version 5.2.0 of the bson package!

Release Highlights

With this release we've added APIs to create BSON Binary / UUID / ObjectId types from hex and base64 strings.

class ObjectId {
  static createFromHexString(hex: string): ObjectId;
  static createFromBase64(base64: string): ObjectId;
}
class Binary {
static createFromHexString(hex: string, subType? number): Binary;
static createFromBase64(base64: string, subType? number): Binary;
}
class UUID extends Binary {
static override createFromHexString(hex: string): UUID;
static override createFromBase64(base64: string): UUID;
}

Features

  • NODE-4855: add hex and base64 ctor methods to Binary and ObjectId (#569) (0d49a63)

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project.

v5.1.0

The MongoDB Node.js team is pleased to announce version 5.1.0 of the bson package!

Release Highlights

EJSON.stringify now supports ES Map!

import { EJSON } from 'bson';
const m = new Map([
['a', new Map([['b', 1]])],
['b', 2]
]);
console.log(EJSON.stringify(m))
</tr></table>

... (truncated)

Changelog

Sourced from bson's changelog.

5.2.0 (2023-04-04)

Features

  • NODE-4855: add hex and base64 ctor methods to Binary and ObjectId (#569) (0d49a63)

5.1.0 (2023-03-16)

Features

  • NODE-4789: support Map stringification in EJSON (#567) (c70c82d)

5.0.1 (2023-02-16)

Bug Fixes

  • NODE-5025: no type definitions for es module (#563) (50e90fc)
  • NODE-5048: webpack unable to bundle import with leading 'node:' (#564) (3aed24a)
  • NODE-5056: EJSON.parse date handling when useBigInt64=true (#562) (d5088af)

5.0.0 (2023-01-31)

5.0.0-alpha.3 (2023-01-20)

⚠ BREAKING CHANGES

  • NODE-4892: error on bson types not from this version (#543)
  • NODE-4890: make all thrown errors into BSONErrors (#545)
  • NODE-4713: modernize bundling (#534)
  • NODE-1921: validate serializer root input (#537)
  • NODE-4711: remove evalFunctions option (#539)

Features

  • NODE-1921: validate serializer root input (#537) (95d5edf)
  • NODE-4711: remove evalFunctions option (#539) (0427eb5)
  • NODE-4713: modernize bundling (#534) (28ce4d5)
  • NODE-4870: Support BigInt serialization (#541) (e9e40a2)
  • NODE-4871: Add support for int64 deserialization to BigInt (#542) (9ff60ba)
  • NODE-4873: support EJSON stringify from BigInt to $numberLong (#547) (37e8690)
  • NODE-4874: support EJSON parse for BigInt from $numberLong (#552) (854aa70)
  • NODE-4890: make all thrown errors into BSONErrors (#545) (5b837a9)
  • NODE-4892: error on bson types not from this version (#543) (d9f0eaa)
  • NODE-4927: exports in package.json for react native and document how to polyfill for BSON (#550) (3b4b61e)

... (truncated)

Commits
  • 91b84ed chore(release): 5.2.0
  • 0d49a63 feat(NODE-4855): add hex and base64 ctor methods to Binary and ObjectId (#569)
  • 5d2648e chore(release): 5.1.0
  • c70c82d feat(NODE-4789): support Map stringification in EJSON (#567)
  • 24c6a9c ci(NODE-5087): download node to local directory (#566)
  • 800f7cd docs(NODE-5080): add a note about class syntax (#565)
  • b6a15b5 chore(release): 5.0.1
  • 3aed24a fix(NODE-5048): webpack unable to bundle import with leading 'node:' (#564)
  • 50e90fc fix(NODE-5025): no type definitions for es module (#563)
  • d5088af fix(NODE-5056): EJSON.parse date handling when useBigInt64=true (#562)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by nbbeeken, a new releaser for bson since your current version.


Updates mongoose from 4.13.21 to 7.0.4

Release notes

Sourced from mongoose's releases.

7.0.4 / 2023-04-17

7.0.3 / 2023-03-23

  • fix(query): avoid executing transforms if query wasn't executed #13185 #13165
  • fix(schema): make creating top-level virtual underneath subdocument equivalent to creating virtual on the subdocument #13197 #13189
  • fix(timestamps): set timestamps on empty replaceOne() #13196 #13170
  • fix(types): change return type of lean() to include null if nullable #13155 #13151 lpizzinidev
  • fix(types): fixed type of DocumentArray constructor parameter #13183 #13087 lpizzinidev
  • docs: refactor header naming to lessen conflicts #12901 hasezoey
  • docs: change header levels to be consistent across files #13173 hasezoey

7.0.2 / 2023-03-15

7.0.1 / 2023-03-06

  • fix(aggregate): added await to prevent exception in aggregate exec #13126 lpizzinidev
  • fix(types): handle Record as value for HydratedDocument TOverrides parameter #13123 #13094
  • fix(types): remove "update" function #13120 hasezoey
  • docs(compatibility): added mongoDB server compatibility for mongoose 7 #13102 lpizzinidev
  • docs: Updated callback method for Model.findOne() #13096 Arghyahub
  • chore: update github actions to not use ubuntu-18.04 anymore #13137 hasezoey

7.0.0 / 2023-02-27

  • BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() #13092
  • feat(types): export mongodb types more robustly #12948 simon-abbott
  • docs: fix populate docs #13090 hasezoey
  • docs(migrating_to_6): added info about removal of reconnectTries and reconnectInterval options #13083 lpizzinidev

7.0.0-rc0 / 2023-02-23

... (truncated)

Changelog

Sourced from mongoose's changelog.

7.0.4 / 2023-04-17

6.10.5 / 2023-04-06

  • perf(document): avoid unnecessary loops, conditionals, string manipulation on Document.prototype.get() for 10x speedup on top-level properties #12953
  • fix(model): execute valid write operations if calling bulkWrite() with ordered: false #13218 #13176
  • fix(array): pass-through all parameters #13202 #13201 hasezoey
  • fix: improve error message when sorting by empty string #13249 #10182
  • docs: add version support and check version docs #13251 #13193

5.13.17 / 2023-04-04

  • fix: backport fix for array filters handling $or and $and #13195 #13192 #10696 raj-goguardian
  • fix: update the isIndexEqual function to take into account non-text indexes when checking compound indexes that include both text and non-text indexes #13138 #13136 rdeavila94

7.0.3 / 2023-03-23

  • fix(query): avoid executing transforms if query wasn't executed #13185 #13165
  • fix(schema): make creating top-level virtual underneath subdocument equivalent to creating virtual on the subdocument #13197 #13189
  • fix(timestamps): set timestamps on empty replaceOne() #13196 #13170
  • fix(types): change return type of lean() to include null if nullable #13155 #13151 lpizzinidev
  • fix(types): fixed type of DocumentArray constructor parameter #13183 #13087 lpizzinidev
  • docs: refactor header naming to lessen conflicts #12901 hasezoey
  • docs: change header levels to be consistent across files #13173 hasezoey

6.10.4 / 2023-03-21

  • fix(document): apply setters on resulting value when calling Document.prototype.$inc() #13178 #13158
  • fix(model): add results property to unordered insertMany() to make it easy to identify exactly which documents were inserted #13163 #12791
  • docs(guide+schematypes): add UUID to schematypes guide #13184

7.0.2 / 2023-03-15

  • fix: validate array elements when passing array path to validateSync() in pathsToValidate #13167 #13159
  • fix(schema): propagate typeKey down to implicitly created subdocuments #13164 #13154
  • fix(types): add index param to eachAsync fn #13153 krosenk729
  • fix(types/documentarray): type DocumentArray constructor parameter as object #13089 #13087 lpizzinidev
  • fix(types): type query select() as string, string[], or record; not any #13146 #13142 rbereziuk
  • fix(types/query): change QueryOptions lean type to Record #13150 lpizzinidev
  • docs: add and run eslint-plugin-markdown #13156 hasezoey
  • docs(generateSearch): fix search generation for API #13161 hasezoey
  • docs(generateSearch): move config missing error to require #13160 hasezoey

... (truncated)

Commits

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 commands and options

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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [bson](https://github.com/mongodb/js-bson) to 5.2.0 and updates ancestor dependency [mongoose](https://github.com/Automattic/mongoose). These dependencies need to be updated together.


Updates `bson` from 1.0.9 to 5.2.0
- [Release notes](https://github.com/mongodb/js-bson/releases)
- [Changelog](https://github.com/mongodb/js-bson/blob/main/HISTORY.md)
- [Commits](mongodb/js-bson@v1.0.9...v5.2.0)

Updates `mongoose` from 4.13.21 to 7.0.4
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@4.13.21...7.0.4)

---
updated-dependencies:
- dependency-name: bson
  dependency-type: indirect
- dependency-name: mongoose
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants