From e464c5d1aaaa196be3e3db338d8139a9c11d4cef Mon Sep 17 00:00:00 2001 From: David Luecke Date: Tue, 2 Jan 2018 10:45:56 -0800 Subject: [PATCH 1/4] Updating changelog --- changelog.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/changelog.md b/changelog.md index e7f8653596..eaca135d1c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,13 @@ # Change Log +## [v3.0.3](https://github.com/feathersjs/feathers/tree/v3.0.3) (2018-01-02) +[Full Changelog](https://github.com/feathersjs/feathers/compare/v3.0.2...v3.0.3) + +**Merged pull requests:** + +- Properly resolve the promise in error hooks if returnHook is set. [\#769](https://github.com/feathersjs/feathers/pull/769) ([daffl](https://github.com/daffl)) +- Update semistandard to the latest version 🚀 [\#768](https://github.com/feathersjs/feathers/pull/768) ([greenkeeper[bot]](https://github.com/apps/greenkeeper)) + ## [v3.0.2](https://github.com/feathersjs/feathers/tree/v3.0.2) (2017-12-05) [Full Changelog](https://github.com/feathersjs/feathers/compare/v3.0.1...v3.0.2) From 9409e98daf66dc0ae6e50d09c857540f40ed3551 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Wed, 3 Jan 2018 12:25:15 -0800 Subject: [PATCH 2/4] Update Readme to correspond with latest release (#772) --- readme.md | 52 ++++++++++++++++++++++------------------------------ 1 file changed, 22 insertions(+), 30 deletions(-) diff --git a/readme.md b/readme.md index b7ecbbba50..7edd5cb3ec 100644 --- a/readme.md +++ b/readme.md @@ -32,16 +32,13 @@ To learn more about Feathers visit the website at [feathersjs.com](http://feathe Here is all the code you need to create a RESTful, real-time message API that uses an in-memory data store: ```js -// app.js const feathers = require('@feathersjs/feathers'); -const express = require('@feathersjs/express') +const express = require('@feathersjs/express'); const socketio = require('@feathersjs/socketio'); -const handler = require('@feathersjs/errors/handler'); const memory = require('feathers-memory'); -// Create a Feathers application that is also fully compatible -// with an Express app +// Creates an Express compatible Feathers application const app = express(feathers()); // Parse HTTP JSON bodies @@ -52,23 +49,31 @@ app.use(express.urlencoded({ extended: true })); app.configure(express.rest()); // Configure Socket.io real-time APIs app.configure(socketio()); -// Register our memory "messages" service -app.use('/messages', memory()); +// Register a messages service with pagination +app.use('/messages', memory({ + paginate: { + default: 10, + max: 25 + } +})); // Register a nicer error handler than the default Express one -app.use(handler()); -// Start the server -app.listen(3030); +app.use(express.errorHandler()); + +// Add any new real-time connection to the `everybody` channel +app.on('connection', connection => app.channel('everybody').join(connection)); +// Publish all events to the `everybody` channel +app.publish(data => app.channel('everybody')); -// Create a new message on the server -app.service('messages').create({ - text: 'This is a test message' -}); +// Start the server +app.listen(3030).on('listening', () => + console.log('Feathers server listening on localhost:3030') +); ``` Then run ``` -npm install @feathersjs/feathers @feathersjs/express @feathersjs/socketio @feathersjs/errors feathers-memory +npm install @feathersjs/feathers @feathersjs/socketio @feathersjs/express feathers-memory node app ``` @@ -78,25 +83,12 @@ and go to [http://localhost:3030/messages](http://localhost:3030/messages). That The [Feathers docs](http://docs.feathersjs.com) are loaded with awesome stuff and tell you every thing you need to know about using and configuring Feathers. -## Examples - -Each plugin has it's own minimal example in the repo. To see a more complex example go to [feathersjs/feathers-chat](https://github.com/feathersjs/feathers-chat). - ## Security We :heart: the community and take security very seriously. No one wants their app hacked. If you have come across a security concern please [report it responsibly](https://docs.feathersjs.com/security#where-should-i-report-security-issues). Visit the [Security section](https://docs.feathersjs.com/SECURITY.html) of the docs to learn more about how you can make sure your app is secure. -## Long Term Support Schedule - -We are going to be following along with the Node.js long term support cycle. As a result **we have dropped official support for node v0.10, v0.12, and iojs versions**. Feathers still works on those versions but we're not going to ensure it will going forward. - -We will be supporting Node.js v4 until **2018-04-01**. -We will be supporting Node.js v6 until **2019-04-18**. - ## License -[MIT](LICENSE) - -## Authors +Copyright (c) 2018 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors) -[Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors) +Licensed under the [MIT license](LICENSE). From f22e05550768b09f655007e4406a8a54f0a42f14 Mon Sep 17 00:00:00 2001 From: David Luecke Date: Wed, 3 Jan 2018 12:25:40 -0800 Subject: [PATCH 3/4] Updating version --- lib/version.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/version.js b/lib/version.js index aa8507f7bb..2eb653264e 100644 --- a/lib/version.js +++ b/lib/version.js @@ -1 +1 @@ -module.exports = '3.0.3'; +module.exports = '3.0.4'; diff --git a/package.json b/package.json index b6e97c3fd5..13f25a0947 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@feathersjs/feathers", "description": "A REST and realtime API layer for modern applications.", - "version": "3.0.3", + "version": "3.0.4", "homepage": "http://feathersjs.com", "repository": { "type": "git", From 90776c865c4ad5fd486860df583ed9f8d961a6ac Mon Sep 17 00:00:00 2001 From: David Luecke Date: Wed, 3 Jan 2018 12:25:40 -0800 Subject: [PATCH 4/4] 3.0.4 --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 72e4ea20dc..498b8f02d6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@feathersjs/feathers", - "version": "3.0.3", + "version": "3.0.4", "lockfileVersion": 1, "requires": true, "dependencies": {