An easy-to-use discord bot including database, slash commands and context menus !

Overview

Discord Bot Template

An easy-to-use discord bot using Discord.JS V13. Wiki

Includes:

  • Slash commands
  • Database
  • User commands

and more in future

Requirements

  • Node JS 16.6 or higher
  • Scope "applications.commands" when adding the bot
  • MongoDB cluster (you can use Free clusters)

Install it

  • Use git clone gonzyui/Discord-Template-V13 or download the .zip file
  • Do npm i
  • Edit the .env.example to .env
  • Now you can run it with node .

Issues

If you encounter any issue, please open an ISSUE.

Known issues:

  • No
  • known
  • issues

Contributors

Want to contribute and appear here ? Open a PR :)


Gonz#0001

👑
Comments
  • Bump mongoose from 6.6.0 to 6.8.1

    Bump mongoose from 6.6.0 to 6.8.1

    Bumps mongoose from 6.6.0 to 6.8.1.

    Release notes

    Sourced from mongoose's releases.

    6.8.1 / 2022-12-19

    • fix(query): avoid throwing circular dependency error if same object is used in multiple properties #12774 orgads
    • fix(map): return value from super.delete() #12777 danbrud
    • fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result #12815 #12730
    • fix(update): handle embedded discriminators when casting array filters #12802 #12565
    • fix(populate): avoid calling transform if there's no populate results and using lean #12804 #12739
    • fix(model): prevent index creation on syncIndexes if not necessary #12785 #12250 lpizzinidev
    • fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } #12778
    • fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false #12784 JavaScriptBach
    • docs: replace many occurrences of "localhost" with "127.0.0.1" #12811 #12741 hasezoey SadiqOnGithub
    • docs(mongoose): Added missing options to set #12810 lpizzinidev
    • docs: add info on $locals parameters to getters/setters tutorial #12814 #12550 IslandRhythms
    • docs: make Document.prototype.$clone() public #12803
    • docs(query): updated explanation for slice #12776 #12474 lpizzinidev
    • docs(middleware): fix broken links #12787 lpizzinidev
    • docs(queries): fixed broken links #12790 lpizzinidev

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.8.1 / 2022-12-19

    • fix(query): avoid throwing circular dependency error if same object is used in multiple properties #12774 orgads
    • fix(map): return value from super.delete() #12777 danbrud
    • fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result #12815 #12730
    • fix(update): handle embedded discriminators when casting array filters #12802 #12565
    • fix(populate): avoid calling transform if there's no populate results and using lean #12804 #12739
    • fix(model): prevent index creation on syncIndexes if not necessary #12785 #12250 lpizzinidev
    • fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } #12778
    • fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false #12784 JavaScriptBach
    • docs: replace many occurrences of "localhost" with "127.0.0.1" #12811 #12741 hasezoey SadiqOnGithub
    • docs(mongoose): Added missing options to set #12810 lpizzinidev
    • docs: add info on $locals parameters to getters/setters tutorial #12814 #12550 IslandRhythms
    • docs: make Document.prototype.$clone() public #12803
    • docs(query): updated explanation for slice #12776 #12474 lpizzinidev
    • docs(middleware): fix broken links #12787 lpizzinidev
    • docs(queries): fixed broken links #12790 lpizzinidev

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.8.0

    Bump mongoose from 6.6.0 to 6.8.0

    Bumps mongoose from 6.6.0 to 6.8.0.

    Release notes

    Sourced from mongoose's releases.

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    ... (truncated)

    Commits
    • 82943da chore: release 6.8.0
    • 687dfe6 Merge pull request #12768 from Automattic/6.8
    • c561459 Merge branch 'master' into 6.8
    • 1717e16 Merge pull request #12769 from Automattic/revert-12751-dependabot/npm_and_yar...
    • 40dba69 Revert "chore(deps-dev): bump typescript from 4.8.4 to 4.9.3"
    • 7676f5c Merge branch 'master' into 6.8
    • efed0a4 Merge pull request #12723 from Automattic/vkarpov15/gh-12595
    • 170e6df Merge pull request #12750 from Automattic/dependabot/npm_and_yarn/master/sino...
    • 52cdf92 Merge pull request #12753 from Automattic/dependabot/npm_and_yarn/master/babe...
    • 51bb927 Merge pull request #12751 from Automattic/dependabot/npm_and_yarn/master/type...
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.5

    Bump mongoose from 6.6.0 to 6.7.5

    Bumps mongoose from 6.6.0 to 6.7.5.

    Release notes

    Sourced from mongoose's releases.

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595
    • docs(middleware): added note about execution policy on subdocuments #12735 #12694 lpizzinidev
    • docs(validation): clarify context for update validators in validation docs #12738 #12655 IslandRhythms

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump discord.js from 14.3.0 to 14.7.0

    Bump discord.js from 14.3.0 to 14.7.0

    Bumps discord.js from 14.3.0 to 14.7.0.

    Release notes

    Sourced from discord.js's releases.

    14.6.0

    Bug Fixes

    Documentation

    • Utils: Remove private from parseEmoji (#8718) (a31e605)
    • Update UserContextMenuCommandInteraction documentation (#8717) (7556db2)
    • Fix AwaitMessageComponentOptions typedef (#8696) (9effd82)

    Features

    • Util: Escape more markdown characters (#8701) (7b8966b)
    • GuildChannelManager: Allow creating channels with a default auto archive duration (#8693) (628759b)
    • Add @discordjs/util (#8591) (b2ec865)
    • ForumChannel: Add defaultSortOrder (#8633) (883f6e9)

    Refactor

    • Rename Error to DiscordjsError internally (#8706) (aec44a0)

    Typings

    14.5.0

    Bug Fixes

    • ThreadChannel: Add forum channel to parent (#8664) (0126d9b)
    • GuildChannelManager: Allow creating webhooks on forums (#8661) (16fcdc3)
    • ForumChannel: Implement missing properties and methods (#8662) (8622939)
    • RepliableInteraction respect cached generic (#8667) (578bc95)
    • ThreadChannel: Allow editing flags (#8671) (1244854)
    • GuildChannelManager: Typo in flags property name when editing (#8669) (fc8ed81)

    Documentation

    Features

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.4

    Bump mongoose from 6.6.0 to 6.7.4

    Bumps mongoose from 6.6.0 to 6.7.4.

    Release notes

    Sourced from mongoose's releases.

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.4 / 2022-11-28

    • fix: allow setting global strictQuery after Schema creation #12717 #12703 lpizzinidev
    • fix(cursor): make eachAsync() avoid modifying batch when mixing parallel and batchSize #12716
    • fix(types): infer virtuals in query results #12727 #12702 #12684
    • fix(types): correctly infer ReadonlyArray types in schema definitions #12720
    • fix(types): avoid typeof Query with generics for TypeScript 4.6 support #12712 #12688
    • chore: avoid bundling .tgz files when publishing #12725 hasezoey

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.3

    Bump mongoose from 6.6.0 to 6.7.3

    Bumps mongoose from 6.6.0 to 6.7.3.

    Release notes

    Sourced from mongoose's releases.

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.3 / 2022-11-22

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.2

    Bump mongoose from 6.6.0 to 6.7.2

    Bumps mongoose from 6.6.0 to 6.7.2.

    Release notes

    Sourced from mongoose's releases.

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.2 / 2022-11-07

    • fix(discriminator): skip copying base schema plugins if applyPlugins == false #12613 #12604 lpizzinidev
    • fix(types): add UUID to types #12650 #12593
    • fix(types): allow setting SchemaTypeOptions' index property to IndexOptions #12562
    • fix(types): set this to doc type in SchemaType.prototype.validate() #12663 #12590
    • fix(types): correct handling for model #12659 #12573
    • fix(types): pre hook with deleteOne should resolve this as Query #12642 #12622 lpizzinidev

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.1

    Bump mongoose from 6.6.0 to 6.7.1

    Bumps mongoose from 6.6.0 to 6.7.1.

    Release notes

    Sourced from mongoose's releases.

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.1 / 2022-11-02

    • fix(query): select Map field with select: false when explicitly requested #12616 #12603 lpizzinidev
    • fix: correctly find paths underneath single nested document with an array of mixed #12605 #12530
    • fix(populate): better support for populating maps of arrays of refs #12601 #12494
    • fix(types): add missing create constructor signature override type #12585 naorpeled
    • fix(types): make array paths optional in inferred type of array default returns undefined #12649 #12420
    • fix(types): improve ValidateOpts type #12606 Freezystem
    • docs: add Lodash guide highlighting issues with cloneDeep() #12609
    • docs: removed v5 link from v6 docs #12641 #12624 lpizzinidev
    • docs: removed outdated connection example #12618 lpizzinidev

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398

    ... (truncated)

    Commits
    • f90e73d chore: release 6.7.1
    • 64f6ff4 Merge pull request #12649 from Automattic/vkarpov15/gh-12420
    • 1f6864f test: address some code review comments to streamline tests
    • f9501d2 Merge pull request #12646 from hasezoey/updateCheckout
    • 80f597f fix(types): make array paths optional in inferred type of array default retur...
    • fd2d826 Merge pull request #12632 from Automattic/dependabot/npm_and_yarn/master/axio...
    • 76e5940 chore(workflows): update actions/checkout to 3.1.0
    • 0d37fa5 Merge pull request #12640 from Automattic/dependabot/npm_and_yarn/master/mark...
    • b66f457 chore(deps-dev): bump marked from 4.1.1 to 4.2.1
    • 9d4cac8 Merge pull request #12641 from lpizzinidev/fix-12624
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.7.0

    Bump mongoose from 6.6.0 to 6.7.0

    Bumps mongoose from 6.6.0 to 6.7.0.

    Release notes

    Sourced from mongoose's releases.

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.7.0 / 2022-10-24

    • feat: upgrade to mongodb driver 4.11.0 #12446
    • feat: add UUID Schema Type (BSON Buffer SubType 4) #12268 #3208 hasezoey
    • feat(aggregation): add $fill pipeline stage #12545 raphael-papazikas
    • feat(types+schema): allow defining schema paths using mongoose.Types.* to work around TS type inference issues #12352
    • feat(schema): add alias() method that makes it easier to define multiple aliases for a given path #12368
    • feat(model): add mergeHooks option to Model.discriminator() to avoid duplicate hooks #12542
    • feat(document): add $timestamps() method to set timestamps for save(), bulkSave(), and insertMany() #12540

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.6.7

    Bump mongoose from 6.6.0 to 6.6.7

    Bumps mongoose from 6.6.0 to 6.6.7.

    Release notes

    Sourced from mongoose's releases.

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    6.6.3 / 2022-09-30

    • fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
    • fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
    • fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
    • fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
    • fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
    • fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey

    6.6.2 / 2022-09-26

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.6.7 / 2022-10-21

    • fix: correct browser build and improve isAsyncFunction check for browser #12577 #12576 #12392
    • fix(query): allow overwriting discriminator key with overwriteDiscriminatorKey if strict: 'throw' #12578 #12513

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    6.6.3 / 2022-09-30

    • fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
    • fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
    • fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
    • fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
    • fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
    • fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey

    6.6.2 / 2022-09-26

    ... (truncated)

    Commits
    • 61e96d7 chore: release 6.6.7
    • 7cd8ea3 Merge pull request #12578 from Automattic/vkarpov15/gh-12513
    • 8e33a32 fix: more robust fix for #12513
    • 136d6af fix(query): allow overwriting discriminator key with `overwriteDiscriminatorK...
    • b46fc92 Merge pull request #12577 from Automattic/vkarpov15/gh-12576
    • 785b987 fix: correct browser build and improve isAsyncFunction check for browser
    • 1ef7bcd Merge branch 'master' of github.com:Automattic/mongoose
    • c3e9206 chore: release 6.6.6
    • dcbff09 Merge pull request #12570 from Automattic/vkarpov15/gh-12508
    • d595544 refactor: create separate helper to get strictQuery re: code review comments
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.6.6

    Bump mongoose from 6.6.0 to 6.6.6

    Bumps mongoose from 6.6.0 to 6.6.6.

    Release notes

    Sourced from mongoose's releases.

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    6.6.3 / 2022-09-30

    • fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
    • fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
    • fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
    • fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
    • fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
    • fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey

    6.6.2 / 2022-09-26

    • fix(model): avoid deleting shared schema methods in fix for #12254 #12423
    • fix(document): set $inc default value in case field has not been specified on the document #12435 lpizzinidev
    • fix(query): handle select: false on map paths in query results #12467 lpizzinidev
    • fix(types): add HydratedDocumentFromSchema to make it easier to pull inferred hydrated doc type #12464 #12319
    • fix(types): add sanitizeFilter to types #12465 zrosenbauer
    • fix(types): infer number enum types from schema if using enum: [0, 1] as const #12463 #12242
    • docs(validation): add section on global schematype validation, clean up other issues #12430
    • docs: add clarification about overwrite flag in model.js #12447 Tzvika-m
    • docs: change to consistent "Example:" for jsdoc comments #12432 hasezoey

    6.6.1 / 2022-09-14

    • fix: correctly apply defaults after subdoc init #12328
    • fix(array): avoid using default _id when using pull() #12294
    • fix: allow null values inside $expr objects #12429 MartinDrost
    • fix(query): use correct Query constructor when cloning query #12418
    • docs(website): remove setting "latest38x" which is not used anywhere #12396 hasezoey
    Changelog

    Sourced from mongoose's changelog.

    6.6.6 / 2022-10-20

    • fix(update): handle runValidators when using $set on a doc array in discriminator schema #12571 #12518
    • fix(document): allow creating document with document array and top-level key named schema #12569 #12480
    • fix(cast): make schema-level strictQuery override schema-level strict for query filters #12570 #12508
    • fix(aggregate): avoid adding extra $match stage if user manually set discriminator key to correct value in first pipeline stage #12568 #12478
    • fix: Throws error when updating a key name that match the discriminator key name on nested object #12534 #12517 lpizzinidev
    • fix(types): add limit to $filter expression #12553 raphael-papazikas
    • fix(types): correct replaceWith type pipeline stage #12535 FabioCingottini
    • fix(types): add missing densify type pipeline type #12533 FabioCingottini
    • docs(populate): added transform option description #12560 #12551 lpizzinidev
    • docs(connection): add sample to useDb() documentation #12541 lpizzinidev
    • docs(guide): update broken read-preference links #12538 #12525 hasezoey
    • chore: add TypeScript version field to issue template #12532 hasezoey

    6.6.5 / 2022-10-05

    • fix(document): set defaults on subdocuments underneath init-ed single nested subdocument #12523 #12515
    • fix: make Jest fake timers check more robust to other libs that overwrite time functions #12527 #12514
    • fix(types): indicate that Schema.prototype.discriminator() returns this #12522 #12457
    • fix(types): add "estimatedDocumentCount" and "countDocuments" as possible hooks #12519 #12516
    • docs(models): add section on MongoDB Views #12526 #5694
    • docs(subdocs): clarify that populated docs are not subdocs #12521 #12398
    • docs(change-streams): remove unnecessary obsolete comment about needing to use mongodb driver change streams #12444

    6.6.4 / 2022-10-03

    • fix(model): avoid saving applied defaults if path is deselected #12506 #12414
    • fix(types): correct DocType for auto typed query helpers #12342
    • fix(types): avoid "excessively deep" type instantiation error when using bulkWrite() with type that extends from document #12277
    • fix(types): avoid relying on typeof this, which isn't supported in TypeScript < 4.4 #12375
    • docs(schema): correct example for Schema.prototype.discriminator() #12493
    • docs(typescript): clean up query helpers examples #12342
    • chore: use mongodb-memory-server for testing #12262 hasezoey

    6.6.3 / 2022-09-30

    • fix(query): treat findOne(_id) as equivalent to findOne({ _id }) #12485 #12325
    • fix(timestamps): findOneAndUpdate creates subdocs with timestamps in reverse order #12484 #12475 lpizzinidev
    • fix(types): make schema.plugin() more flexible for schemas that don't define any generics #12486 #12454
    • fix(types): add "array of array key-value pairs" as a argument option for "query.sort()" #12483 #12434 hasezoey
    • fix(types): remove unused defaults in "PluginFunction" #12459 hasezoey
    • fix(types): update DiscriminatorSchema to have better names and combine statics #12460 hasezoey

    6.6.2 / 2022-09-26

    • fix(model): avoid deleting shared schema methods in fix for #12254 #12423
    • fix(document): set $inc default value in case field has not been specified on the document #12435 lpizzinidev
    • fix(query): handle select: false on map paths in query results #12467 lpizzinidev
    • fix(types): add HydratedDocumentFromSchema to make it easier to pull inferred hydrated doc type #12464 #12319

    ... (truncated)

    Commits
    • c3e9206 chore: release 6.6.6
    • 7fb5114 Merge pull request #12571 from Automattic/vkarpov15/gh-12518
    • 9133393 Merge pull request #12569 from Automattic/vkarpov15/gh-12480
    • 03f19f5 Merge pull request #12568 from Automattic/vkarpov15/gh-12478
    • 2b8434d fix(update): handle runValidators when using $set on a doc array in discrim...
    • 3141cb6 fix(document): allow creating document with document array and top-level key ...
    • c798368 fix(aggregate): avoid adding extra $match stage if user manually set discri...
    • e519505 Merge pull request #12534 from lpizzinidev/fix-nested-discriminator-key
    • e852d85 docs(populate): add info on using populate transform to set localization para...
    • bf42639 Merge pull request #12560 from lpizzinidev/docs-populate-transform
    • Additional commits viewable in compare view

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 1
  • Bump mongoose from 6.6.0 to 6.8.2

    Bump mongoose from 6.6.0 to 6.8.2

    Bumps mongoose from 6.6.0 to 6.8.2.

    Release notes

    Sourced from mongoose's releases.

    6.8.2 / 2022-12-28

    • fix(schema): propagate strictQuery to implicitly created schemas for embedded discriminators #12827 #12796
    • fix(model): respect discriminators with Model.validate() #12824 #12621
    • fix(query): fix unexpected validation error when doing findOneAndReplace() with a nullish value #12826 #12821
    • fix(discriminator): apply built-in plugins to discriminator schema even if mergeHooks and mergePlugins are both false #12833 #12696
    • fix(types): add option "overwriteModels" as a schema option #12817 #12816 hasezoey
    • fix(types): add property "defaultOptions" #12818 hasezoey
    • docs: make search bar respect documentation version, so you can search 5.x docs #12548
    • docs(typescript): make note about recommending strict mode when using auto typed schemas #12825 #12420
    • docs: add section on sorting to query docs #12588 IslandRhythms
    • test(query.test): add write-concern option #12829 hasezoey

    6.8.1 / 2022-12-19

    • fix(query): avoid throwing circular dependency error if same object is used in multiple properties #12774 orgads
    • fix(map): return value from super.delete() #12777 danbrud
    • fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result #12815 #12730
    • fix(update): handle embedded discriminators when casting array filters #12802 #12565
    • fix(populate): avoid calling transform if there's no populate results and using lean #12804 #12739
    • fix(model): prevent index creation on syncIndexes if not necessary #12785 #12250 lpizzinidev
    • fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } #12778
    • fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false #12784 JavaScriptBach
    • docs: replace many occurrences of "localhost" with "127.0.0.1" #12811 #12741 hasezoey SadiqOnGithub
    • docs(mongoose): Added missing options to set #12810 lpizzinidev
    • docs: add info on $locals parameters to getters/setters tutorial #12814 #12550 IslandRhythms
    • docs: make Document.prototype.$clone() public #12803
    • docs(query): updated explanation for slice #12776 #12474 lpizzinidev
    • docs(middleware): fix broken links #12787 lpizzinidev
    • docs(queries): fixed broken links #12790 lpizzinidev

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595

    ... (truncated)

    Changelog

    Sourced from mongoose's changelog.

    6.8.2 / 2022-12-28

    • fix(schema): propagate strictQuery to implicitly created schemas for embedded discriminators #12827 #12796
    • fix(model): respect discriminators with Model.validate() #12824 #12621
    • fix(query): fix unexpected validation error when doing findOneAndReplace() with a nullish value #12826 #12821
    • fix(discriminator): apply built-in plugins to discriminator schema even if mergeHooks and mergePlugins are both false #12833 #12696
    • fix(types): add option "overwriteModels" as a schema option #12817 #12816 hasezoey
    • fix(types): add property "defaultOptions" #12818 hasezoey
    • docs: make search bar respect documentation version, so you can search 5.x docs #12548
    • docs(typescript): make note about recommending strict mode when using auto typed schemas #12825 #12420
    • docs: add section on sorting to query docs #12588 IslandRhythms
    • test(query.test): add write-concern option #12829 hasezoey

    6.8.1 / 2022-12-19

    • fix(query): avoid throwing circular dependency error if same object is used in multiple properties #12774 orgads
    • fix(map): return value from super.delete() #12777 danbrud
    • fix(populate): handle virtual populate underneath document array with justOne=true and sort set where 1 element has only 1 result #12815 #12730
    • fix(update): handle embedded discriminators when casting array filters #12802 #12565
    • fix(populate): avoid calling transform if there's no populate results and using lean #12804 #12739
    • fix(model): prevent index creation on syncIndexes if not necessary #12785 #12250 lpizzinidev
    • fix(types): correctly infer this when using pre('updateOne') with { document: true, query: false } #12778
    • fix(types): make InferSchemaType: consider { required: boolean } required if it isn't explicitly false #12784 JavaScriptBach
    • docs: replace many occurrences of "localhost" with "127.0.0.1" #12811 #12741 hasezoey SadiqOnGithub
    • docs(mongoose): Added missing options to set #12810 lpizzinidev
    • docs: add info on $locals parameters to getters/setters tutorial #12814 #12550 IslandRhythms
    • docs: make Document.prototype.$clone() public #12803
    • docs(query): updated explanation for slice #12776 #12474 lpizzinidev
    • docs(middleware): fix broken links #12787 lpizzinidev
    • docs(queries): fixed broken links #12790 lpizzinidev

    6.8.0 / 2022-12-05

    6.7.5 / 2022-11-30

    • fix(schema): copy indexes when calling add() with schema instance #12737 #12654
    • fix(query): handle deselecting _id when another field has schema-level select: false #12736 #12670
    • fix(types): support using UpdateQuery in bulkWrite() #12742 #12595

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
  • Bump discord.js from 14.3.0 to 14.7.1

    Bump discord.js from 14.3.0 to 14.7.1

    Bumps discord.js from 14.3.0 to 14.7.1.

    Release notes

    Sourced from discord.js's releases.

    14.7.1

    Bug Fixes

    14.7.0

    Bug Fixes

    • MessageMentions: Add InGuild generic (#8828) (f982803)
    • Activity: Fix equals() not checking for differing emoji (#8841) (7e06f68)
    • Fixed react/astro/guide/discord.js build, updated dependencies, fix crawlvatar (#8861) (d0c8256)
    • escapeMarkdown: Fix double escaping (#8798) (d6873b7)
    • Transfomers: Call .toJSON in toSnakeCase (#8790) (017f9b1)
    • Censor token in debug output (#8764) (53d8e87)
    • Pin @​types/node version (9d8179c)

    Documentation

    Features

    Refactor

    • Embed: Use embedLength function from builders (#8735) (cb3826c)

    14.6.0

    Bug Fixes

    • ClientOptions: Make ClientOptions#intents returns an IntentsBitField (#8617) (4c2955a)
    • Correctly construct a builder (#8727) (e548e6a)
    • Components: Error with unknown components (#8724) (6fd331d)
    • Client: Don't auth for webhook fetches with token (#8709) (01d75c8)

    ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    dependencies 
    opened by dependabot[bot] 0
Owner
Gonz
idk if I need to describe myself or something else
Gonz
A simple easy-to-use database, built for beginners.

ByteDatabase: Built for Beginners Table of Content Features Installation Changelog Quick Examples Contributors Features Persistent Storage: Data store

CloudTeam 9 Nov 20, 2022
This API can be use to all developers to get location details of Sri Lanka 🇱🇰 including major cities, sub areas, districts and Provinces. ⛳️

Location Data API - Sri Lanka Table of Contents Introduction Technologies Implemantations Hosting Use Cases Getting Started Project Setup Contributing

Pasindu Senarathne 35 Jun 29, 2022
🔥 Dreamy-db - A Powerful database for storing, accessing, and managing multiple database.

Dreamy-db About Dreamy-db - A Powerful database for storing, accessing, and managing multiple databases. A powerful node.js module that allows you to

Dreamy Developer 24 Dec 22, 2022
DolphinDB JavaScript API is a JavaScript library that encapsulates the ability to operate the DolphinDB database, such as: connecting to the database, executing scripts, calling functions, uploading variables, etc.

DolphinDB JavaScript API English | 中文 Overview DolphinDB JavaScript API is a JavaScript library that encapsulates the ability to operate the DolphinDB

DolphinDB 6 Dec 12, 2022
Burger builder project using React, Hooks and Context API.

Burger Builder In this project, I made a context-api project by creating hamburgers with 3 different materials. Project setup npm install Project star

Efecan Pınar 4 Jun 17, 2021
A JSON Database that saves your Json data in a file and makes it easy for you to perform CRUD operations.

What is dbcopycat A JSON Database that saves your Json data in a file and makes it easy for you to perform CRUD operations. ⚡️ Abilities Creates the f

İsmail Can Karataş 13 Jan 8, 2023
open source ffxiv community discord bot that's incredibly easy to self-host

Venat Venat is an open-source Discord bot for the Final Fantasy XIV community that is incredibly easy to self-host. Description We aim to offer the fo

The Convocation 16 Jun 9, 2022
⛰ "core" is the core component package of vodyani, providing easy-to-use methods and AOP implementations.

Vodyani core ⛰ "core" is the core component package of vodyani, providing easy-to-use methods and AOP implementations. Installation npm install @vodya

Vodyani 25 Oct 18, 2022
Fast File is a quick and easy-to-use library to convert data sources to a variety of options.

Fast File Converter The Express.js's Fast File Converter Library Fast File Converter Library is a quick and easy-to-use library to convert data source

Ali Amjad 25 Nov 16, 2022
An easy-to-use multi SQL dialect ORM tool for Node.js

Sequelize Sequelize is a promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite and Microsoft SQL Server. It features solid transaction s

Sequelize 27.3k Jan 4, 2023
A proposal to add modern, easy to use binary encoders to the web platform.

proposal-binary-encoding A proposal to add modern, easy to use binary encoders to the web platform. This is proposed as an addition to the HTML spec,

Luca Casonato 35 Nov 27, 2022
graphql-codegen plugin to generate type-safe, easy-to use hooks for Flutter

graphql-codegen-flutter-artemis-hooks This is graphql-codegen plugin to generate type-safe, easy-to use Flutter artemis hooks. For further detail, see

seya 18 Jan 2, 2023
AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.

Please use version 1.x as prior versions has a security flaw if you use user generated data to concat your SQL strings instead of providing them as a

Andrey Gershun 6.1k Jan 9, 2023
Senior Design Project. Water intake tracker. Software for the communication to bottle and app. Software for app and database

WaterMate Senior Design Project. Water intake tracker to provide everyone with an easy to use water tracking system that can be integrated with your f

null 3 Nov 10, 2021
Fast and advanced, document based and key-value based NoSQL database that able to work as it is installed.

About Fast and advanced, document based and key-value based NoSQL database that able to work as it is installed. Features NoSQL database Can be run as

null 6 Dec 7, 2022
Fast and advanced, document-based and key-value-based NoSQL database.

Contents About Features Installation Links About Fast and advanced, document-based and key-value-based NoSQL database. Features NoSQL database Can be

null 6 Dec 7, 2022
⚡️ lowdb is a small local JSON database powered by Lodash (supports Node, Electron and the browser)

Lowdb Small JSON database for Node, Electron and the browser. Powered by Lodash. ⚡ db.get('posts') .push({ id: 1, title: 'lowdb is awesome'}) .wri

null 18.9k Dec 30, 2022
Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database!

PostGraphile Instant lightning-fast GraphQL API backed primarily by your PostgreSQL database. Highly customisable and extensible thanks to incredibly

Graphile 11.7k Jan 4, 2023
🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️

A reactive database framework Build powerful React and React Native apps that scale from hundreds to tens of thousands of records and remain fast ⚡️ W

Nozbe 8.8k Jan 5, 2023