revali_server 2.0.1-dev
revali_server: ^2.0.1-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.close
tohandleRequests
to allow for clean up of resources
1.14.0 | 05.08.25 #
Enhancements #
- Clean up
revali_server create pipe
template
Features #
- Support
enum
serialization/deserialization- Uses
toJson
/fromJson
methods if available - Defaults to
name
- Uses
Fixes #
- Issue where
@Data
annotations were attempting to de-serialize values - Issue where
@Data
annotations 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
Pipe
returns 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
Controller
instance type fromsingleton
to `factory
@Controller('', type: InstanceType.factory)
class MyController {}
Enhancements #
- Improve type formatting when creating
Pipe
files usingrevali_server create pipe
cli
Breaking (Lil' one tho) #
- Change return type from
FutureOr
toFuture
forPipe.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
Controller
s - Support
fromJson
resolution for static methods within return types - Create
CloseWebSocket
class 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
Map
within afromJson
call
Enhancements #
- Create
ServerFromJson
class to match change fromrevali_construct
1.10.1 | 03.24.25 #
Features #
- Support for
Cookie
param - Support for generic types in
LifecycleComponent
- Support
Inject
types 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
Cookie
param - Support for generic types in
LifecycleComponent
- Support
Inject
types 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.typeImport
in favor ofServerParam.type.importPath
Features #
- Create new factory constructors for
ServerImports
to better handle extracting import paths - Create
ServerType
class to reflectMetaType
for method parameter types - Leverage
hasFromJsonConstructor
to 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
MutableCookies
ReadOnlyCookies
MutableSetCookies
ReadOnlySetCookies
1.4.0 | 01.18.25 #
Enhancements #
- Support new requirement for
DI
registrations to be of typeObject
- Wrap
DI
with handler after configuration is complete
1.3.0 | 12.11.24 #
Features #
- Create Lifecycle Components using classes to support use of binding logic
- Support
initializeDI
method to create own instances ofDI
1.2.0 | 11.21.24 #
Features #
- Support
expectedHeaders
argument - Allow multiple
AllowedHeaders
,AllowedOrigins
andExpectedHeaders
to be provided on a single route/controller
1.1.0 | 11.18.24 #
1.0.0 | 11.14.24 #
- Initial Release