1.8 KiB
1.8 KiB
2.0.0-alpha
- Removed
random_string
dependency. - Moved reflection to
package:angel_container
. - Upgraded
package:file
to5.0.0
. ResponseContext.sendFile
now usespackage:file
.- Abandon
ContentType
in favor ofMediaType
. - Changed view engine to use
Map<String, dynamic>
. - Remove dependency on
package:json_god
by default. - Remove dependency on
package:dart2_constant
. - Remove
contentType
argument inResponseContext.serialize
. - Moved
lib/hooks.dart
intopackage:angel_hooks
. - Moved
TypedService
intopackage:angel_typed_service
. - Completely removed the
AngelBase
class. - Removed all
@deprecated
symbols. Service.toId
was renamed toService.parseId
; it also now uses its single type argument to determine how to parse a value.- In addition, this method was also made
static
.
- In addition, this method was also made
RequestContext
andResponseContext
are now generic, and take a single type argument pointing to the underlying request/response type, respectively.RequestContext.io
andResponseContext.io
are now permanently gone.HttpRequestContextImpl
andHttpResponseContextImpl
were renamed toHttpRequestContext
andHttpResponseContext
.- Lazy-parsing request bodies is now the default;
Angel.lazyParseBodies
was replaced withAngel.eagerParseRequestBodies
. Angel.storeOriginalBuffer
->Angel.storeRawRequestBuffers
.- The methods
lazyBody
,lazyFiles
, andlazyOriginalBuffer
onResponseContext
were all replaced withparseBody
,parseUploadedFiles
, andparseRawRequestBuffer
, respectively. - Removed the synchronous equivalents of the above methods (
body
,files
, andoriginalBuffer
), as well asquery
. - Removed
Angel.injections
andRequestContext.injections
. - Removed
Angel.inject
. - Removed a dependency on
package:pool
, which also meant removingAngelHttp.throttle
.