Skip to content

Latest commit

 

History

History
233 lines (121 loc) · 9.03 KB

CHANGELOG.md

File metadata and controls

233 lines (121 loc) · 9.03 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

5.0.1 (2024-07-25)

Bug Fixes

5.0.0 (2022-03-12)

⚠ BREAKING CHANGES

  • 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.

Bug Fixes

  • 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)

Bug Fixes

  • remove ctx from error after running error handler (#58) (102b730)

4.3.0 (2021-11-03)

Features

  • types: add types for the module configuration and api (#37) (6105698)

Bug Fixes

  • 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)

Bug Fixes

  • remove unused "config" dependency (#13) (7f7431a)

4.2.0 (2020-07-10)

Features

  • 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)

Features

Bug Fixes

  • issue #10: Promise.catch() in plugins.api.template.js (2b7f053), closes #10
  • fix middleware handler not being sequencially ran

Refactor

  • add action middleware into Controller.ROUTES[middleware].middleware (deprecated from old way Controller.MIDDLEWARE) - controller middleware remains the same

Other

  • upgrade dependencies for latest and stable available

4.0.0 (2019-09-09)

Features

  • error handler: pass entire context nuxt object instead of only the error nuxt handler (ce0f598)

BREAKING CHANGES

  • error handler: errorHandler will only have one parameter (of type Error) with the err.ctx object monkey-patched

3.0.2 (2019-07-03)

Bug Fixes

  • 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)

Bug Fixes

  • revert the url.URL change due eslint suggestion (eebdb70)

3.0.0 (2019-03-28)

Feature

  • 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

Bug Fixes

  • convert camelCase controller file name to dash case (for route url's endpoint)

Other

  • upgrade devDependencies (including nuxt)

BREAKING CHANGES

  • 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)

Bug Fixes

  • directory: finally resolving directory alias (293ac70)

2.0.1 (2018-07-19)

Bug Fixes

  • directory: resolve nuxt alias key directory for api (ca9a8d4)

2.0.0 (2018-07-16)

Features

  • middleware: change middleware flow to make it more enrich/error based (db639dd)

Breaking Changes

  • Middlewares changed behaviour to be able to work both client and server side. Check the documentation.

1.3.0 (2018-07-03)

Features

  • feat(clientSideApiHandler): add app object (root vue instance) in clientSideApiHandler param.

1.2.1 (2018-06-12)

Bug Fixes

  • make calls on server and client side arguments uniform. (411ef11)

1.2.0 (2018-06-12)

Features

  • bodyParsers: add body parsers middleware option (using express/body-parsers lib or custom handler). #1 (e9cb273)

1.1.0 (2018-06-06)

Features

  • responseMiddleware: add responseMiddleware (both client and server side) to perform actions to payload, uniformly (b5083b5)

1.0.2 (2018-06-04)

Bug Fixes

  • arguments call of controllers tree functions in client side (dc558b4)

1.0.1 (2018-05-28)

Bug Fixes

  • 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 and fetch 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