https://github.com/Automattic/mongoose

sort by:
Revision Author Date Message Commit Date
8123ef3 chore: release 6.8.4 17 January 2023, 16:50:22 UTC
8b99ca7 Merge pull request #12889 from Automattic/vkarpov15/fix-model-while-disconnected fix(collection): handle creating model when connection disconnected with bufferCommands = false 17 January 2023, 16:24:40 UTC
ed8eacf Merge pull request #12884 from JavaScriptBach/array-type-fix Correctly infer types on document arrays 17 January 2023, 16:06:46 UTC
256a11e Merge pull request #12890 from hasezoey/closeAllConnections Close all connections in all tests, also change some tests to be working stand-alone 17 January 2023, 15:10:20 UTC
92fcc58 Merge pull request #12912 from Automattic/vkarpov15/gh-12806 docs(typescript): add notes about virtual context to Mongoose 6 migration and TypeScript virtuals docs 17 January 2023, 15:07:56 UTC
dba8625 Update docs/typescript/virtuals.md Co-authored-by: hasezoey <hasezoey@gmail.com> 17 January 2023, 15:07:47 UTC
12fdd0a Merge pull request #12910 from manniL/patch-1 docs: fix link to lean api 17 January 2023, 15:06:59 UTC
539f8f3 docs: correct link 17 January 2023, 15:05:41 UTC
c14c169 chore: use bug unicode character for issue template (#12913) Fix #12693 16 January 2023, 20:24:38 UTC
a1b90e6 docs(typescript): add notes about virtual context to Mongoose 6 migration and TypeScript virtuals docs Fix #12806 16 January 2023, 19:29:59 UTC
dc136ab docs: fix link to lean api 16 January 2023, 10:31:56 UTC
a6fd84b Merge pull request #12897 from lpizzinidev/gh-12885 docs(schematypes): removed dead link and fixed formatting 14 January 2023, 18:34:22 UTC
c91a987 Merge pull request #12903 from lpizzinidev/gh-12859 types(lean): added omit for `ArraySubdocument` type in `LeanType` declaration 14 January 2023, 17:42:00 UTC
78b3b54 Merge pull request #12906 from Automattic/update-types types(query): `returnDocument` type safety 13 January 2023, 14:49:49 UTC
18944ba test(query): add query test for `returnDocument` 13 January 2023, 05:44:32 UTC
c820587 Update query.d.ts 13 January 2023, 05:23:50 UTC
45aa436 types(lean): added omit for ArraySubdocument type in LeanType closes #12859 12 January 2023, 09:46:01 UTC
d2492ea docs(schematypes): removed dead link and fixed formatting fix #12885 10 January 2023, 08:55:28 UTC
054b704 handle string case 10 January 2023, 04:13:23 UTC
6e14876 Merge pull request #12891 from Automattic/vkarpov15/gh-12834 fix(populate): merge instead of overwrite when `match` is on `_id` 10 January 2023, 02:40:01 UTC
34bda70 Merge pull request #12820 from sgpinkus/feat/allow-doc-as-base-for-loadclass Add guard to stop loadClass copying Document if Document is used as base of loaded class (same hack as implemented for Model already). 10 January 2023, 02:23:44 UTC
aa44bda rm accidental import 09 January 2023, 18:49:48 UTC
456be2b Merge pull request #12892 from Automattic/vkarpov15/gh-12671 docs: add list of known incompatible npm packages 09 January 2023, 17:21:45 UTC
6d7f0e8 Merge pull request #12868 from Automattic/IslandRhythms/middleware-strings list all possible strings for schema.pre 09 January 2023, 16:47:44 UTC
004f55e made requested changes 09 January 2023, 16:36:02 UTC
6fa82ed docs: add list of known incompatible npm packages Fix #12671 08 January 2023, 22:25:40 UTC
d8795c6 fix(populate): merge instead of overwrite when `match` is on `_id` Fix #12834 08 January 2023, 21:59:00 UTC
07378d3 test(connection): update to disconnect all connections 08 January 2023, 21:53:26 UTC
684d6ce test(index): update to disconnect all connections 08 January 2023, 21:53:26 UTC
aae473a test(model): update to close all connections in "after" 08 January 2023, 21:53:26 UTC
95f4b06 test(query.middleware): update to close all connections in "after" 08 January 2023, 21:53:26 UTC
8d14da3 test(collection): update to close all connections in "after" 08 January 2023, 21:53:26 UTC
9f7715b test(collection.capped): update to close all connections in "after" 08 January 2023, 21:53:26 UTC
9b3f8f7 test(helpers/indexes.getRelatedIndexes): only start one connection 08 January 2023, 21:53:26 UTC
0580240 test(docs/debug): refactor to close all connections in "after" 08 January 2023, 21:53:26 UTC
44535ad test(docs/date): update to use existing connection and not create a new 08 January 2023, 21:53:26 UTC
1fa4d74 test(docs/): add "after" calls to disconnect all connections to prevent connections from leaking across tests 08 January 2023, 21:53:26 UTC
50fbb29 test: allow some "test/helpers/" test to run as stand-alone 08 January 2023, 21:53:26 UTC
743acf6 fix: always recreate collection in onOpen 08 January 2023, 20:20:19 UTC
7f4921e fix(collection): handle creating model when connection disconnected with bufferCommands = false 08 January 2023, 20:14:18 UTC
2a9a457 test(model.findOneAndUpdate): remove NodeJS 0.x check (#12888) 08 January 2023, 16:38:26 UTC
f69f367 test: allow more tests for deno (#12887) 08 January 2023, 15:30:30 UTC
00d3660 chore(workflows/test): update "setup-node" version for the deno tests (#12886) this should get rid of the "set-output is deprecated" warning 07 January 2023, 14:29:12 UTC
b248ca3 add test, comments, and clean up a bit 07 January 2023, 00:58:24 UTC
969dcdc Correctly infer types on document arrays 07 January 2023, 00:44:26 UTC
783a5de chore: release 6.8.3 06 January 2023, 17:40:39 UTC
0ccc498 Merge pull request #12881 from Automattic/vkarpov15/kareem-2.5.1 fix: upgrade kareem -> 2.5.1, Fix #12836 06 January 2023, 17:35:08 UTC
efeaa33 fix: upgrade kareem -> 2.5.1, Fix #12836 06 January 2023, 17:04:32 UTC
b9f2127 Merge pull request #12860 from Automattic/vkarpov15/gh-12684 docs(typescript): explain that virtuals inferred from schema only show up on Model, not raw document type 06 January 2023, 16:57:55 UTC
426cc8c Merge pull request #12861 from Automattic/vkarpov15/gh-6087 docs(discriminators): add section about changing discriminator key 06 January 2023, 16:56:03 UTC
b7816cd Merge pull request #12866 from Automattic/vkarpov15/gh-12791 fix(model): ensure consistent ordering of validation errors in `insertMany()` with `ordered: false` and `rawResult: true` 06 January 2023, 16:55:23 UTC
fe9bc23 Merge pull request #12870 from JavaScriptBach/const-array Correctly infer string enums on const arrays 06 January 2023, 16:52:36 UTC
a2af383 Merge pull request #12871 from Automattic/vkarpov15/gh-12807 fix(types): avoid inferring timestamps if `methods`, `virtuals`, or `statics` set 06 January 2023, 16:46:42 UTC
c63cffb Add guard to stop loadClass copying Document if Document is used as base of loaded class (same hack as implemented for Model already). 06 January 2023, 05:55:30 UTC
fadb450 Merge pull request #12874 from sffc/patch-1 Allow virtuals to be invoked in the definition of other virtuals 06 January 2023, 03:14:37 UTC
6043907 Merge pull request #12867 from Automattic/perf-assignRawDocsToIdStructure improve performance of assignRawDocsToIdStructure 06 January 2023, 03:12:35 UTC
5be82c3 Allow virtuals to be invoked in the definition of other virtuals 05 January 2023, 01:15:28 UTC
e9b5eed Merge pull request #12864 from dmshvetsov/dmshvetsov/fix-type-def-aggregation-model-fn add type def for Aggreaget#model without arguments 04 January 2023, 17:39:01 UTC
0ed84bc fix(types): avoid inferring timestamps if `methods`, `virtuals`, or `statics` set Re: #12807 04 January 2023, 16:08:01 UTC
5faf524 add type tests for Aggregate.prototype.model 04 January 2023, 12:02:04 UTC
6f243a9 lint 03 January 2023, 23:36:06 UTC
17ee131 add test 03 January 2023, 23:31:31 UTC
baea9f5 Correctly infer string enums on const arrays 03 January 2023, 23:26:00 UTC
790ba1e Update middleware.md 03 January 2023, 21:54:42 UTC
c07fef4 improve performance of assignRawDocsToIdStructure 03 January 2023, 20:34:31 UTC
9303f7d fix: correct writeError index when insertMany() with ordered: false, rawResult: true with mixed validation error and write error re: #12791 03 January 2023, 17:08:57 UTC
a1f7f0a style: quick fix 03 January 2023, 16:33:46 UTC
a90f97c fix(model): ensure consistent ordering of validation errors in `insertMany()` with `ordered: false` and `rawResult: true` Re: #12791 03 January 2023, 16:25:05 UTC
456793e add type def for Aggreaget#model without arguments 03 January 2023, 11:52:37 UTC
d10ad8c Merge pull request #12862 from Automattic/revert-12858-dependabot/npm_and_yarn/master/axios-1.2.2 Revert "chore(deps-dev): bump axios from 1.1.3 to 1.2.2" 02 January 2023, 21:54:55 UTC
52c0fe7 Revert "chore(deps-dev): bump axios from 1.1.3 to 1.2.2 (#12858)" This reverts commit 10e8f966c9c13204d86c6fd51d6191ff04ade0b8. 02 January 2023, 21:49:28 UTC
855bef1 Merge pull request #12850 from Automattic/dependabot/github_actions/master/actions/stale-7 chore(deps): bump actions/stale from 6 to 7 02 January 2023, 21:48:52 UTC
9200688 Merge pull request #12849 from Automattic/dependabot/github_actions/master/actions/checkout-3.2.0 chore(deps): bump actions/checkout from 3.1.0 to 3.2.0 02 January 2023, 21:48:23 UTC
db81dbb docs(discriminators): add section about changing discriminator key Fix #6087 02 January 2023, 20:24:39 UTC
c6b9b5f docs(typescript): explain that virtuals inferred from schema only show up on Model, not raw document type Fix #12684 02 January 2023, 19:24:20 UTC
2aee7c1 chore(deps-dev): bump marked from 4.2.3 to 4.2.5 (#12854) Bumps [marked](https://github.com/markedjs/marked) from 4.2.3 to 4.2.5. - [Release notes](https://github.com/markedjs/marked/releases) - [Changelog](https://github.com/markedjs/marked/blob/master/.releaserc.json) - [Commits](https://github.com/markedjs/marked/compare/v4.2.3...v4.2.5) --- updated-dependencies: - dependency-name: marked dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 09:09:33 UTC
ee5c59b chore(deps-dev): bump @babel/core from 7.20.5 to 7.20.7 (#12851) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.20.5 to 7.20.7. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.20.7/packages/babel-core) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 09:04:13 UTC
a3d1c38 chore(deps-dev): bump mongodb-memory-server from 8.10.1 to 8.10.2 (#12853) Bumps [mongodb-memory-server](https://github.com/nodkz/mongodb-memory-server/tree/HEAD/packages/mongodb-memory-server) from 8.10.1 to 8.10.2. - [Release notes](https://github.com/nodkz/mongodb-memory-server/releases) - [Changelog](https://github.com/nodkz/mongodb-memory-server/blob/master/CHANGELOG.md) - [Commits](https://github.com/nodkz/mongodb-memory-server/commits/v8.10.2/packages/mongodb-memory-server) --- updated-dependencies: - dependency-name: mongodb-memory-server dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 09:04:00 UTC
b734f7f chore(deps-dev): bump mocha from 10.1.0 to 10.2.0 (#12857) Bumps [mocha](https://github.com/mochajs/mocha) from 10.1.0 to 10.2.0. - [Release notes](https://github.com/mochajs/mocha/releases) - [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md) - [Commits](https://github.com/mochajs/mocha/compare/v10.1.0...v10.2.0) --- updated-dependencies: - dependency-name: mocha dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 09:03:47 UTC
10e8f96 chore(deps-dev): bump axios from 1.1.3 to 1.2.2 (#12858) Bumps [axios](https://github.com/axios/axios) from 1.1.3 to 1.2.2. - [Release notes](https://github.com/axios/axios/releases) - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md) - [Commits](https://github.com/axios/axios/compare/v1.1.3...1.2.2) --- updated-dependencies: - dependency-name: axios dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 08:28:52 UTC
164bc07 chore(deps-dev): bump @typescript-eslint/parser from 5.45.0 to 5.47.1 (#12848) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.45.0 to 5.47.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 08:28:40 UTC
de76550 chore(deps-dev): bump eslint from 8.28.0 to 8.31.0 (#12852) Bumps [eslint](https://github.com/eslint/eslint) from 8.28.0 to 8.31.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v8.28.0...v8.31.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 08:23:12 UTC
cb2f873 chore(deps-dev): bump @typescript-eslint/eslint-plugin (#12856) Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.45.0 to 5.47.1. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.47.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 08:22:50 UTC
361f59d chore(deps-dev): bump sinon from 15.0.0 to 15.0.1 (#12855) Bumps [sinon](https://github.com/sinonjs/sinon) from 15.0.0 to 15.0.1. - [Release notes](https://github.com/sinonjs/sinon/releases) - [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md) - [Commits](https://github.com/sinonjs/sinon/compare/v15.0.0...v15.0.1) --- updated-dependencies: - dependency-name: sinon dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 02 January 2023, 08:22:23 UTC
f7787f4 chore(deps): bump actions/stale from 6 to 7 Bumps [actions/stale](https://github.com/actions/stale) from 6 to 7. - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/stale dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> 01 January 2023, 23:01:50 UTC
fb339ae chore(deps): bump actions/checkout from 3.1.0 to 3.2.0 Bumps [actions/checkout](https://github.com/actions/checkout) from 3.1.0 to 3.2.0. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3.1.0...755da8c3cf115ac066823e79a1e1788f8940201b) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 01 January 2023, 23:01:46 UTC
cd20f82 chore: release 6.8.2 28 December 2022, 17:37:04 UTC
d9ae2dc Merge pull request #12838 from Automattic/vkarpov15/gh-12770 chore: fix typescript benchmarks by removing ts-benchmark 28 December 2022, 17:21:18 UTC
2aa009b Merge pull request #12841 from hasezoey/addNavBarDefaultVersion docs(navbar-search): add missing variable 28 December 2022, 17:03:47 UTC
a46ee18 docs(navbar-search): add missing variables was broken by c3384bcd1dc60fa15b57f41931bac9d9c99fc6e2 re #12830 28 December 2022, 14:32:37 UTC
a145f2c Merge branch '5.x' 28 December 2022, 02:35:49 UTC
aef4c7b docs: quick fix for search re: #12830 28 December 2022, 02:35:40 UTC
4fa07d9 Merge branch '5.x' 27 December 2022, 22:34:53 UTC
48179b4 chore: search fixes 27 December 2022, 22:34:45 UTC
bcb3d66 Merge branch '5.x' 27 December 2022, 22:23:28 UTC
c3384bc docs: fix search re: #12830 27 December 2022, 22:19:21 UTC
fd1fa9d docs: backport #12830 to 5.x 27 December 2022, 22:01:19 UTC
e3472fa Merge pull request #12830 from Automattic/vkarpov15/gh-12548 Search content by version 27 December 2022, 20:10:15 UTC
2796185 Merge pull request #12825 from Automattic/vkarpov15/gh-12420-2 docs(typescript): make note about recommending `strict` mode when using auto typed schemas 27 December 2022, 20:08:17 UTC
6a8aee9 chore: use parseInt for tsc diagnostics check re: code review comments Re: #12770 27 December 2022, 19:58:27 UTC
back to top