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

Commits on Feb 8, 2022

  1. Copy the full SHA
    05ce577 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 Jun 25, 2022

  1. Copy the full SHA
    4a2e65e View commit details
  2. Copy the full SHA
    1ccbed6 View commit details

Commits on Jun 26, 2022

  1. Copy the full SHA
    989525c View commit details
  2. perf(document+internal): put default value for $isNew and `strictMo…

    …de` on prototype to avoid unnecessary memory usage
    
    Re: #11541
    vkarpov15 committed Jun 26, 2022
    Copy the full SHA
    9e05baf View commit details
  3. perf(schema): correctly pull DocumentArrayPath default _id value wh…

    …en creating document array with schema re: #11541
    vkarpov15 committed Jun 26, 2022
    Copy the full SHA
    3a1c821 View commit details

Commits on Jul 6, 2022

  1. feat(model): add applyDefaults() helper that allows applying defaul…

    …ts to document or POJO
    
    Re: #11945
    vkarpov15 committed Jul 6, 2022
    Copy the full SHA
    ae73d8b View commit details
  2. Copy the full SHA
    dd49bc1 View commit details

Commits on Jul 7, 2022

  1. added global id option

    IslandRhythms committed Jul 7, 2022
    Copy the full SHA
    08f1179 View commit details
  2. typo fix

    IslandRhythms committed Jul 7, 2022
    Copy the full SHA
    97a63a4 View commit details

Commits on Jul 8, 2022

  1. Copy the full SHA
    ed5879e View commit details
  2. Copy the full SHA
    6522059 View commit details
  3. Update query.js

    IslandRhythms committed Jul 8, 2022
    Copy the full SHA
    823aad0 View commit details
  4. removed logs

    IslandRhythms committed Jul 8, 2022
    Copy the full SHA
    a1baf67 View commit details
  5. Copy the full SHA
    3e159b6 View commit details
  6. Copy the full SHA
    a0b5ba4 View commit details
  7. Copy the full SHA
    0e813b8 View commit details
  8. Copy the full SHA
    f2d37c2 View commit details
  9. enable failing test

    AbdelrahmanHafez committed Jul 8, 2022
    Copy the full SHA
    1cbe028 View commit details
  10. Copy the full SHA
    399668a View commit details
  11. Copy the full SHA
    f6fd921 View commit details
  12. Copy the full SHA
    056b2e4 View commit details
  13. Copy the full SHA
    b855d5c View commit details

Commits on Jul 11, 2022

  1. Copy the full SHA
    966abe0 View commit details
  2. Copy the full SHA
    3379c3e View commit details
  3. Copy the full SHA
    b4715b5 View commit details
  4. Copy the full SHA
    80c102b View commit details

Commits on Jul 12, 2022

  1. fix: apply suggestion

    Co-authored-by: Hafez <a.hafez852@gmail.com>
    hasezoey and AbdelrahmanHafez authored Jul 12, 2022
    Copy the full SHA
    c08b8c4 View commit details
  2. test: update tests for suggestion

    this updates the test so that "castNonArrays" (property option) overwrites global
    hasezoey committed Jul 12, 2022
    Copy the full SHA
    765e66b View commit details

Commits on Jul 15, 2022

  1. Merge pull request #12090 from hasezoey/castNonArrays

    feat(array): add property option "castNonArrays"
    vkarpov15 authored Jul 15, 2022
    Copy the full SHA
    d97938b View commit details
  2. Update lib/query.js

    Co-authored-by: Hafez <a.hafez852@gmail.com>
    vkarpov15 and AbdelrahmanHafez authored Jul 15, 2022
    Copy the full SHA
    d0d0243 View commit details
  3. Copy the full SHA
    0a88950 View commit details
  4. Copy the full SHA
    0395195 View commit details
  5. Copy the full SHA
    52308e1 View commit details
  6. Copy the full SHA
    486934f View commit details
  7. Copy the full SHA
    f6a3568 View commit details
  8. Copy the full SHA
    91bd1ab View commit details

Commits on Jul 16, 2022

  1. Merge pull request #12082 from Automattic/gh-12059

    feat(model): allow passing `timestamps` option to `Model.bulkSave(...)`
    vkarpov15 authored Jul 16, 2022
    Copy the full SHA
    7187253 View commit details

Commits on Jul 18, 2022

  1. Copy the full SHA
    f4c436a View commit details
  2. Copy the full SHA
    130337d View commit details
  3. Copy the full SHA
    8f4cc45 View commit details
  4. Copy the full SHA
    fa29f3a View commit details
  5. Merge pull request #11988 from Automattic/vkarpov15/gh-11541

    perf(document): avoid creating unnecessary empty objects when creating a state machine
    vkarpov15 authored Jul 18, 2022
    Copy the full SHA
    871a121 View commit details
  6. Copy the full SHA
    e62d0ff View commit details
  7. Copy the full SHA
    b165936 View commit details
  8. Merge pull request #12057 from Automattic/vkarpov15/gh-11945

    feat(model): add `applyDefaults()` helper that allows applying defaults to document or POJO
    vkarpov15 authored Jul 18, 2022
    Copy the full SHA
    1ff55dd View commit details
  9. Copy the full SHA
    9117ff9 View commit details
  10. Copy the full SHA
    34e00fb View commit details
  11. Copy the full SHA
    491521e View commit details
Showing 426 changed files with 16,341 additions and 7,008 deletions.
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 }]
}
};
Loading