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

Commits on Nov 6, 2017

  1. Copy the full SHA
    42bcb34 View commit details
  2. Copy the full SHA
    da2cdd0 View commit details

Commits on Nov 7, 2017

  1. Copy the full SHA
    a928bd3 View commit details
  2. Copy the full SHA
    dda165e View commit details
  3. Copy the full SHA
    8d1e12b View commit details
  4. Copy the full SHA
    08258d3 View commit details

Commits on Nov 13, 2017

  1. Copy the full SHA
    22776c3 View commit details
  2. Copy the full SHA
    f2e8659 View commit details
  3. Copy the full SHA
    8ce7060 View commit details
  4. Copy the full SHA
    e633c3f View commit details
  5. Copy the full SHA
    63f3164 View commit details
  6. Copy the full SHA
    b653fd7 View commit details
  7. style: lint fixes

    vkarpov15 committed Nov 13, 2017
    Copy the full SHA
    6056de4 View commit details

Commits on Nov 15, 2017

  1. Copy the full SHA
    42c2c1b View commit details
  2. docs: add migration notes

    vkarpov15 committed Nov 15, 2017
    Copy the full SHA
    c65b789 View commit details

Commits on Nov 16, 2017

  1. Copy the full SHA
    e67ab67 View commit details
  2. test: fix tests

    vkarpov15 committed Nov 16, 2017
    Copy the full SHA
    c766793 View commit details
  3. style: fix lint re: #5791

    vkarpov15 committed Nov 16, 2017
    Copy the full SHA
    f60dbc1 View commit details
  4. Copy the full SHA
    6a97e03 View commit details
  5. Copy the full SHA
    95aca8e View commit details
  6. Copy the full SHA
    d2ed0aa View commit details
  7. docs: add note re #5796

    vkarpov15 committed Nov 16, 2017
    Copy the full SHA
    b07867a View commit details
  8. Copy the full SHA
    8983671 View commit details
  9. style: fix lint

    vkarpov15 committed Nov 16, 2017
    Copy the full SHA
    d9258ac View commit details

Commits on Nov 20, 2017

  1. BREAKING CHANGE: remove legacy async validator support, and support c…

    …ustom error messages via `throw new Error()`
    
    Fix #5824
    vkarpov15 committed Nov 20, 2017
    Copy the full SHA
    19e3b79 View commit details

Commits on Nov 22, 2017

  1. Copy the full SHA
    d385baa View commit details
  2. Copy the full SHA
    de8819b View commit details
  3. Copy the full SHA
    632f8a7 View commit details
  4. style: fix lint

    vkarpov15 committed Nov 22, 2017
    Copy the full SHA
    b27b831 View commit details

Commits on Nov 23, 2017

  1. chore: bump lockfile

    vkarpov15 committed Nov 23, 2017
    Copy the full SHA
    b29a84a View commit details
  2. Merge pull request #5815 from Automattic/5791

    Use mongodb driver 3.0.0
    vkarpov15 authored Nov 23, 2017
    Copy the full SHA
    0520ffa View commit details
  3. Copy the full SHA
    964ad97 View commit details
  4. test: fix tests re: #5824

    vkarpov15 committed Nov 23, 2017
    Copy the full SHA
    953359b View commit details
  5. Merge pull request #5838 from Automattic/5824

    Remove legacy async validator support, and support custom error messages via `throw new Error()`
    vkarpov15 authored Nov 23, 2017
    Copy the full SHA
    5536cb1 View commit details

Commits on Nov 25, 2017

  1. Copy the full SHA
    8e771f7 View commit details
  2. Copy the full SHA
    bb41fd3 View commit details

Commits on Nov 26, 2017

  1. Copy the full SHA
    2304a69 View commit details
  2. Copy the full SHA
    5a6ce20 View commit details
  3. Copy the full SHA
    9a2e325 View commit details
  4. docs: add note re: #4835

    vkarpov15 committed Nov 26, 2017
    Copy the full SHA
    264ae6f View commit details
  5. Copy the full SHA
    22b5b4f View commit details

Commits on Nov 30, 2017

  1. Copy the full SHA
    469cab3 View commit details
  2. chore: fix build

    vkarpov15 committed Nov 30, 2017
    Copy the full SHA
    ef25d0c View commit details
  3. Copy the full SHA
    cc4c959 View commit details
  4. chore: bump lockfile

    vkarpov15 committed Nov 30, 2017
    Copy the full SHA
    49ac126 View commit details
  5. style: fix lint

    vkarpov15 committed Nov 30, 2017
    Copy the full SHA
    b0c94a3 View commit details

Commits on Dec 3, 2017

  1. Copy the full SHA
    7d329a8 View commit details
  2. Copy the full SHA
    197371f View commit details
  3. style: fix lint

    vkarpov15 committed Dec 3, 2017
    Copy the full SHA
    dacf3f0 View commit details
  4. chore: bump lockfile

    vkarpov15 committed Dec 3, 2017
    Copy the full SHA
    e4ecd28 View commit details
Showing 356 changed files with 29,355 additions and 85,024 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -4,3 +4,5 @@ test/triage/
test/model.discriminator.test.js
tools/
test/es6/
test/files/
dist/
31 changes: 0 additions & 31 deletions .eslintrc.yml

This file was deleted.

9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -18,6 +18,7 @@ bin/mongoose.min.js
coverage
npm-debug.log
data/
.nyc_output/

tools/31*

@@ -28,9 +29,15 @@ tools/31*
*.njsproj
*.sln

# Visual STudio Code
# Visual Studio Code
.vscode

*.key

docs/*.html

# Webpack output
dist
test/files/main.js

package-lock.json
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -17,3 +17,7 @@ format_deps.js
tools/31*
*.key
data/
dist/

*.txt
*.png
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
language: node_js
sudo: false
node_js:
- "10"
- "9"
- "8"
- "7"
- "6"
- "5"
- "4"
- "0.12"
- "0.10"
- "iojs"
before_script:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.11.tgz
- tar -zxvf mongodb-linux-x86_64-2.6.11.tgz
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.4.tgz
- tar -zxvf mongodb-linux-x86_64-3.6.4.tgz
- mkdir -p ./data/db/27017
- mkdir -p ./data/db/27000
- ./mongodb-linux-x86_64-2.6.11/bin/mongod --fork --nopreallocj --dbpath ./data/db/27017 --syslog --port 27017
- ./mongodb-linux-x86_64-3.6.4/bin/mongod --fork --nopreallocj --dbpath ./data/db/27017 --syslog --port 27017
script:
- npm test
- npm run lint
- npm run nsp
notifications:
email: false
33 changes: 31 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ If you have a question about Mongoose (not a bug report) please post it to eithe
code.
- If the bug involves an error, please post the stack trace.
- Please post the version of mongoose and mongodb that you're using.
- Please write bug reports in JavaScript (ES5 or ES2015), not coffeescript, typescript, etc.
 - Please write bug reports in JavaScript (ES5, ES6, etc) that runs in Node.js, not coffeescript, typescript, etc.

### Requesting new features

@@ -37,7 +37,7 @@ If you have a question about Mongoose (not a bug report) please post it to eithe
### Running the tests
- Open a terminal and navigate to the root of the project
- execute `npm install` to install the necessary dependencies
- start a mongodb instance on port 27017 if one isn't running already. `mongod --dbpath <path to store data> --port 27017`
- start a mongodb instance on port 27017 if one isn't running already. `mongod --dbpath <path to store data> --port 27017 --storageEngine mmapv1`. Mongoose tests run much faster on the mmapv1 storage engine as opposed to the WiredTiger storage engine.
- execute `npm test` to run the tests (we're using [mocha](http://mochajs.org/))
- or to execute a single test `npm test -- -g 'some regexp that matches the test description'`
- any mocha flags can be specified with `-- <mocha flags here>`
@@ -60,3 +60,32 @@ Visit `http://localhost:8088` and you should see the docs with your local change
### Plugins website

The [plugins](http://plugins.mongoosejs.io/) site is also an [open source project](https://github.com/vkarpov15/mongooseplugins) that you can get involved with. Feel free to fork and improve it as well!


## Financial contributions

We also welcome financial contributions in full transparency on our [open collective](https://opencollective.com/mongoose).
Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.


## Credits


### Contributors

Thank you to all the people who have already contributed to mongoose!
<a href="graphs/contributors"><img src="https://opencollective.com/mongoose/contributors.svg?width=890" /></a>


### Backers

Thank you to all our backers! [[Become a backer](https://opencollective.com/mongoose#backer)]

<a href="https://opencollective.com/mongoose#backers" target="_blank"><img src="https://opencollective.com/mongoose/backers.svg?width=890"></a>


### Sponsors

Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/mongoose#sponsor))

<a href="https://mixmax.com" target="_blank"><img src="http://mongoosejs.com/docs/images/mixmax.png"></a>
Loading