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

Commits on Feb 8, 2022

  1. Copy the full SHA
    05ce577 View commit details

Commits on Feb 9, 2022

  1. initial

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    2582959 View commit details
  2. fix linting issues

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    4b1e8e8 View commit details
  3. fix linter error

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    d330145 View commit details
  4. Copy the full SHA
    f0ab5c8 View commit details
  5. Text Expression Operators

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    d0f466f View commit details
  6. Copy the full SHA
    fdada6b View commit details
  7. add comment

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    0291e9b View commit details
  8. add version info

    Uzlopak committed Feb 9, 2022
    Copy the full SHA
    c667b50 View commit details
  9. Copy the full SHA
    519c314 View commit details

Commits on Feb 10, 2022

  1. add DateExpressionOperators

    Uzlopak committed Feb 10, 2022
    Copy the full SHA
    742c951 View commit details
  2. add boolean and comparison

    Uzlopak committed Feb 10, 2022
    Copy the full SHA
    e2d1e6a View commit details
  3. Copy the full SHA
    29a8837 View commit details
  4. add ArrayExpression

    Uzlopak committed Feb 10, 2022
    Copy the full SHA
    a8f26b4 View commit details
  5. some minor changes

    Uzlopak committed Feb 10, 2022
    Copy the full SHA
    a17370e View commit details
  6. add StringExpressionOperators

    Uzlopak committed Feb 10, 2022
    Copy the full SHA
    ebcad04 View commit details

Commits on Feb 13, 2022

  1. Merge pull request #11366 from laissonsilveira/5.x

    Broken link from findandmodify method deprecation
    vkarpov15 authored Feb 13, 2022
    Copy the full SHA
    a2ec28d View commit details

Commits on Feb 16, 2022

  1. Copy the full SHA
    40acd28 View commit details

Commits on Apr 16, 2022

  1. Added support for cleanAndClose connections from memory

    Omkar Hirve authored and Omkar Hirve committed Apr 16, 2022
    Copy the full SHA
    9afcb1c View commit details
  2. Made sure to check for undefined, removed strict check

    Co-authored-by: Hafez <a.hafez852@gmail.com>
    OmkarHirve and AbdelrahmanHafez authored Apr 16, 2022
    Copy the full SHA
    dc8c589 View commit details

Commits on Apr 18, 2022

  1. Added unit test, method definition and fixed lint issues

    Omkar Hirve authored and Omkar Hirve committed Apr 18, 2022
    Copy the full SHA
    7025c0a View commit details

Commits on Apr 23, 2022

  1. Added support for throwing error if openUri is called on cleaned conn…

    …ection
    Omkar Hirve authored and Omkar Hirve committed Apr 23, 2022
    Copy the full SHA
    623efdf View commit details
  2. Copy the full SHA
    c28abdd View commit details
  3. restored stub after use

    Omkar Hirve authored and Omkar Hirve committed Apr 23, 2022
    Copy the full SHA
    dbcf0dc View commit details

Commits on Apr 29, 2022

  1. Created a 'destroy' method to clear conns

    Omkar Hirve authored and Omkar Hirve committed Apr 29, 2022
    Copy the full SHA
    8fa8fec View commit details
  2. Copy the full SHA
    946d97f View commit details

Commits on May 2, 2022

  1. refactor documentation

    Uzlopak committed May 2, 2022
    Copy the full SHA
    d8cb1d9 View commit details
  2. Copy the full SHA
    a880d86 View commit details
  3. Copy the full SHA
    2d19ae7 View commit details
  4. fix workflow

    Uzlopak committed May 2, 2022
    Copy the full SHA
    92f9bf4 View commit details
  5. Update release-items.md

    Co-authored-by: Hafez <a.hafez852@gmail.com>
    Uzlopak and AbdelrahmanHafez authored May 2, 2022
    Copy the full SHA
    a0e0e6b View commit details
  6. Copy the full SHA
    a2ccd1d View commit details
  7. Copy the full SHA
    0043feb View commit details
  8. remove releases

    Uzlopak committed May 2, 2022
    Copy the full SHA
    7e722e1 View commit details
  9. add stale action

    Uzlopak committed May 2, 2022
    Copy the full SHA
    848d783 View commit details
  10. Update .github/workflows/stale.yml

    Co-authored-by: Valeri Karpov <val@karpov.io>
    Uzlopak and vkarpov15 authored May 2, 2022
    Copy the full SHA
    00a664b View commit details
  11. Update .github/workflows/stale.yml

    Co-authored-by: Valeri Karpov <val@karpov.io>
    Uzlopak and vkarpov15 authored May 2, 2022
    Copy the full SHA
    3309dad View commit details
  12. Merge pull request #11753 from Uzlopak/stale-action

    add stale action
    vkarpov15 authored May 2, 2022
    Copy the full SHA
    3306233 View commit details
  13. Copy the full SHA
    ec3f16c View commit details

Commits on May 3, 2022

  1. Merge pull request #11751 from Uzlopak/docs-refactor

    refactor documentation
    vkarpov15 authored May 3, 2022
    Copy the full SHA
    801565c View commit details
  2. fix: correctly cast $not in $expr

    Fix #11689
    vkarpov15 committed May 3, 2022
    Copy the full SHA
    fa8d279 View commit details
  3. Copy the full SHA
    c22152c View commit details
  4. Update test/connection.test.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    c925d3b View commit details
  5. Update test/connection.test.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    bc45714 View commit details
  6. Update lib/connection.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    bbe3bb7 View commit details
  7. Update lib/connection.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    c665c4e View commit details
  8. Update lib/connection.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    aa5f934 View commit details
  9. Update lib/connection.js

    Co-authored-by: Uzlopak <aras.abbasi@googlemail.com>
    OmkarHirve and Uzlopak authored May 3, 2022
    Copy the full SHA
    227c15f View commit details
  10. Copy the full SHA
    16df6f6 View commit details
  11. remove dead code

    Uzlopak committed May 3, 2022
    Copy the full SHA
    7b3f3ca View commit details
Showing 1,145 changed files with 50,584 additions and 224,877 deletions.
239 changes: 239 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
'use strict';

module.exports = {
extends: [
'eslint:recommended'
],
ignorePatterns: [
'tools',
'dist',
'website.js',
'test/files/*',
'benchmarks',
'*.min.js',
'**/docs/js/native.js',
'!.*',
'node_modules',
'.git'
],
overrides: [
{
files: [
'**/*.{ts,tsx}',
'**/*.md/*.ts',
'**/*.md/*.typescript'
],
parserOptions: {
project: './tsconfig.json'
},
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,
es2020: 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 }]
}
};
Loading