From 9213805e96c2ec99d8fba743e3093b03a0a6472d Mon Sep 17 00:00:00 2001 From: Pedro Miguel Da Silva Pereira Date: Tue, 3 Jul 2018 14:33:14 +0100 Subject: [PATCH 1/5] docs(changelog): update 1.3.0 release --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed78601..9ce6c97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. See [standa # [1.3.0](https://github.com/ezypeeze/nuxt-neo/compare/v1.2.1...v1.3.0) (2018-07-03) - +* **feat(clientSideApiHandler):** add app object (root vue instance) in clientSideApiHandler param. @@ -72,4 +72,4 @@ All notable changes to this project will be documented in this file. See [standa ## [0.0.1](https://github.com/ezypeeze/nuxt-neo/releases/tag/v0.0.1) (2018-05-12) -* First release \ No newline at end of file +* First release From 279bcdff722c39446a787ae8b19e5aac7d274caf Mon Sep 17 00:00:00 2001 From: Pedro Miguel Da Silva Pereira Date: Tue, 3 Jul 2018 14:34:21 +0100 Subject: [PATCH 2/5] docs(changelog): add missing 'features' in 1.3.0 release notes. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9ce6c97..f5048a1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file. See [standa # [1.3.0](https://github.com/ezypeeze/nuxt-neo/compare/v1.2.1...v1.3.0) (2018-07-03) +### Features * **feat(clientSideApiHandler):** add app object (root vue instance) in clientSideApiHandler param. From 60d94c1ac3327056200c401eb950f55d25ab51a4 Mon Sep 17 00:00:00 2001 From: Pedro Miguel Da Silva Pereira Date: Mon, 16 Jul 2018 16:07:12 +0100 Subject: [PATCH 3/5] Update CHANGELOG.md --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c323ac9..1a8ebf0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ All notable changes to this project will be documented in this file. See [standa * **middleware:** change middleware flow to make it more enrich/error based ([db639dd](https://github.com/ezypeeze/nuxt-neo/commit/db639dd)) +### Breaking Changes +- Middlewares changed behaviour to be able to work both client and server side. Check the documentation. From ca9a8d465cac36471748673a174a99ce7eff15ab Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Thu, 19 Jul 2018 15:47:53 +0100 Subject: [PATCH 4/5] fix(directory): resolve nuxt alias key directory for api --- lib/server_middleware/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/server_middleware/api.js b/lib/server_middleware/api.js index b813cca..2784033 100755 --- a/lib/server_middleware/api.js +++ b/lib/server_middleware/api.js @@ -1,7 +1,7 @@ const express = require('express'); const url = require('url'); const expressBodyParser = require('body-parser'); -const { DEFAULT_PARSER_OPTIONS } = require('../utility/body_parser'); +const { DEFAULT_PARSER_OPTIONS } = require('../utility/body_parser'); const { getControllerFiles, getControllerMiddleware, middlewareHandler, controllerMappingServerSide } = require('../utility/controllers'); /** @@ -91,7 +91,7 @@ function injectBodyParsers(options) { * @param options */ function injectControllers(router, options) { - getControllerFiles(options.directory).forEach(function (path) { + getControllerFiles(options.directory.replace(options.aliasKey, options.srcDir)).forEach(function (path) { const relativePath = path.replace(options.directory, ''); const routePrefix = relativePath.replace(/\/index|\.js/g, ''); From 60a4aab3ae8aa1eac1f3e4b3099031b5ec0f087f Mon Sep 17 00:00:00 2001 From: Pedro Pereira Date: Thu, 19 Jul 2018 15:48:01 +0100 Subject: [PATCH 5/5] chore(release): 2.0.1 --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a8ebf0..125dfae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.0.1](https://github.com/ezypeeze/nuxt-neo/compare/v2.0.0...v2.0.1) (2018-07-19) + + +### Bug Fixes + +* **directory:** resolve nuxt alias key directory for api ([ca9a8d4](https://github.com/ezypeeze/nuxt-neo/commit/ca9a8d4)) + + + # [2.0.0](https://github.com/ezypeeze/nuxt-neo/compare/v1.3.0...v2.0.0) (2018-07-16) diff --git a/package-lock.json b/package-lock.json index 1fbb15d..bb6a8ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nuxt-neo", - "version": "2.0.0", + "version": "2.0.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a68def5..5a8abe2 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-neo", - "version": "2.0.0", + "version": "2.0.1", "description": "A nuxt.js module that implements a universal api layer, same-way compatible between server and client side.", "keywords": [ "nuxt",