パッケージの詳細

@expressots/adapter-express

expressots472.3kMIT3.0.0

Expressots - modern, fast, lightweight nodejs web framework (@adapter-express)

expressots, nodejs, microservices, typescript

readme

Codecov NPM Build Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

ExpressoTS Framework

Everything you need to know to build applications with ExpressoTS
Explore the docs »

Let's discuss · Report Bug · Request Feature

<summary>Table of Contents</summary>
  1. About The Project
  2. Getting Started
  3. Contributing
  4. Support the project
  5. License

About The Project

ExpressoTS is a Typescript + Node.js lightweight framework for quick building scalable, easy to read and maintain, server-side applications 🐎

Getting Started

Contributing

Welcome to the ExpressoTS community, a place bustling with innovative minds just like yours. We're absolutely thrilled to have you here! ExpressoTS is more than just a TypeScript framework; it's a collective effort by developers who are passionate about creating a more efficient, secure, and robust web ecosystem. We firmly believe that the best ideas come from a diversity of perspectives, backgrounds, and skills.

Why Contribute to Documentation?

  • Share Knowledge: If you've figured out something cool, why keep it to yourself?
  • Build Your Portfolio: Contributing to an open-source project like ExpressoTS is a great way to showcase your skills.
  • Join a Network: Get to know a community of like-minded developers.
  • Improve the Product: Help us fill in the gaps, correct errors, or make complex topics easier to understand.

Ready to contribute?

Support the project

ExpressoTS is an independent open source project with ongoing development made possible thanks to your support. If you'd like to help, please consider:

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

更新履歴

3.0.0 (2024-12-04)

Code Refactoring

  • app express class with async methods (5c9ea2b)
  • return http server on getHttp instead of app express (e6646de)
  • server listen accept 0 to set random port (7a97cf1)
  • update getHttpServer method to return http.Server instance (98985e8)

Tests

  • update tests for globalConfiguration, isDevelopment, getHttpServer, serverShutdown (17b7d92)

3.0.0-beta.4.2 (2024-12-03)

Code Refactoring

  • app express class with async methods (5c9ea2b)
  • return http server on getHttp instead of app express (e6646de)
  • server listen accept 0 to set random port (7a97cf1)
  • update getHttpServer method to return http.Server instance (98985e8)

Tests

  • update tests for globalConfiguration, isDevelopment, getHttpServer, serverShutdown (17b7d92)

3.0.0-beta.4.1 (2024-12-03)

Code Refactoring

  • app express class with async methods (5c9ea2b)
  • server listen accept 0 to set random port (7a97cf1)

Tests

  • update tests for globalConfiguration, isDevelopment, getHttpServer, serverShutdown (17b7d92)

3.0.0-beta.4 (2024-12-03)

Code Refactoring

  • app express class with async methods (5c9ea2b)

Tests

  • update tests for globalConfiguration, isDevelopment, getHttpServer, serverShutdown (17b7d92)

3.0.0-beta.3 (2024-11-28)

Features

  • create server instance http and add close method for graceful shutdown (be16011)

Bug Fixes

  • update error message in getHttpServer method for clarity (dc4f5a3)
  • update middleware path handling to include global prefix (b7bffc5)

Tests

  • add unit tests for serverShutdown and setGlobalRoutePrefix methods (2c1ad63)

3.0.0-beta.2 (2024-11-24)

Features

  • add getHttpServer method and update listen method to return a promise (82895c2)
  • add unit tests for various utility functions and application lifecycle methods (d3d91b0)
  • add unit tests IOC container addScoped, addSingleton, addTransient, get (e3028fa)
  • implement Express Micro API adapter with route management and IoC container (1720378)

Bug Fixes

  • exclude dependency injection files from coverage collection (e8fdd90)
  • update @expressots/core dependency version to use semantic versioning (2130e4d)

Code Refactoring

  • clean up whitespace and formatting in various test files (5be0404)

3.0.0-beta.1 (2024-11-18)

Features

  • add container interface and remove inversify and binding deps (0b8c17b)
  • add env configuration load from expressots.config (ec6e476)
  • add express dependency version 4.21.1 to package.json (793b48c)
  • add global config method and env variables (d688a83)
  • add global configuration method and enhance listen interface (7447934)
  • add logging for NO_CONTROLLERS_FOUND error in express-utils (1c76dc8)
  • add unit tests for BaseMiddleware and Http decorators, update .gitignore and package.json (532b891)
  • enhance application-express interfaces and refactor container configuration (e1f55fe)
  • enhance HttpStatusCodeMiddleware to accept globalPrefix for path handling (a568598)
  • integrate RenderEngine from @expressots/shared and remove deprecated types (a2a22f9)
  • migrate from Vitest to Jest for testing framework and update configuration files (e76eb30)

Bug Fixes

  • correct formatting in IWebServerPublic and AppExpress documentation (04fd0f0)
  • format NO_CONTROLLERS_FOUND message for consistency (dcd24cb)
  • set default port to 3000 if not provided in application-express (0607f57)
  • update version and refine no controllers found message (d4eb6a7)

Code Refactoring

  • adjust and rename public apis (b69e212)
  • change to IConsoleMessage the Console (56311e6)
  • clean up imports and formatting in application-express files (c24233a)
  • environment optional via enum, string and undefined (b1ea563)
  • partial env config load (4fca6cc)
  • remove provide decor for items not in container (42f762c)
  • update IWebServer interface and improve doc for public API methods (e123d43)

Tests

  • add test for server environment (0c76de1)

1.8.2 (2024-08-31)

Bug Fixes

  • fileupload req and res retrieval (1bf2465), closes #113

Code Refactoring

  • file upload type validation & args res, req optional (9ae3af4)

1.8.1 (2024-08-21)

Bug Fixes

  • remove server env export & update core deps (38e1afd)

1.8.0 (2024-08-13)

Features

  • add expressots middleware in decorators (055ead9)
  • add FileUpload decorator (a4f62b1)

Bug Fixes

  • adjust error msgs and package resolver (34a0fcd)
  • adjust isExpressoMiddleware function param types (edc0888)
  • return message (32d656e)

Code Refactoring

  • bump expresso core deps & remove husky deprecated code (a9b243f)
  • httpMethod to Method decorator (5e853a0)
  • remove unnecessary comments (72c4a15)

1.7.0 (2024-07-23)

Features

  • add @Render decorator (522d6e2)
  • add pug engine support (a879f96)
  • bump husky from 9.0.11 to 9.1.1 (7c1678a)
  • bump vite from 5.3.3 to 5.3.4 (86f51a3)

Bug Fixes

  • add options to ejs and hbs support (b52ce5c)

1.6.0 (2024-07-17)

Features

  • add render support for EJS and HBS (8618655)
  • adjust version of core package (a699bd4)
  • bump @types/node from 20.14.9 to 20.14.10 (9a1291b)
  • bump @typescript-eslint/eslint-plugin from 7.15.0 to 7.16.1 (e7d3c9a)
  • bump @typescript-eslint/parser from 7.15.0 to 7.16.1 (2a99945)
  • bump prettier from 3.3.2 to 3.3.3 (d7de72a)
  • bump release-it from 17.4.1 to 17.6.0 (c36aeb6)
  • bump typescript from 5.2.2 to 5.5.3 (53f9f96)
  • bump vitest and @vitest/coverage-v8 (b2dae7e)
  • bump vitest and @vitest/coverage-v8 (b3221eb)
  • linter adjust (e43d222)

Bug Fixes

  • bump node version 18.18 and removed deprecated install in husky (778ed79)

1.5.0 (2024-06-11)

Features

  • bump @commitlint/config-conventional from 17.7.0 to 19.2.2 (c4db260)
  • bump @release-it/conventional-changelog from 7.0.1 to 7.0.2 (d063fd9)
  • bump eslint-config-prettier from 9.0.0 to 9.1.0 (20ca753)
  • bump husky from 8.0.3 to 9.0.11 (8cb065e)
  • bump prettier from 3.0.3 to 3.3.1 (872c7ba)
  • bump prettier from 3.3.1 to 3.3.2 (5edd349)
  • bump release-it from 16.1.5 to 16.3.0 (5febf25)

Bug Fixes

  • decorator method case confict fix (cdf0fbd)
  • init commit (55359bf)
  • patch issue where not using http decorator shows incorrect code (975e451)
  • remove comments and logs for prod build (cd0151b)
  • remove unused method param in find param pattern (fd40872)

Code Refactoring

  • without and with decor in the same route conflict (469f65e)

1.4.0 (2024-06-07)

Features

  • Add http code decorator (f0f6e0a)
  • add vitest and setup codecov in the ci (14fd527)
  • adjust doc, update metadata const for http decorator (773f297)
  • dev-http decorator changes (8088f5c)
  • fix issues where decorator does not function properly when used multiple times in same file (919815f)

Bug Fixes

  • build shield workflow status (3e5d6c8)
  • code coverage upload path (aef20eb)
  • remove codesee ci config (043c423)
  • remove the decorator incorrect call in the library due mismatch on tsconfig (58dbb52)

Code Refactoring

  • readme badges npm, coverage and build added (d643acd)

1.3.0 (2024-04-26)

Features

  • returns httpServer for e2e testing with supertest (97999fb)

1.2.2 (2024-04-25)

Bug Fixes

  • validate parameter types in param decorator by default (b7a8657)

1.2.1 (2024-04-04)

Code Refactoring

  • adapter expressto to be used in AppFactory (239501e)
  • rename items for standardization and improve doc (2e691d5)

1.2.0 (2024-3-5)

Features

  • add expressots middleware support (809f148)
  • bump @commitlint/cli from 17.8.1 to 18.0.0 (15fbb1a)
  • fix middleware binding to constructor (3a6f7dc)
  • fix path call on expresso middleware (934ae17)

1.1.1 (2023-10-10)

Bug Fixes

  • add global prefix on opinionated (d9d5a06)
  • add global route prefix for both templates (046fd2c)
  • adjust build pipeline (4f164a2)
  • adjust build script and remove esm build option (b35af7b)
  • path in codeql analysis report (035aa16)

1.1.0 (2023-09-21)

Features

  • add express as an adapter (2870790)
  • add expressjs adapter (263d12d)
  • add peer dependency @expressots/core (7e8ec24)

Bug Fixes

0.0.1 (2023-09-05)

Bug Fixes