Skip to content

Commit

Permalink
Prepare 5.0 release (florianholzapfel#358)
Browse files Browse the repository at this point in the history
* refactor(core): remove parsing of ~, >, >=, <, <=, != and == operators (florianholzapfel#357)

* refactor(core): store query in req.erm.query (florianholzapfel#356)

* fix(core): remove next from postProcess (florianholzapfel#361)

* fix(core): skip & limit must be valid integers (florianholzapfel#366)

* refactor(core): allow client provided _id (florianholzapfel#367)

* chore(misc): add .vscode to gitignore

* chore(test): add node 9

* chore(deps): update async, ensure-array & express

* chore(deps): remove async

* chore(docs): update changelog (5.0.0)

* chore(deps): update weedout

* chore(deps): update moredots

* chore(deps): update mongoose-detective

* chore(deps): drop support for Node 4, add 10

* chore(deps): update

* chore(deps): add package-lock

* chore(docs): drop node 4, add 10

* chore(deps): replace standard with eslint+prettier

* chore(deps): add eslint
  • Loading branch information
Zertz authored Jun 10, 2018
1 parent babf0ef commit a133e8e
Show file tree
Hide file tree
Showing 25 changed files with 4,003 additions and 822 deletions.
6 changes: 6 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 6
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ tmp
node_modules
npm-debug.log
/.idea
/.vscode
nbproject
coverage
.DS_Store
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 1000000,
"semi": false,
"singleQuote": true
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: node_js
node_js:
- "4"
- "6"
- "8"
- "10"
services:
- "mongodb"
sudo: false
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
Changelog
=========

### 5.0.0

* dropped support for Node 4 and added support for Node 10
* removed query operator parsing [#285](https://github.com/florianholzapfel/express-restify-mongoose/issues/285)
* moved request query in req.erm.query [#299](https://github.com/florianholzapfel/express-restify-mongoose/issues/299) [#353](https://github.com/florianholzapfel/express-restify-mongoose/issues/353)
* removed `next` from postProcess [#334](https://github.com/florianholzapfel/express-restify-mongoose/issues/334)
* added error when skip and/or limit is not a valid integer
* removed `_id` tinkering [#326](https://github.com/florianholzapfel/express-restify-mongoose/issues/326)
* removed dependency on `async`

### 4.3.0

* added support for async `outputFn` by returning a Promise

### 4.2.2

* removed dependency on lodash, use specific modules and native methods when possible [#352](https://github.com/florianholzapfel/express-restify-mongoose/pull/352)
* removed dependency on `lodash`, use specific modules and native methods when possible [#352](https://github.com/florianholzapfel/express-restify-mongoose/pull/352)

### 4.2.1

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Easily create a flexible REST interface for mongoose models.
[![Coverage Status](https://coveralls.io/repos/florianholzapfel/express-restify-mongoose/badge.svg?branch=master&service=github)](https://coveralls.io/github/florianholzapfel/express-restify-mongoose?branch=master)
[![NPM version](https://badge.fury.io/js/express-restify-mongoose.png)](http://badge.fury.io/js/express-restify-mongoose)
[![Dependencies](https://david-dm.org/florianholzapfel/express-restify-mongoose.png)](https://david-dm.org/florianholzapfel/express-restify-mongoose)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)

## Getting started

Expand Down
11 changes: 7 additions & 4 deletions examples/invoicing.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ var mongoose = require('mongoose')
var Schema = mongoose.Schema
var restify = require('..')

mongoose.connect('mongodb://localhost/database', {
useMongoClient: true
})
mongoose.connect(
'mongodb://localhost/database',
{
useMongoClient: true
}
)

var Customer = new Schema({
name: { type: String, required: true },
Expand All @@ -29,6 +32,6 @@ app.use(methodOverride('X-HTTP-Method-Override'))
restify.serve(app, CustomerModel)
restify.serve(app, InvoiceModel)

http.createServer(app).listen(3000, function () {
http.createServer(app).listen(3000, function() {
console.log('Express server listening on port 3000')
})
Loading

0 comments on commit a133e8e

Please sign in to comment.