Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Latest commit

 

History

History
438 lines (304 loc) · 22.1 KB

CHANGELOG.md

File metadata and controls

438 lines (304 loc) · 22.1 KB

Change Log (@egomobile/http-server)

0.67.0

0.66.0

0.65.3

0.64.2

0.63.1

  • revert to version 0.61.x
  • npm updates

0.62.3

  • add ESM and CommonJS support
  • npm updates
  • (bug-)fixes

0.61.0

0.60.4

0.59.0

0.58.0

0.57.0

  • BREAKING CHANGE: running tests will now execute process.exit(1) by default now on error
  • IHttpServer.test() method will now return a result value now

0.56.2

  • BREAKING CHANGE: running tests will now execute process.exit(0) by default now on success
  • (bug-)fixes

0.55.0

0.54.0

0.53.0

  • name argument of @It() decorator now also supports the following placeholders:
    • {{query}}: list of query parameters
    • {{query-parameter:myQueryParameter}}: submitted value of query parameter myQueryParameter
  • code cleanups and improvements

0.52.0

0.51.3

0.50.2

0.49.1

0.48.3

  • BREAKING CHANGE: replace once() method with on in IHttpServer interface
  • BREAKING CHANGE: ItSettingsOrValidator type has been replaced with ItArgument2
  • improve @It() decorator with additional arguments and type definitions.
  • (bug-)fixes

0.47.2

  • add following placeholders for name argument of @It() decorator:
    • {{parameters}}: list of comma-separated parameter list, example: "param1" = "param1 value", "param2" = "param2 value"
  • (bug-)fixes

0.46.0

  • name argument of @It() decorator now supports templating with the following placeholders:
    • {{body}}: expected body
    • {{header:my-header}}: expected value for header my-header
    • {{parameter:myParameter}}: submitted value of URL parameter myParameter
    • {{status}}: expected HTTP status code
  • can implement / declare multiple tests / test settings in .spec files now
  • add groupIndex and ref props to ITestEventHandlerContext interface
  • add ref prop to ITestSettings interface

0.45.0

0.44.1

0.43.4

  • add loadOpenAPIFiles to IControllerMethodInfo, which can load resources for a Swagger document, organized in .openapi files
  • (bug-)fixes

0.42.2

  • add resourcePath to IControllerMethodInfo, which can load resources for a Swagger document, organized in a strict structure
  • (bug-)fixes

0.41.0

  • BREAKING CHANGE: module requires at least Node 16+ now
  • BREAKING CHANGE: controller files are now sorted the following way:
    • by number of parts, separated by path chars like /
    • then: all directories, starting with @, will be moved to the bottom
    • then: by directory path (case-insensitive)
    • then: all files, starting with @, will be moved to the bottom
    • then: by file name (case-insensitive)
  • add Describe() and It() decorators, that can setup (unit-)tests for controller methods, e.g.
  • implement validateAjv() middleware
  • if Swagger documentation is activated, all endpoints have to be documented by default now ... this behavior can be controlled by new requiresDocumentationEverywhere prop of IControllersOptions interface
  • npm updates
  • code cleanups and improvements
  • (bug-)fixes

0.40.0

0.39.0

0.38.0

0.37.0

  • Swagger documents are validated with openapi-schema-validator module by default now ... this behavior can be changed, updating validate property
  • implement validateWithSwagger() middleware and its representations inside the controller framework, like @GET() or @POST() decorators
  • code cleanups and improvements
  • (bug-)fixes

0.36.1

0.35.2

0.34.0

0.33.1

  • remove regexparam by Luke Edwards and use code directly to reduce dependencies
  • remove mrmime by Luke Edwards to reduce dependencies
  • improve compilation of handlers and middlewares
  • fix minor typos
  • improve and fix lang()
  • improve Swagger features
  • move following types to internal:
    • Constructor
    • GetterFunc
  • improve tests

0.32.0

  • improve and fix lang() middleware
  • @CONNECT() does not support input bodies anymore
  • type checks for arguments in params() validator
  • remove prettyErrors() error handler
  • other code cleanups and improvements
  • (bug-)fixes

0.31.0

0.30.2

  • type check for key parameter of @Import() decorator
  • optimize serializer feature
  • update Youch! to version 3.0.0
  • add benchmarks to benchmarks sub folder
  • fix typos

0.29.0

0.28.0

0.27.1

  • key parameter of @Import() decorator is now optional, what means that, if no key is submitted, the name of the underlying property is used
  • (bug-)fixes

0.26.1

  • add @Import() decorator, which can import values into a controller's property or provide them there

0.25.0

  • BREAKING CHANGE: Nilable<T>, Nullable<T> and Optional<T> are not public anymore and internal types now

0.24.0

0.23.0

  • implement basicAuth middleware
  • code cleanups and improvements

0.22.0

  • (bug-)fixes

0.21.0

  • do not trim value in auth() middleware anymore

0.20.0

0.19.0

0.18.1

  • implement @Use() decorator
  • replace mime-types with mrmime
  • can download Swagger documentation over endpoints like /swagger/yaml now
  • npm updates
  • (bug-)fixes, like issue #11

0.17.1

  • removed bind() calls
  • (bug-)fixes

0.16.0

  • now bind ValidationErrorHandler(), ErrorHandler(), Serializer, DocumentationUpdater() and controller methods to controller instance

0.15.1

0.14.0

0.13.1

  • add missing export of ValidationErrorHandler() decorator
  • npm update
  • (bug-)fixes

0.12.0

  • optimize readStreamWithLimit() function
  • npm update

0.11.0

  • add yaml() middleware
  • add optional encoding props for options of json() and text() middlewares

0.10.0

  • add text() middleware
  • npm update
  • fix, cleanup and improve documentation

0.9.1

  • bugfixes
  • npm update

0.8.0

  • implement ValidationErrorHandler() decorator
  • add VSCode debugger settings
  • bugfixes

0.7.0

  • implement controller framework, similar to express-controllers:
    • decorators for CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE HTTP methods
    • decorators for setting up custom, controller-wide serializers and error handlers
  • code cleanups and improvements
  • bugfixes

0.6.0

  • add prettyErrors() error handler
  • fix tests

0.5.0

  • BREAKING CHANGE: replace use of querystring with URLSearchParams
  • add cookies() and lang() middlewares
  • cleanup documentation
  • add optional TBody type parameter to IHttpRequest interface to describe body property
  • npm update

0.4.0

  • add validate() middleware
  • add schema namespace as joi alias
  • fix documentation
  • bugfixes

0.3.1

  • add query() middleware
  • fix params() path validator
  • fix README
  • fixes in path validation

0.2.2

  • add params() middleware
  • next() function of a middleware can receive an error object now
  • make sure, that all handlers and middlewares are async functions now
  • update type descriptions for handlers and middlewars
  • (bug-)fixes

0.1.2

  • initial release