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: 87154934f34fcd427eb420c4a1f7abfc77506df6
Choose a base ref
...
head repository: Automattic/mongoose
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: c00a715e97c6437a5ff1a503c2a50ebd0df2ba47
Choose a head ref

Commits on Dec 26, 2021

  1. test: repro #11138

    AbdelrahmanHafez committed Dec 26, 2021
    Copy the full SHA
    27d7684 View commit details
  2. fix(model): make exists return query that resolves to a lean docume…

    …nt or null instead of boolean
    AbdelrahmanHafez committed Dec 26, 2021
    Copy the full SHA
    e506195 View commit details
  3. Copy the full SHA
    bc469c0 View commit details
  4. Revert "test quick fix for splitPath is undefined"

    This reverts commit b41cd1e.
    AbdelrahmanHafez committed Dec 26, 2021
    Copy the full SHA
    d7ee169 View commit details
  5. lint

    AbdelrahmanHafez committed Dec 26, 2021
    Copy the full SHA
    9d9ba67 View commit details

Commits on Dec 29, 2021

  1. Copy the full SHA
    b081569 View commit details

Commits on Dec 30, 2021

  1. Merge pull request #11142 from AbdelrahmanHafez/gh-11138

    fix(model): make exists(...) return lean document with `_id` or `null` instead of boolean
    vkarpov15 authored Dec 30, 2021
    Copy the full SHA
    7c31dc8 View commit details

Commits on Jan 7, 2022

  1. Copy the full SHA
    d206c9f View commit details

Commits on Jan 9, 2022

  1. Copy the full SHA
    ff42635 View commit details
  2. Copy the full SHA
    36c9e6a View commit details
  3. feat(schematype): add validators, path, isRequired to public AP…

    …I and TypeScript types
    
    Fix #11139
    vkarpov15 committed Jan 9, 2022
    Copy the full SHA
    acb1217 View commit details
  4. Update index.d.ts

    Uzlopak authored Jan 9, 2022
    Copy the full SHA
    d66e719 View commit details
  5. Merge pull request #11188 from moritz157/master

    Update mongodb dependency to 4.3.0
    vkarpov15 authored Jan 9, 2022
    Copy the full SHA
    b81a209 View commit details
  6. Merge pull request #11201 from Uzlopak/patch-1

    bulkSave Typings
    vkarpov15 authored Jan 9, 2022
    Copy the full SHA
    94bbf73 View commit details

Commits on Jan 10, 2022

  1. Copy the full SHA
    f33cebf View commit details
  2. Copy the full SHA
    4f9b261 View commit details
  3. Copy the full SHA
    b035a33 View commit details
  4. Add tests

    EugeneKorshenko committed Jan 10, 2022
    Copy the full SHA
    35286d3 View commit details

Commits on Jan 12, 2022

  1. start

    IslandRhythms committed Jan 12, 2022
    Copy the full SHA
    90f843b View commit details

Commits on Jan 13, 2022

  1. Copy the full SHA
    fa0c964 View commit details
  2. test needs work

    IslandRhythms committed Jan 13, 2022
    Copy the full SHA
    e240485 View commit details
  3. needs work

    IslandRhythms committed Jan 13, 2022
    Copy the full SHA
    05281e4 View commit details

Commits on Jan 14, 2022

  1. Copy the full SHA
    006f11b View commit details
  2. linter fix

    IslandRhythms committed Jan 14, 2022
    Copy the full SHA
    5b22456 View commit details
  3. remove log statement

    IslandRhythms committed Jan 14, 2022
    Copy the full SHA
    b674739 View commit details
  4. start

    IslandRhythms committed Jan 14, 2022
    Copy the full SHA
    f04d103 View commit details

Commits on Jan 16, 2022

  1. Copy the full SHA
    63ba06b View commit details

Commits on Jan 17, 2022

  1. made requested changes

    IslandRhythms committed Jan 17, 2022
    Copy the full SHA
    781950e View commit details
  2. linter fix

    IslandRhythms committed Jan 17, 2022
    Copy the full SHA
    5e2dbd6 View commit details
  3. Copy the full SHA
    6b6f6be View commit details

Commits on Jan 18, 2022

  1. Copy the full SHA
    ae630e5 View commit details
  2. Update index.test.js

    IslandRhythms committed Jan 18, 2022
    Copy the full SHA
    0b51032 View commit details
  3. Update index.test.js

    IslandRhythms committed Jan 18, 2022
    Copy the full SHA
    d880d8d View commit details
  4. passes on my machine

    IslandRhythms committed Jan 18, 2022
    Copy the full SHA
    4e0eb89 View commit details
  5. linter fixes

    IslandRhythms committed Jan 18, 2022
    Copy the full SHA
    1bad9ef View commit details

Commits on Jan 19, 2022

  1. Copy the full SHA
    a19ee6e View commit details
  2. Copy the full SHA
    d12d107 View commit details
  3. Copy the full SHA
    16f56af View commit details

Commits on Jan 20, 2022

  1. feat(index.d.ts): add DocType generic param to Model functions that…

    … return queries to better support projections
    
    Fix #11156
    vkarpov15 committed Jan 20, 2022
    Copy the full SHA
    87ee959 View commit details
  2. Copy the full SHA
    ce550cc View commit details
  3. Merge pull request #11210 from EugeneKorshenko/fix/types/projection

    types: Fixes and improves `Query.projection` method signature
    vkarpov15 authored Jan 20, 2022
    Copy the full SHA
    d6898a7 View commit details
  4. Merge pull request #11236 from Uzlopak/replace-ms-with-lukeed

    Replace ms with faster @lukeed/ms
    vkarpov15 authored Jan 20, 2022
    Copy the full SHA
    433af2b View commit details
  5. made a better test

    IslandRhythms committed Jan 20, 2022
    Copy the full SHA
    d9792b3 View commit details
  6. Copy the full SHA
    d53d8f5 View commit details
  7. Merge pull request #11222 from Automattic/syncIndexes-global-option

    Sync indexes global option
    vkarpov15 authored Jan 20, 2022
    Copy the full SHA
    2bd5c56 View commit details

Commits on Jan 21, 2022

  1. Copy the full SHA
    997f9f5 View commit details
  2. Copy the full SHA
    8a96089 View commit details
  3. Copy the full SHA
    616f3e0 View commit details

Commits on Jan 22, 2022

  1. Copy the full SHA
    56691bf View commit details
  2. Copy the full SHA
    fc08d92 View commit details
Showing 1,136 changed files with 39,598 additions and 206,971 deletions.
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

232 changes: 232 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
'use strict';

module.exports = {
extends: [
'eslint:recommended'
],
ignorePatterns: [
'tools',
'dist',
'website.js',
'test/files/*',
'benchmarks',
'*.min.js',
'docs/js/native.js'
],
overrides: [
{
files: [
'**/*.{ts,tsx}',
'**/*.md/*.ts',
'**/*.md/*.typescript'
],
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',
'@typescript-eslint/no-empty-function': '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': [
'warn',
2,
{
SwitchCase: 1,
ignoredNodes: ['TSTypeParameterInstantiation']
}
],
'@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'
}
},
{
files: [
'docs/js/**/*.js'
],
env: {
node: false,
browser: true
}
}
// // eslint-plugin-markdown has been disabled because of out-standing issues, see https://github.com/eslint/eslint-plugin-markdown/issues/214
// {
// files: ['**/*.md'],
// processor: 'markdown/markdown'
// },
// {
// files: ['**/*.md/*.js', '**/*.md/*.javascript', '**/*.md/*.ts', '**/*.md/*.typescript'],
// parserOptions: {
// ecmaFeatures: {
// impliedStrict: true
// },
// sourceType: 'module', // required to allow "import" statements
// ecmaVersion: 'latest' // required to allow top-level await
// },
// rules: {
// 'no-undef': 'off',
// 'no-unused-expressions': 'off',
// 'no-unused-vars': 'off',
// 'no-redeclare': 'off',
// '@typescript-eslint/no-redeclare': 'off'
// }
// }
],
plugins: [
'mocha-no-only'
// 'markdown'
],
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 }]
}
};
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# These are supported funding model platforms

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

This file was deleted.

70 changes: 70 additions & 0 deletions .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
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: input
id: typescript-version
attributes:
label: Typescript version (if applicable)
placeholder: 4.8.x
validations:
required: false

- 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