This repository was archived by the owner on Apr 13, 2024. It is now read-only.
fix(deps): update dependency mongoose to v5.13.20 [security]#567
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency mongoose to v5.13.20 [security]#567renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
265271c to
9e019c3
Compare
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR contains the following updates:
5.11.17->5.13.20GitHub Vulnerability Alerts
CVE-2022-2564
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Affected versions of this package are vulnerable to Prototype Pollution. The
Schema.path()function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.CVE-2023-3696
Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.3, 6.11.3, and 5.13.20.
Release Notes
Automattic/mongoose (mongoose)
v5.13.20Compare Source
v5.13.19Compare Source
v5.13.18Compare Source
v5.13.17Compare Source
====================
v5.13.16Compare Source
====================
bulkSave()#β12019v5.13.15Compare Source
====================
v5.13.14Compare Source
====================
v5.13.13Compare Source
====================
v5.13.12Compare Source
====================
v5.13.11Compare Source
====================
useDb()#β10732v5.13.10Compare Source
====================
v5.13.9Compare Source
===================
extends Documentandany#β10647v5.13.8Compare Source
===================
v5.13.7Compare Source
===================
Schema#index()types #β10562 JaredReisingerpush()#β10546v5.13.6Compare Source
===================
next()to avoid stack overflow with large batch size #β10449v5.13.5Compare Source
===================
depopulate()with no args depopulates all #β10501 gfranczv5.13.4Compare Source
===================
$setOnInsert#β10460docan object with correct keys #β10475v5.13.3Compare Source
===================
$addToSetand with positional operator #β10447discriminator()with non-document #β10452 #β10421 DouglasGabrv5.13.2Compare Source
===================
v5.13.1Compare Source
====================
v5.13.0Compare Source
===================
bulkSave()function that saves multiple docs in 1bulkWrite()#β9727 #β9673 AbdelrahmanHafezpathsToSkipto apply intoObject()andtoJSON()#β10120diffIndexes()function that calculates what indexessyncIndexes()will create/drop without actually executing any changes #β10362 IslandRhythmsendSession()#β10306v5.12.15Compare Source
====================
Schemafor cases when we can't infer from Model #β10358Query#cast()#β10388 lkhodiscriminatorKeyschema option #β10386 #β10376 IslandRhythmsv5.12.14Compare Source
====================
Model.populate()#β10335ValidationErroras a possible type forValidationError#errors#β10320 IslandRhythmsModel.exists()#β10336 Aminoizv5.12.13Compare Source
====================
$getAllSubdocs()#β10275findOneAndUpdate()#β10232 #β10231 cnwangjiev5.12.12Compare Source
====================
returnOriginalwithfindOneAndUpdate()#β10298 #β10297 #β10292 #β10285 IslandRhythmsmap()result an array if used over an array #β10288 quantumsheepv5.12.11Compare Source
====================
v5.12.10Compare Source
====================
defaultsoption on result documents from query options #β7287 IslandRhythmspathsToValidatetovalidate()andvalidateSync()#β10258loadClass()on classes that havecollectionas a static property #β10257 #β10254 IslandRhythmsvirtualsOnlyparameter toloadClass()function signature IslandRhythmsv5.12.9Compare Source
===================
optionsas first parameter #β10216v5.12.8Compare Source
===================
toJSON()function to ensurenameproperty always ends up inJSON.stringify()output #β10166 IslandRhythmsallowDiskUseoption #β10177insertMany()#β10144extends Document#β10144UpdateWithAggregationPipelinefor cases whenUpdateQueryis used as a function param #β10186useFindAndModifyanduseCreateIndexdeprecation warnings #β10155v5.12.7Compare Source
===================
process.nextTick()to avoid clean stack traces causing memory leak when using synchronous recursion likeasync.whilst()#β9864v5.12.6Compare Source
===================
writeConcernschema option to work around MongoDB driver'swriteConcerndeprecation warning #β10083 #β10009 IslandRhythmslocalFieldfilter to$elemMatchon virtual populate when custommatchhas a$elemMatchandforeignFieldis an array #β10117save()when usingoptimisticConcurrencyif no changes in document #β10128 IslandRhythmsobjascontextinModel.validate()ifobjis a document #β10132useDb()withuseUnifiedTopology#β8267create()andinsertMany()#β10144eachAsync()callback receives a single doc rather than array of docs unlessbatchSizeis set #β10135validateSync()is a ValidationError #β10147 michaln-qv5.12.5Compare Source
===================
autoCreatevalue from Mongoose global when creating new model before callingconnect()#β10091type: Booleanin Schema definitions #β10085updateOne()andupdateMany()#β10095deleteOne(),deleteMany()#β10122useCreateIndexalwaysfalsein docs #β10033v5.12.4Compare Source
===================
_idproperty #β10069.$*#β10123transform()function for single conventional populate #β10064Tto useT & Documentinternally #β10046$pullwith$paths #β10075Datetype for$currentDate#β10058$unsetproperties to be any value #β10066indexproperty to a string #β10077v5.12.3Compare Source
===================
writeConcern()method to avoid writeConcern deprecation warning #β10009createCollection()and other helpers to avoid event emitter warning #β9778Connection#idto Mongoose instance so id always lines up withmongoose.connectionsindex #β10025 IslandRhythmspromiseOrCallback()if 3rd param isn't an EventEmitter #β10055 emrebassModel.discriminator()#β10054 coro101next()callback forpre('insertMany')hooks #β10078 #β10072 pezzutransformto PopulateOptions interface #β10061v5.12.2Compare Source
===================
post('find')hooks with an array of docs #β10015 #β9982 IslandRhythmsrefas an option on an array SchemaType #β10029selectoption from array schematypes #β10029Schema()constructor #β10035 zpbrentQueryWithHelpersso query helpers pass through chaining #β10040upsertedarray toupdateOne(),updateMany(),update()result #β10042Aggregate#project()types that were mistakenly removed in 5.12.0 #β10043typein Schema to a SchemaType class or a Schema instance #β10030session.withTransaction()beforesession.startTransaction()becausewithTransaction()is the recommended approach #β10008mongoose.Types#β10016v5.12.1Compare Source
====================
Schemafor cases when we can't infer from Model #β10358Query#cast()#β10388 lkhodiscriminatorKeyschema option #β10386 #β10376 IslandRhythmsv5.12.0Compare Source
===================
transformoption that Mongoose will call on every populated doc #β3775Query#pre()andQuery#post()public #β9784Document#getPopulatedDocs()to return an array of all populated documents in a document #β9702 IslandRhythmsDocument#getAllSubdocs()to return an array of all single nested and array subdocuments #β9764 IslandRhythmsschemaas a schema path name #β8798 IslandRhythmsnoListeneroption to help with use cases where you're usinguseDb()on every request #β9961mongoose.createConnection()#β9985explainoption toModel.exists()#β8098 IslandRhythmsv5.11.20Compare Source
====================
dbevents deprecation warning with 'close' events #β10004 #β9930$pullmore permissive to allow dotted paths #β9993v5.11.19Compare Source
====================
validateModifiedOnlyis set #β9963findOneAndReplace()#β9951loadClass()#β9975Schemaconstructor #β9969typeto an array of schemas when using SchemaDefinitionType #β9962v5.11.18Compare Source
====================
disconnectedif connecting string failed to parse #β9921dbevents deprecation warning ifuseUnifiedTopology = true#β9930PopulatedDoctype to make it easier to define populated docs in interfaces #β9818toObject()return type for backwards compatibility #β9944anyfromdeleteX()andupdateX()query params and return values #β9959 btdModel.create()for better autocomplete #β9928>in API descriptions #β9940Configuration
π Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.