@glandjs/http@1.0.0-beta
Changelog - @glandjs/http & express
Release history for @glandjs/http and @glandjs/express.
Release history for @glandjs/http and @glandjs/express, from
glandjs/http.
Status
Section titled “Status”| Package | Version | Protocol target | State |
|---|---|---|---|
@glandjs/http |
1.0.0-beta |
— (defines the contract) | beta |
@glandjs/express |
1.0.0-beta |
Express ^5.1.0 |
beta |
What is settled
Section titled “What is settled”The abstractions are stable enough to build against:
- The route decorators.
@Get,@Post,@Put,@Patch,@Delete,@Options,@Head,@Search,@Alland@RequestMapping, plus theRequestMethodenum. HttpContext. The full request and response surface, specified once so every adapter implements the same contract.HttpCore. The application object: routing helpers, body parsers, CORS, static assets, view engine,listen()andclose().HttpBroker. The bridge that turnsgland:define:routeinto real routes.HttpServerAdapter. The abstract adapter a transport implements.
What is still in progress
Section titled “What is still in progress”- Server-sent events.
ctx.sse()returns the context without opening a stream. TheSSEStreamclass in the package is an empty placeholder. cors.enableCors()loads the package lazily and it is not a dependency of@glandjs/express. Install it yourself.setGlobalPrefix(). Mounts a router at the prefix; it does not retroactively re-register routes that were already bound.- Array paths. The route decorators accept
string | string[], but the path is concatenated downstream, so an array produces a broken route. - App-level events. A
crashed/router:miss/request:failedmap is defined in the types but not yet wired into the runtime. - Fastify adapter. Referenced by the upstream README; not yet present in the repository.
Beta guidance
Section titled “Beta guidance”- Pin the exact version in production rather than a range.
- Prefer
@glandjs/expressover@glandjs/httpalone — the latter defines the contract but implements no server. - If you need a proven HTTP stack, run Gland channels beside Express and keep Express for routing. The two compose without either one knowing about the other.
See also
Section titled “See also”@glandjs/http— the protocol layer.@glandjs/express— the Express 5 adapter.- Changelog for the core packages.