https://github.com/Automattic/mongoose

sort by:
Revision Author Date Message Commit Date
07946be chore: release v5.13.9 06 September 2021, 16:51:20 UTC
264554f fix: upgrade to mpath v0.8.4 re: security issue Note that the security issue in earlier versions of mpath does **not** affect Mongoose Fix #10683 06 September 2021, 16:39:26 UTC
fc5fc7e fix: peg @types/bson version to 1.x || 4.0.x to avoid stubbed 4.2.x release 03 September 2021, 21:25:20 UTC
1f28237 fix(populate): avoid setting empty array on lean document when populate result is undefined Fix #10599 03 September 2021, 20:26:35 UTC
1dc9b45 style: fix lint 02 September 2021, 22:00:13 UTC
3f7dfc5 fix(document): make `depopulate()` handle populated paths underneath document arrays Fix #10592 02 September 2021, 21:54:10 UTC
b34d1d5 fix(index.d.ts): simplify UpdateQuery to avoid "excessively deep and possibly infinite" errors with `extends Document` and `any` Fix #10617 02 September 2021, 20:13:39 UTC
2a3399e docs: another layout fix for 5.x docs Fix #10607 26 August 2021, 13:51:34 UTC
5bf3c29 chore: update makefile again 25 August 2021, 21:05:15 UTC
191678c chore: update makefile re: #10607 25 August 2021, 21:02:40 UTC
776fae9 docs: fix up 5.x docs navbar 25 August 2021, 20:57:46 UTC
a803885 test(typescript): add coverage for #10590 23 August 2021, 21:02:53 UTC
bf43078 fix(index.d.ts): allow specifying `weights` as an IndexOption Fix #10586 23 August 2021, 21:01:04 UTC
cb1e787 chore: release 5.13.8 23 August 2021, 15:49:30 UTC
5c0140c fix(index.d.ts): add `match` to `VirtualTypeOptions.options` Fix #8479 23 August 2021, 15:31:51 UTC
6122f4b docs(api): add `Document#$where` to API docs Fix #10583 23 August 2021, 15:22:32 UTC
2871c1b style: fix lint 23 August 2021, 15:18:22 UTC
8d00f62 Merge pull request #10587 from osmanakol/master allow QueryOptions populate parameter type PopulateOptions 23 August 2021, 15:03:18 UTC
57e729b allow QueryOptions populate parameter use PopulateOptions 22 August 2021, 12:29:02 UTC
6c36263 fix(index.d.ts): allow strings for ObjectIds in nested properties Fix #10573 21 August 2021, 18:33:57 UTC
e90aab1 docs(History): make a note about #10555 Fix #10576 19 August 2021, 20:55:04 UTC
fca0627 style: fix lint 17 August 2021, 21:39:52 UTC
6b92599 fix(populate): handle populating subdoc array virtual with sort Fix #10552 17 August 2021, 21:05:02 UTC
283d43f test(populate): repro #10552 17 August 2021, 21:04:43 UTC
b31fd51 fix(model): check for `code` instead of `codeName` when checking for existing collections for backwards compat with MongoDB 3.2 Fix #10420 17 August 2021, 19:26:19 UTC
79d1a8e fix(index.d.ts): correct value of `this` for custom query helper methods Fix #10545 17 August 2021, 18:41:24 UTC
ec41d22 chore: release 5.13.7 11 August 2021, 19:17:21 UTC
75c3d18 Merge pull request #10546 from shahriar-shojib/fix_types updated array push type definition 11 August 2021, 19:01:27 UTC
22a3570 fix: fix build again 11 August 2021, 18:56:06 UTC
0b3083a Merge pull request #10550 from thiagokisaki/patch-5 refactor(index.d.ts): make callbacks use the new `Callback` and `CallbackWithoutResult` types 11 August 2021, 18:53:05 UTC
fa1c43c fix: correct types 11 August 2021, 18:31:08 UTC
711ded8 fix: fix build 11 August 2021, 18:29:02 UTC
2f57e76 fix: fix build 11 August 2021, 18:28:27 UTC
100101b fix: apply code review suggestions re: loose typing to `push()` and remove unused code 11 August 2021, 18:23:24 UTC
7e398a9 test(typescript): add coverage for #10562 11 August 2021, 18:21:26 UTC
2a608e3 style: fix lint 11 August 2021, 18:12:24 UTC
134cdbd Merge pull request #10562 from JaredReisinger/patch-1 Fix type for schema.index() to reflect actual mongoose API 11 August 2021, 18:11:52 UTC
697012a Merge pull request #10563 from JaredReisinger/patch-2 Define `IndexOptions` in terms of `mongodb.IndexOptions` 11 August 2021, 18:06:33 UTC
540a820 fix(index.d.ts): allow using SchemaTypeOptions with array of raw document interfaces Fix #10537 11 August 2021, 17:56:05 UTC
433d6f4 Merge branch 'master' of github.com:Automattic/mongoose 11 August 2021, 16:50:04 UTC
fefebb3 perf(index.d.ts): loosen up restrictions on `ModelType` generic for Schema for a ~50% perf improvement when compiling TypeScript and using intellisense Re: #10349 Fix #10536 Re: #10515 11 August 2021, 16:49:31 UTC
2eed940 docs(query): add `Query#model` to docs re: #10531 11 August 2021, 00:06:47 UTC
332268d fix(index.d.ts): add `Query#model` property to ts bindings Fix #10531 11 August 2021, 00:06:12 UTC
a1dd24e fix(index.d.ts): correct type for `expires` Fix #10529 10 August 2021, 22:53:58 UTC
53d2c12 allow any string index property name 10 August 2021, 17:22:42 UTC
bdb68c3 add `IndexDirection` for index sorting direction 10 August 2021, 00:24:10 UTC
f6d1ae6 Define `IndexOptions` in terms of `mongodb.IndexOptions` The current mongoose.IndexOptions is missing some mongo-valid paroperties, like `partialFilterExpression`. 09 August 2021, 23:55:06 UTC
d70ea43 Fix type for schema.index() to reflect actual mongoose API Commit 1c66cc972c90529bd0ffe8496e9de866b92a97fa broke the typing for `Schema.index()` by making `fields` look like mongo's `IndexSpecification`, when it's not: mongoose has its own idea about what the index specification looks like. (I'm not 100% sure about the changed return value on `Schema.indexes()`... there may be prefixing and a `background` field added, as per https://github.com/Automattic/mongoose/blob/master/lib/helpers/schema/getIndexes.js.) Fixes #10561. 09 August 2021, 23:18:48 UTC
477afdc chore: release 5.13.6 09 August 2021, 19:29:20 UTC
63a8b30 style: fix lint 09 August 2021, 19:07:50 UTC
2cffb31 fix(index.d.ts): allow calling `new Model(...)` with generic Model param Fix #10526 09 August 2021, 17:23:20 UTC
c1a719d Merge pull request #10538 from Raader/master update type declarations of Schema.index method 09 August 2021, 17:00:59 UTC
ee5b391 fix(schema): throw more helpful error when defining a document array using a schema from a different copy of the Mongoose module Fix #10453 09 August 2021, 16:58:34 UTC
cdd4116 docs(schema): add more info and examples to `Schema#indexes()` docs Fix #10446 09 August 2021, 16:30:41 UTC
99ae199 fix(index.d.ts): add useNewUrlParser and useUnifiedTopology to ConnectOptions Fix #10500 09 August 2021, 15:46:08 UTC
a37f63c fix: add explicit check on `constructor` property to avoid throwing an error when checking objects with null prototypes Fix #10512 09 August 2021, 15:42:23 UTC
bf54ac2 test(update): repro #10512 09 August 2021, 15:35:29 UTC
a0bdcfe fix(cursor): make sure to clear stack every 1000 docs when calling `next()` to avoid stack overflow with large batch size Fix #10449 09 August 2021, 15:01:04 UTC
6f74717 add `CallbackWithoutResult` type 09 August 2021, 11:46:36 UTC
523becd remove unnecessary space 09 August 2021, 10:01:42 UTC
1c66cc9 use mongodb's index specification 09 August 2021, 09:51:00 UTC
f746434 relax types for non AtomicPush 09 August 2021, 02:23:43 UTC
95685e2 Merge pull request #10557 from thiagokisaki/patch-7 chore: add `types` property to `package.json` 08 August 2021, 20:37:49 UTC
c5b4b85 Merge pull request #10555 from thiagokisaki/patch-6 fix(index.d.ts): improve types of `Schema#(g|s)et` 08 August 2021, 20:36:24 UTC
3390337 Merge pull request #10547 from bvgusak/fix/add-diff-indexes-types fix(index.d.ts): add missing type for diffIndexes 08 August 2021, 20:28:35 UTC
cdc07ff Merge pull request #10544 from GCastilho/type-map-fix fix: Fixed incorrect type definition for Query's .map function 08 August 2021, 20:20:42 UTC
d2030a7 Merge pull request #10543 from maon-fp/update-mongo-driver bump mongodb to 3.6.11 08 August 2021, 20:10:33 UTC
b96ad00 chore: add `types` property to `package.json` 08 August 2021, 13:34:56 UTC
0f49d67 fix(index.d.ts): improve types of `Schema#(g|s)et` 08 August 2021, 03:21:09 UTC
36d2185 Merge branch 'master' of https://github.com/thiagokisaki/mongoose into patch-5 07 August 2021, 01:22:21 UTC
9cb7b1d refactor(index.d.ts): add `Callback` type to avoid code repetition 07 August 2021, 01:13:55 UTC
8426d39 fix(index.d.ts): add missing type for diffIndexes 06 August 2021, 04:19:06 UTC
b091ce9 added types for DocumentArray push 06 August 2021, 04:05:47 UTC
f64f651 updated definition for docArray 06 August 2021, 03:45:56 UTC
0f8903d updated array push type definition 06 August 2021, 03:27:09 UTC
4c8847e Fixed incorrect type definition for Query's .map function 06 August 2021, 01:35:16 UTC
9a87c36 chore: update opencollective sponsors 06 August 2021, 00:44:56 UTC
7a57544 bump mongodb to 3.6.11 05 August 2021, 19:37:20 UTC
47cba8e update type declarations for index related fields in Schema 03 August 2021, 22:34:56 UTC
9b00c96 chore: update opencollective sponsors 02 August 2021, 15:26:39 UTC
c36bd64 chore: release 5.13.5 30 July 2021, 15:41:06 UTC
b33599c Merge pull request #10510 from thiagokisaki/gh-10504 fix(index.d.ts): fix `debug` type in `MongooseOptions` 30 July 2021, 15:36:55 UTC
d88f981 Merge pull request #10515 from andreialecu/perf-types perf: improve typescript type checking performance 30 July 2021, 15:26:15 UTC
9c41c19 perf: improve typescript type checking performance 30 July 2021, 07:40:22 UTC
f1e0de1 Merge pull request #10501 from gfrancz/patch-1 Update depopulate documentation for document.js 29 July 2021, 14:20:28 UTC
ae819cc fix(index.d.ts): fix `debug` type in `MongooseOptions` 29 July 2021, 12:49:18 UTC
28b1aa3 fix: get rid of hardcoding of @types/node re: DefinitelyTyped/DefinitelyTyped#54479 28 July 2021, 21:42:59 UTC
b82aa37 Update depopulate documentation for document.js Currently the documentation indicates that if a path for depopulate(path) is not provided, then it's a no-op. This is absolutely not true -- in fact, all fields are depopulated. This change fixes the documentation issue. 28 July 2021, 21:39:18 UTC
6b33a7b chore: release 5.13.4 28 July 2021, 21:12:00 UTC
060039d fix(index.d.ts): improve autocomplete for `new Model()` by making `doc` an object with correct keys Fix #10475 Re: #10343 Re: #10302 28 July 2021, 20:59:20 UTC
2066180 fix(map): correctly clone subdocs when calling `toObject()` on a map Fix #10486 28 July 2021, 19:30:38 UTC
7793065 test(map): repro #10486 28 July 2021, 19:30:33 UTC
1be924d style: fix lint 28 July 2021, 19:13:51 UTC
c05e7f6 Merge branch 'master' of github.com:Automattic/mongoose 28 July 2021, 19:10:16 UTC
b6beb3e fix(update): support overwriting nested map paths Fix #10485 28 July 2021, 19:09:24 UTC
926533f test: repro #10485 28 July 2021, 19:09:13 UTC
fcbadbc Merge pull request #10494 from juhdanad/lean-populated Make LeanDocument work with PopulatedDoc 28 July 2021, 18:19:00 UTC
0afa2ba Merge branch 'master' of github.com:Automattic/mongoose 28 July 2021, 18:15:58 UTC
e2d94cb docs(mongoose+connection): correct default value for bufferTimeoutMS Fix #10476 28 July 2021, 18:15:41 UTC
0ff1c8a Merge pull request #10464 from AbdelrahmanHafez/gh-10437 test(model): assert Model.bulkSave(...) works if some document is not modified 28 July 2021, 18:08:25 UTC
back to top