Releases: danfuzz/lactoserv
Releases · danfuzz/lactoserv
v0.6.1
Breaking changes:
- Changed interface of
BaseApplication
to useRequest
andDispatchInfo
(see
below). This breaks downstream clients of this codebase.
Other notable changes:
- Added new application
SimpleResponse
, which is kind of like a one-file
StaticFiles
. - Introduced a
Request
class specific to this project, instead of just
"absorbing" Express'sRequest
andResponse
objects. OurRequest
holds
both the underlying request and response (and other related goodies). For now,
the underlying Express bits are exposed to clients, but the intention is for
them to get hidden and for this project's API to be sufficient. - Relatedly, introduced new class
DispatchInfo
, to hold information about a
request dispatch-in-progress (i.e., routing information, more or less). In
Express, the equivalent state is represented by mutating the request object,
but we're an immutable-forward shop here. - Got rid of direct uses of Express's
Request
andResponse
classes, other
than within ourRequest
. Most notably, the request logging code got a
major rewrite. - Reworked most of the code in our
Request
class that does
actually-Express-specific stuff, to instead do approximately what Express
does, or just not do it at all. Notably, we no longer try to deal with reverse
proxies; support will probably be added for them eventually (assuming demand). - Reworked
StaticFiles
to use ourRequest
instead of wrapping
express.static()
.
v0.6.0
v0.5.20
Breaking changes:
- None.
Other notable changes:
- Extracted base class
BaseSystem
fromUsualSystem
, to help avoid code
duplication in downstream projects. - Added ability to make hostnames use automatically-generated self-signed
certificates. - A bunch of cleanup / rationalization around the configuration code, especially
with hostname and IP address parsing. - Pulled in improved
bashy-lib
, and adjusted accordingly.
v0.5.19
v0.5.18
Breaking changes:
- None. Though there have been no intentionally-meaningful code changes, please
note that the ESLint update (see below) did require some code tweakage.
Other notable changes:
- Lint:
- Updated to latest ESLint. Adjusted comments and code accordingly.
- Un-janked how the linter gets built. It's now built using the same mechanism
as the main application build.
- Testing: As with the linter, un-janked how it gets built.