@alterior/platform-nodejs
Advanced tools
Changelog
v3.6.0
@/runtime
: Allow specifying additional providers when bootstrapping an application@/platform-nodejs
dotenv
version 16.3.1
ws
version 8.16.0source-map-support
version 0.5.21@/logging
:
fatal()
convenience functionLogger
(ie Logger.info()
means Logger.current.info()
)Changelog
3.4.2
@/platform-nodejs
: Add support for dotenv-flow
style usage of the NODE_ENV
environment variable. When NODE_ENV
is set, the filename searched is .env.{NODE_ENV}
to allow you to configure multiple environments in separate .env
files.Changelog
🚀 3.0.5
@/web-server
: Fixes a crash in WebEvent.request
et al when called outside of an @alterior/web-server
request context@/platform-nodejs
: Support loading .env
files from parent directories of the current working directoryChangelog
🚀 3.0.0-rc.7
@/web-server
: WebServer#httpServer
is now public (read only)@/web-server
: Service classes can now receive an altOnListen(server : WebServer)
event, useful for configuring
aspects of the underlying Node.js http.Server instance directly.Changelog
🚀 3.0.0-rc.6
@alterior/platform-nodejs
now provides a global implementation of WebSocket
implementation using ws
if one is
not already availabledeepClone()
to handle cyclical object graphs correctly@SessionValue()
parameter decorator has been removed in preparation for the 3.0.0 release. This decorator was
deprecated in v3.0.0-beta.76
released on 2/27/2021. Use the Session
class instead.@QueryParams()
parameter decorator as a way to get a Record<string,string>
containing all query parameters
passed via URL. You can use a specific interface type for such parameters, but please note that Alterior does not
perform automatic coercion of the fields of the @QueryParmas()
object- all values will be strings.accessControl()
built-in middleware has been removed in preparation for the 3.0.0 release. This feature was
deprecated in v3.0.0-beta.2
released on 9/6/2018. Please use a Connect-compatible middleware package or create
your own instead. Feel free to start from Alterior's implementation, you can find it
at https://github.com/alterior-mvc/alterior/blob/c4e6730c98d7f2a6d20764612af0b7b2cd51c1e6/packages/web-server/src/accesscontrol.ts.@Request()
parameter decorator has been removed in preparation for the 3.0.0 release. This decorator was deprecated in v3.0.0-beta.76
released on 2/27/2021. Use WebEvent.request
instead to access parameters of the underlying HTTP request.RolesService#getRoleForModule()
method has been renamed to RolesService#getForModule()
RolesService#getById()
has been added.RolesService#start()
and RolesService#stop()
methods have been removed. Use RolesService#getById()
or
RolesService#getForModule()
and call start
/stop
on the resulting Role
object instead.