revali_server 2.0.2-dev
revali_server: ^2.0.2-dev copied to clipboard
A Revali Server Construct to generate server code using `revali_router`
CHANGELOG #
2.0.1-dev | 09.19.25 #
2.0.0-dev | 09.19.25 #
1.15.0 | 08.18.25 #
Features #
- Pass in
router.closetohandleRequeststo allow for clean up of resources
1.14.0 | 05.08.25 #
Enhancements #
- Clean up
revali_server create pipetemplate
Features #
- Support
enumserialization/deserialization- Uses
toJson/fromJsonmethods if available - Defaults to
name
- Uses
Fixes #
- Issue where
@Dataannotations were attempting to de-serialize values - Issue where
@Dataannotations were lost when type was nullable - Issue where constructor default values were not being set
- Issue where fields were not being utilized within generated lifecycle component classes
- AOT compilation error when a
Pipereturns a nullable type when the parameter requires a non-nullable type- Provides the default value defined in the parameter
1.13.0 | 04.15.25 #
Features #
- Support changing the
Controllerinstance type fromsingletonto `factory
@Controller('', type: InstanceType.factory)
class MyController {}
Enhancements #
- Improve type formatting when creating
Pipefiles usingrevali_server create pipecli
Breaking (Lil' one tho) #
- Change return type from
FutureOrtoFutureforPipe.transform
1.12.0 | 04.07.25 #
1.11.2 | 03.27.25 #
Fixes #
- Issue where arguments were not passed properly to class from type references
1.11.1 | 03.27.25 #
1.11.0 | 03.26.25 #
Features #
- Support empty paths for
Controllers - Support
fromJsonresolution for static methods within return types - Create
CloseWebSocketclass to manually close aWebSocket
Fixes #
- Prepend (generated) route & file name with
r+ index when theController's path is empty - Type resolution when converting dynamic types to
Mapwithin afromJsoncall
Enhancements #
- Create
ServerFromJsonclass to match change fromrevali_construct
1.10.1 | 03.24.25 #
Features #
- Support for
Cookieparam - Support for generic types in
LifecycleComponent - Support
Injecttypes in annotations- Allows for constant resolution of annotations that require dependency injection and need arguments
- Support record types
1.10.0 | 03.24.25 #
Features #
- Support for
Cookieparam - Support for generic types in
LifecycleComponent - Support
Injecttypes in annotations- Allows for constant resolution of annotations that require dependency injection and need arguments
- Support record types
1.9.2 | 02.08.25 #
1.9.0 | 02.08.25 #
1.9.1 | 02.07.25 #
1.6.0 | 01.27.25 #
Enhancements #
- Remove use of deprecated apis
- Create extensions to get fromJson constructor and import paths
(Future) Breaking Changes #
- Deprecate
ServerParam.typeImportin favor ofServerParam.type.importPath
Features #
- Create new factory constructors for
ServerImportsto better handle extracting import paths - Create
ServerTypeclass to reflectMetaTypefor method parameter types - Leverage
hasFromJsonConstructorto convert body/header/param/query request values
1.5.1 | 01.22.25 #
1.5.0 | 01.20.25 #
Features #
- Add support for Cookies access
MutableCookiesReadOnlyCookiesMutableSetCookiesReadOnlySetCookies
1.4.0 | 01.18.25 #
Enhancements #
- Support new requirement for
DIregistrations to be of typeObject - Wrap
DIwith handler after configuration is complete
1.3.0 | 12.11.24 #
Features #
- Create Lifecycle Components using classes to support use of binding logic
- Support
initializeDImethod to create own instances ofDI
1.2.0 | 11.21.24 #
Features #
- Support
expectedHeadersargument - Allow multiple
AllowedHeaders,AllowedOriginsandExpectedHeadersto be provided on a single route/controller
1.1.0 | 11.18.24 #
1.0.0 | 11.14.24 #
- Initial Release