Skip to content

Commit aef309e

Browse files
committed
Merge branch '6.x'
2 parents 90d84fd + e9eb8ab commit aef309e

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
6.11.3 / 2023-07-11
2+
===================
3+
* fix: avoid prototype pollution on init
4+
* fix(schema): correctly handle uuids with populate() #13317 #13595
5+
16
7.3.3 / 2023-07-10
27
==================
38
* fix: avoid prototype pollution on init

docs/layout.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ html(lang='en')
133133
li.pure-menu-item.sub-item
134134
a.pure-menu-link(href=`${versions.versionedPath}/docs/api/virtualtype.html`, class=outputUrl === `${versions.versionedPath}/docs/api/virtualtype.html` ? 'selected' : '') VirtualType
135135
li.pure-menu-item
136-
a.pure-menu-link(href=`${versions.versionedPath}/docs/migrating_to_7.html`, class=outputUrl === `${versions.versionedPath}/docs/migrating_to_7.html` ? 'selected' : '') Migration Guide
136+
a.pure-menu-link(href=`${versions.versionedPath}/docs/migrating_to_6.html`, class=outputUrl === `${versions.versionedPath}/docs/migrating_to_7.html` ? 'selected' : '') Migration Guide
137137
li.pure-menu-item
138138
a.pure-menu-link(href=`${versions.versionedPath}/docs/compatibility.html`, class=outputUrl === `${versions.versionedPath}/docs/compatibility.html` ? 'selected' : '') Version Compatibility
139139
li.pure-menu-item

test/collection.capped.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ describe('collections: capped:', function() {
4646
capped.set('capped', { size: 1000 });
4747
const Capped = db.model('Test', capped, 'Test');
4848
await Capped.init();
49+
await Capped.createCollection();
4950
await new Promise((resolve) => setTimeout(resolve, 100));
5051

5152
const isCapped = await Capped.collection.isCapped();

test/connection.test.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -980,21 +980,6 @@ describe('connections:', function() {
980980
assert.throws(() => m.model('Test', Schema({ name: String })), /overwrite/);
981981
});
982982

983-
it('can use destructured `connect` and `disconnect` (gh-9597)', async function() {
984-
const m = new mongoose.Mongoose();
985-
const connect = m.connect;
986-
const disconnect = m.disconnect;
987-
988-
await disconnect();
989-
await new Promise((resolve) => setTimeout(resolve, 0));
990-
991-
const errorOnConnect = await connect(start.uri).then(() => null, err => err);
992-
assert.ifError(errorOnConnect);
993-
994-
const errorOnDisconnect = await disconnect().then(() => null, err => err);
995-
assert.ifError(errorOnDisconnect);
996-
});
997-
998983
describe('when connecting with a secondary read preference(gh-9374)', function() {
999984
describe('mongoose.connect', function() {
1000985
it('forces autoIndex & autoCreate to be false if read preference is secondary or secondaryPreferred', async function() {

0 commit comments

Comments
 (0)