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:
^4.7.7
->^5.0.0
Release Notes
Automattic/mongoose
v5.4.2
Compare Source
==================
flattenMaps
option fortoObject()
andtoJSON()
at schema level #7274.where()
#7360.base
when cloning #7377v5.4.1
Compare Source
==================
save()
not crash if nested doc has a property 'get' #7316mongoose.model()
#5767populated
to reserved property names #7317mongoose.model()
returns the model #5767v5.4.0
Compare Source
==================
SchemaType.get()
, custom getters across all instances of a schematype #6912SchemaType.cast()
, configure casting for individual schematypes #7045SchemaType.checkRequired()
, configure what values passrequired
check for a schematype #7186 #7150Model.findOneAndReplace()
#7162Model.events
emitter that emits allerror
's that occur with a given model #7125count
option to populate virtuals, support returning # of populated docs instead of docs themselves #4469.catch()
helper to make aggregations full thenables #7267deleteOne()
anddeleteMany()
#7195updateOne()
#7133Query#map()
for synchronously transforming results before post middleware runs #7142Schema
constructor #7218clone
option to ensure multiple docs don't share the same populated doc #3258Query#maxTimeMS()
helper #7254Aggregate#addCursorFlag()
#7120findOneAndDelete
to middleware list #7327 danielkesselbergv5.3.16
Compare Source
===================
__proto__
in queries #7290import mongoose, {Schema} from 'mongoose'
#5648v5.3.15
Compare Source
===================
orFail()
withfindOneAndUpdate()
andfindOneAndDelete()
#7297 #7280save()
succeed if strict: false with acollection
property #7276flattenMaps
option for toObject() #7274model
option overridesrefPath
#7273null
projection param #7271v5.3.14
Compare Source
===================
openUri()
instead of legacyopen()
#7277 artemjackson__parent
so user code doesn't conflict #7230mongoose.model()
without context, likeimport {model} from 'mongoose'
#3768v5.3.13
Compare Source
===================
ref
#7253ref
path in a schematype #7253splice()
#7249v5.3.12
Compare Source
===================
instanceof
rather than class name for comparison #7237 ivanseidelbulkWrite()
docs #7225v5.3.11
Compare Source
===================
checkKeys: false
#7144v5.3.10
Compare Source
===================
lean(false)
correctly with query cursors #7197ref
not set #7193.base
for browser build #7170v5.3.9
Compare Source
==================
.set()
underneath a single nested subdoc #7196v5.3.8
Compare Source
==================
v5.3.7
Compare Source
==================
propsParameter
set #7145type
getting converted to mixed #7143v5.3.6
Compare Source
==================
v5.3.5
Compare Source
==================
replaceOne()
always gets set at top level to prevent cast errors #7138eachAsync()
#7137$session()
propagate sessions to child docs #7104schema.options.strict = 'throw'
#7103v5.3.4
Compare Source
==================
add()
andremove()
return the schema instance #7131 lineuscast()
#7118useFindAndModify
as a connection-level option #7110 lineusv5.3.3
Compare Source
==================
$isValidatorError
property #7127remove()
#7093fields
param #7077members.host
errors due to bad host names in replica set #7006v5.3.2
Compare Source
==================
orFail()
#7101 #7099 gsandorx{ timestamps: false }
correctly #7088 #7074 lineusmongoose.connect()
errors with a callback #6997v5.3.1
Compare Source
===================
__proto__
in queries #7290import mongoose, {Schema} from 'mongoose'
#5648v5.3.0
Compare Source
==================
mongoose.set('debug', WritableStream)
so you can pipe debug to stderr, file, or network #7018createCollection()
helper to make transactions easier #6948 #6711 Fongerschema.add(otherSchema)
to merge hooks, virtuals, etc. #6897orFail()
helper that throws an error if no documents matchfilter
#6841now()
function that you can stub for testing timestamps #6728schema.pre(RegExp, fn)
andschema.post(RegExp, fn)
#6680mongooseOptions()
function #6677$set
#4412remove
hook and ability to switch between queryremove
and documentremove
middleware #3054v5.2.18
Compare Source
===================
select('+c')
if c is not in schema #7017localField: function() {}
syntax #5704v5.2.17
Compare Source
===================
save()
and add a workaround forfindOneAndUpdate()
#7038createIndex
option toensureIndexes()
#7036 #6922 lineussetUpdate()
to allow overwriting update without changing op #7024 #7012 lineus^4.7.7
->^5.0.0
operators in the update #7003
count()
supports thatcountDocuments()
doesn't #6911v5.2.16
Compare Source
===================
useCreateIndex
at the connection level, overrides global-level #6922ref
to an invalid value #6915v5.2.15
Compare Source
===================
model
instead ofModel
so double-populating works with existing docs #6978Model.init()
again after callingdropDatabase()
#6967populate()
-ed fields toselect()
#6546insertOne
andreplaceOne
#5708v5.2.14
Compare Source
===================
validate()
a child doc #6931v5.2.13
Compare Source
===================
v5.2.12
Compare Source
===================
constructor
andprototype
if strict mode falsev5.2.11
Compare Source
===================
this
scope when casting query with legacy 2dsphere pairs defined in schema #6939 #6937 Fongerget()
on deeply nested subdocs #6929 #6925 jakemccloskeyjustOne
virtual populate underneath array #6867$set
#5973v5.2.10
Compare Source
===================
session
option forsave()
as the document's$session()
#6909mongoose.set('useCreateIndex', true)
to avoid ensureIndex deprecation warning #6890projection
option to avoid deprecation warnings #6888 #6880 FongerfindOneAndReplace()
internally if usingoverwrite: true
withfindOneAndUpdate()
#6888 Fongerprojection
instead offields
internally forfind()
andfindOne()
to avoid deprecation warning #6880getters
option to opt in to calling getters on populate #6844v5.2.9
Compare Source
==================
this
scope of default functions for DocumentArray and Array #6868 #6840 FongergetQuery()
#6855 #6854family
option for IPv4 vs IPv6 and add port to example URIs #6784v5.2.8
Compare Source
==================
execPopulate()
code example #6851 WJakubexecPopulate()
#6851objectIdGetter
option docs #6842 jwaltonrequired
function only gets called once when validating #6801useNewUrlParser: true
#6789options.match
in virtual populate schema definition #6787v5.2.7
Compare Source
==================
expireAfterSeconds
option when diffing indexes in syncIndexes() #6820 #6819 christopherhexdeleteMany
#6810 Fongerpopulate()
on already populated path #6798$inc: null
#6770createConnection(undefined)
#6763v5.2.6
Compare Source
==================
get()
#6779 #6637localField
specified catchable #6767mongoose.connect()
syntax #6756$session
inexecPopulate()
#6754populate()
#6754session()
helper for consistency with query api #6752init()
as well as db.model() #6707v5.2.5
Compare Source
==================
convertToTrue
andconvertToFalse
for custom boolean casting #6758isNew
andsave
listeners on CastError because otherwise they never get removed #6723countDocuments()
vsestimatedDocumentCount()
#6713family
option for IPv4 vs IPv6 and add port to example URIs #6566v5.2.4
Compare Source
==================
new db.model(foo)(bar)
#6698v5.2.3
Compare Source
==================
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.