All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
5.0.1 (2024-07-25)
5.0.0 (2022-03-12)
- Parsing of params in route paths now uses the path-to-regexp library which is what express.js uses also. Before this change there was no validation of passed path params while now the API call will fail if the params don't match what the route path expects.
- ensure bundled version of path-to-regexp is used (#74) (2ee628b)
- make params matching use express logic (#70) (6f520cd)
4.3.1 (2022-02-07)
4.3.0 (2021-11-03)
- allow using ES imports syntax in the controllers (#15) (3af9aad), closes #12
- support passing options through nuxtNeo property (#33) (77700dc)
4.2.1 (2021-10-25)
4.2.0 (2020-07-10)
- extendRouter: add config to allow to extend router, since middleware doesn't has access to res/next object (e2e6cba)
4.1.0 (2020-06-30)
- issue #10: Promise.catch() in plugins.api.template.js (2b7f053), closes #10
- fix middleware handler not being sequencially ran
- add action middleware into Controller.ROUTES[middleware].middleware (deprecated from old way Controller.MIDDLEWARE) - controller middleware remains the same
- upgrade dependencies for latest and stable available
4.0.0 (2019-09-09)
- error handler: pass entire context nuxt object instead of only the error nuxt handler (ce0f598)
- error handler: errorHandler will only have one parameter (of type Error) with the err.ctx object monkey-patched
3.0.2 (2019-07-03)
- error responses were passed as resolved instead of catched if no errorHandler option was passed, also errorHandler was never passed to the client-side api (07deb3e)
3.0.1 (2019-03-28)
- revert the url.URL change due eslint suggestion (eebdb70)
3.0.0 (2019-03-28)
- support both client and server side success and error handlers
- add nuxt error page function resolver as errorHandler parameter
- add http error classes both on server and client side
- convert camelCase controller file name to dash case (for route url's endpoint)
- upgrade devDependencies (including nuxt)
- responseMiddleware is now called successHandler (successHandler function was removed) (used both on client and server side)
- errorHandler is now a string (file path), instead of a function (used both on client and server side)
- successResponse was renamed to serverSuccessResponse
- errorResponse was renamed to serverErrorResponse
- notFoundRouteResponse was renamed to serverNotFoundRouteResponse
2.0.2 (2018-07-19)
- directory: finally resolving directory alias (293ac70)
2.0.1 (2018-07-19)
- directory: resolve nuxt alias key directory for api (ca9a8d4)
2.0.0 (2018-07-16)
- middleware: change middleware flow to make it more enrich/error based (db639dd)
- Middlewares changed behaviour to be able to work both client and server side. Check the documentation.
1.3.0 (2018-07-03)
- feat(clientSideApiHandler): add app object (root vue instance) in clientSideApiHandler param.
1.2.1 (2018-06-12)
- make calls on server and client side arguments uniform. (411ef11)
1.2.0 (2018-06-12)
- bodyParsers: add body parsers middleware option (using express/body-parsers lib or custom handler). #1 (e9cb273)
1.1.0 (2018-06-06)
- responseMiddleware: add responseMiddleware (both client and server side) to perform actions to payload, uniformly (b5083b5)
1.0.2 (2018-06-04)
- arguments call of controllers tree functions in client side (dc558b4)
1.0.1 (2018-05-28)
- Error response handler handles now the proper error, instead of moving to nuxt error handling. (17b1974)
- Fixed docs basic-usage.md (add two 'export default' on client side api handler example) (ba06cdf)
1.0.0 (2018-05-28)
- Removed Services Module
- Removed submodules configuration.
- This package will take care only of the API initialization and access both from client and server side
- Updated documentation
0.0.4 (2018-05-26)
- Services are disabled by default
- Removed
asyncData
andfetch
helpers (now vue js root instance has $api injected (a.k.a app key)) - Controller tree is generated on every request
- Updated documentation
0.0.3 (2018-05-14)
- Minor updates.
0.0.2 (2018-05-14)
- Minor updates. Documentation.
0.0.1 (2018-05-12)
- First release