Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Automattic/mongoose
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5379221370c2006a0c4e449eb5adf23be9f9ea81
Choose a base ref
...
head repository: Automattic/mongoose
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5449ab9e51a779a889b3751416bab1480630b037
Choose a head ref

Commits on Apr 25, 2017

  1. Copy the full SHA
    7bcc172 View commit details

Commits on Jun 9, 2017

  1. schema type boolean: strictBool option added

    c0d0g3n committed Jun 9, 2017
    Copy the full SHA
    e8057f1 View commit details
  2. schema type boolean: strictBool test added

    c0d0g3n committed Jun 9, 2017
    Copy the full SHA
    0fb09d9 View commit details

Commits on Jun 18, 2017

  1. strictBool test rewritten to support Node < 4

    c0d0g3n committed Jun 18, 2017
    Copy the full SHA
    aa6d05a View commit details

Commits on Aug 12, 2017

  1. test(document): repro #5470

    vkarpov15 committed Aug 12, 2017
    Copy the full SHA
    9e97444 View commit details
  2. Copy the full SHA
    14d7ca3 View commit details

Commits on Aug 28, 2017

  1. Copy the full SHA
    2a16f2a View commit details
  2. Copy the full SHA
    6bd3172 View commit details

Commits on Sep 5, 2017

  1. Merge branch 'master' into 4.12

    Conflicts:
    	package.json
    vkarpov15 committed Sep 5, 2017
    Copy the full SHA
    088c855 View commit details
  2. Copy the full SHA
    a55c991 View commit details

Commits on Sep 9, 2017

  1. Merge branch 'master' into 4.12

    Conflicts:
    	lib/model.js
    vkarpov15 committed Sep 9, 2017
    Copy the full SHA
    3955be5 View commit details

Commits on Sep 10, 2017

  1. Copy the full SHA
    6e5e567 View commit details
  2. style: fix lint

    vkarpov15 committed Sep 10, 2017
    Copy the full SHA
    1f29656 View commit details
  3. Merge branch 'master' into 4.12

    Conflicts:
    	package.json
    vkarpov15 committed Sep 10, 2017
    Copy the full SHA
    41f0999 View commit details
  4. Copy the full SHA
    324b4cb View commit details
  5. test: fix tests

    vkarpov15 committed Sep 10, 2017
    Copy the full SHA
    7b0da85 View commit details

Commits on Sep 12, 2017

  1. Copy the full SHA
    52c8b25 View commit details
  2. Copy the full SHA
    e5fd79d View commit details

Commits on Sep 16, 2017

  1. Merge branch 'master' into 4.12

    Conflicts:
    	package-lock.json
    	test/query.test.js
    vkarpov15 committed Sep 16, 2017
    Copy the full SHA
    81b8418 View commit details
  2. Copy the full SHA
    32303d8 View commit details
  3. Copy the full SHA
    5d8b19f View commit details
  4. test(query): repro #5613

    vkarpov15 committed Sep 16, 2017
    Copy the full SHA
    d5e0f23 View commit details
  5. Copy the full SHA
    d4d9ca8 View commit details
  6. Copy the full SHA
    8c39705 View commit details

Commits on Sep 18, 2017

  1. Copy the full SHA
    b2297a3 View commit details

Commits on Sep 19, 2017

  1. Copy the full SHA
    e12a1a3 View commit details

Commits on Sep 20, 2017

  1. chore: bump lockfile

    vkarpov15 committed Sep 20, 2017
    Copy the full SHA
    c790f07 View commit details
  2. test(update): repro #5628

    vkarpov15 committed Sep 20, 2017
    Copy the full SHA
    b428b36 View commit details
  3. Copy the full SHA
    4b41fa0 View commit details
  4. test(model): repro #5631

    vkarpov15 committed Sep 20, 2017
    Copy the full SHA
    5437b59 View commit details
  5. Copy the full SHA
    f1d3330 View commit details

Commits on Sep 21, 2017

  1. Copy the full SHA
    c18da47 View commit details

Commits on Sep 22, 2017

  1. test(model): repro #5635

    vkarpov15 committed Sep 22, 2017
    Copy the full SHA
    d1c3ba1 View commit details
  2. fix(model): ensure class gets combined schema when using class syntax…

    … with discriminators
    
    Fix #5635
    vkarpov15 committed Sep 22, 2017
    Copy the full SHA
    bf28a11 View commit details
  3. style: fix lint

    vkarpov15 committed Sep 22, 2017
    Copy the full SHA
    e9deb60 View commit details
  4. test: fix tests

    vkarpov15 committed Sep 22, 2017
    Copy the full SHA
    9b48cd6 View commit details
  5. Copy the full SHA
    3c82417 View commit details

Commits on May 23, 2019

  1. Copy the full SHA
    eda7cac View commit details
  2. refactor(populate): allow arbitrary options to populate without modif…

    …ying positional args
    
    Re: #6520
    vkarpov15 committed May 23, 2019
    Copy the full SHA
    a33c82e View commit details
  3. test: fix tests re: #6520

    vkarpov15 committed May 23, 2019
    Copy the full SHA
    1efe40b View commit details
  4. test: fix tests re: #6520

    vkarpov15 committed May 23, 2019
    Copy the full SHA
    1897b6a View commit details
  5. feat(populate): support PopulateOptions#connection option to allow …

    …cross-db populate with refPath
    
    Fix #6520
    vkarpov15 committed May 23, 2019
    Copy the full SHA
    4129123 View commit details
  6. Copy the full SHA
    13f8073 View commit details
  7. Copy the full SHA
    baf8cba View commit details
  8. Copy the full SHA
    4d4286b View commit details

Commits on May 25, 2019

  1. Copy the full SHA
    ade5399 View commit details
  2. fix: avoid setting PopulateOptions#model to prevent confusion betwe…

    …en internal `model` and user-specified `model`
    
    Fix #6520
    vkarpov15 committed May 25, 2019
    Copy the full SHA
    e493bc5 View commit details
  3. Copy the full SHA
    2cc022d View commit details

Commits on May 31, 2019

  1. Copy the full SHA
    f14c706 View commit details
  2. Copy the full SHA
    da4688b View commit details
Showing 1,341 changed files with 119,079 additions and 306,615 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

193 changes: 193 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
{
"extends": [
"eslint:recommended"
],
"ignorePatterns": [
"docs",
"tools",
"dist",
"website.js",
"test/files/*",
"benchmarks"
],
"overrides": [
{
"files": [
"**/*.{ts,tsx}"
],
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"spaced-comment": [
"error",
"always",
{
"block": {
"markers": [
"!"
],
"balanced": true
},
"markers": [
"/"
]
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/brace-style": "error",
"@typescript-eslint/no-dupe-class-members": "error",
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/object-curly-spacing": [
"error",
"always"
],
"@typescript-eslint/semi": "error",
"@typescript-eslint/space-before-function-paren": [
"error",
"never"
],
"@typescript-eslint/space-infix-ops": "off"
}
}
],
"plugins": [
"mocha-no-only"
],
"parserOptions": {
"ecmaVersion": 2020
},
"env": {
"node": true,
"es6": true
},
"rules": {
"comma-style": "error",
"indent": [
"error",
2,
{
"SwitchCase": 1,
"VariableDeclarator": 2
}
],
"keyword-spacing": "error",
"no-whitespace-before-property": "error",
"no-buffer-constructor": "warn",
"no-console": "off",
"no-constant-condition": "off",
"no-multi-spaces": "error",
"func-call-spacing": "error",
"no-trailing-spaces": "error",
"no-undef": "error",
"no-unneeded-ternary": "error",
"no-const-assign": "error",
"no-useless-rename": "error",
"no-dupe-keys": "error",
"space-in-parens": [
"error",
"never"
],
"spaced-comment": [
"error",
"always",
{
"block": {
"markers": [
"!"
],
"balanced": true
}
}
],
"key-spacing": [
"error",
{
"beforeColon": false,
"afterColon": true
}
],
"comma-spacing": [
"error",
{
"before": false,
"after": true
}
],
"array-bracket-spacing": 1,
"arrow-spacing": [
"error",
{
"before": true,
"after": true
}
],
"object-curly-spacing": [
"error",
"always"
],
"comma-dangle": [
"error",
"never"
],
"no-unreachable": "error",
"quotes": [
"error",
"single"
],
"quote-props": [
"error",
"as-needed"
],
"semi": "error",
"no-extra-semi": "error",
"semi-spacing": "error",
"no-spaced-func": "error",
"no-throw-literal": "error",
"space-before-blocks": "error",
"space-before-function-paren": [
"error",
"never"
],
"space-infix-ops": "error",
"space-unary-ops": "error",
"no-var": "warn",
"prefer-const": "warn",
"strict": [
"error",
"global"
],
"no-restricted-globals": [
"error",
{
"name": "context",
"message": "Don't use Mocha's global context"
}
],
"no-prototype-builtins": "off",
"mocha-no-only/mocha-no-only": [
"error"
],
"no-empty": "off",
"eol-last": "warn",
"no-multiple-empty-lines": ["warn", { "max": 2 }]
}
}
31 changes: 0 additions & 31 deletions .eslintrc.yml

This file was deleted.

5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

github: mongoosejs
open_collective: mongoose
tidelift: npm/mongoose
12 changes: 0 additions & 12 deletions .github/ISSUE_TEMPLATE.md

This file was deleted.

62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: 🪲 Bug report
description: Create a report to help us improve

body:
- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
options:
- label: I have written a descriptive issue title
required: true
- label: |
I have searched existing issues to ensure the bug has not already been reported
required: true
- type: input
id: mongoose-version
attributes:
label: Mongoose version
placeholder: 6.x.x
validations:
required: true

- type: input
id: node-version
attributes:
label: Node.js version
placeholder: 14.x
validations:
required: true

- type: input
id: mongo-version
attributes:
label: MongoDB server version
placeholder: 5.x
validations:
required: true

- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is.
validations:
required: true

- type: textarea
id: steps-to-reproduce
attributes:
label: Steps to Reproduce
description: |
List of steps, sample code, or a link to code or a project that reproduces the behavior.
Make sure you place a stack trace inside a [code (```) block](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) to avoid linking unrelated issues.
validations:
required: true

- type: textarea
id: expected-behavior
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
documentation:
- name: 📘 Documentation
url: https://mongoosejs.com/docs/guide.html
about: Mongoose Docs
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: 🚀 Feature Proposal
description: Submit a proposal for a new feature
labels: ['enhancement', 'new feature']

body:
- type: checkboxes
id: prerequisites
attributes:
label: Prerequisites
options:
- label: I have written a descriptive issue title
required: true
- label: |
I have searched existing issues to ensure the feature has not already been requested
required: true
- type: textarea
id: proposal
attributes:
label: 🚀 Feature Proposal
description: A clear and concise description of what the feature is.
validations:
required: true

- type: textarea
id: motivation
attributes:
label: Motivation
description: The motivation for the proposal.

- type: textarea
id: example
attributes:
label: Example
description: |
An example for how this feature would be used.
Make sure you place example code inside a [code (```) block](https://docs.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks) to avoid linking unrelated issues.
Loading