- fixed
buildMiddlewares
, now correctly removes middlewares in case of multiple ignored middlewares (worked only with 1 ignored middleware before)
- new
provideRestMiddlewaresOrder
function, that provides rest middlewares execution order - new
provideRestMethodMiddlewares
function, that provides middleware types for rest http method, executed each time - new
provideRestDateApi
function, that provides rest date api type - new
provideMockLogger
function, that provides mock logger - new
RESTClientBase
class, that is base class for RESTClient class- properties
http
instance of http clientinjector
instance of injector used for obtaining DImiddlewaresOrder
array of rest middlewares in specific order in which will be middlewares executedmethodMiddlewares
array of middlewares that are executed for each http methodbaseUrl
base path that is prepended to request URL
- methods
getBaseUrl
returns the base url of RESTClientgetDefaultHeaders
returns the default headers of RESTClient in a key-valuerequestInterceptor
request interceptor for all methods, must return new HttpRequest since object is immutableresponseInterceptor
allows to intercept all responses for all methods in class
- properties
- new
RestHttpMethod
interface, that contains data that are stored when REST method is set - new
RestMiddlewareRunNextMethod
interface, that is definition of method that is used for passing execution to the next middleware - updated
ParameterTransformFunc
interface, now supports async parameter transformation - updated
handleQueryParam
function- is now
async
- is now
- updated
handleHeaderParam
function- is now
async
- is now
- updated
handlePathParam
function- is now
async
- is now
- updated
handleQueryObjectParam
function- is now
async
- is now
- subpackage
@anglr/rest/datetime
- new
provideRestDateTime
function, that provides rest date api using@anglr/datetime
- new
provideRestDateTimeStringFormat
function, that provides rest date time string format - new
DATETIME_STRING_FORMAT
injection token for datetime string format
- new
- minimal supported version of
NodeJs
is18
- minimal supported version of
@angular
is17.0.1
- minimal supported version of
rxjs
is7.5.7
- minimal supported version of
@jscrpt/common
is5.0.0
- minimal supported version of
@anglr/common
is19.0.0
- minimal supported version of
@anglr/datetime
is7.0.0
- minimal supported version of
tslib
is2.6.3
- removed
RestTransferStateService
service, Angular has native support for this - updated
RESTClient
service,- now has constructor with no parameters
- subpackage
@anglr/rest/datetime
- removed
DATETIME_REST_DATE_API
injection token, useprovideRestDateTime
- removed
- fixed
DisableMiddleware
imports, which points to itself
- updated
ParameterTransformFunc
interface- added new parameter
args
, used for passing all arguments from method
- added new parameter
- updated
HeaderParameterMiddleware
middleware- updated to use new
handleHeaderParam
function and to pass parameters args to transform function
- updated to use new
- updated
PathParameterMiddleware
middleware- updated to use new
handlePathParam
function and to pass parameters args to transform function
- updated to use new
- updated
QueryObjectParameterMiddleware
middleware- updated to use new
handleQueryObjectParam
function and to pass parameters args to transform function
- updated to use new
- updated
QueryParameterMiddleware
middleware- updated to use new
handleQueryParam
function and to pass parameters args to transform function
- updated to use new
- updated
BodyParameterMiddleware
middleware- updated to pass parameters args to transform function
- updated
ParameterTransform
decorator- now passes args to transform functions
- updated
handleQueryParam
function- now requires 3rd parameter
args
, which contains all arguments passed to method
- now requires 3rd parameter
- updated
handleHeaderParam
function- now requires 3rd parameter
args
, which contains all arguments passed to method
- now requires 3rd parameter
- updated
handlePathParam
function- now requires 3rd parameter
args
, which contains all arguments passed to method
- now requires 3rd parameter
- updated
handleQueryObjectParam
function- now requires 4th parameter
args
, which contains all arguments passed to method
- now requires 4th parameter
- fixed
ParamsDataIterator
optional parameters are only withundefined
value,null
value is not considered optional - fixed
handleQueryParam
, now skips optional parameters (undefined
andnull
) - fixed
handleHeaderParam
, now skips optional parameters (undefined
andnull
) - fixed
handlePathParam
, optional parameters (undefined
andnull
) are replaced by empty string
- fixed default value for
CorrelationBodyProperty
inWebSocketClient
- fixed problem with
null
orundefined
parameters at start of params array inParamsDataIterator
- fixed problem with missing transforms and getting param data from index out of array in
ParamsDataIterator
- new
ParamsDataIterator
class, that is iterator for params data - new
ParamsDataIteratorItem
interface, that represents item during iteration of params data - new
handleQueryParam
function, that handles query param and fills params dictionary - new
handleHeaderParam
function, that handles header param and fills headers dictionary - new
handlePathParam
function, that handles path param and return updated url - new
handleQueryObjectParam
function, that handles query object param and fills serialized query string array - new
mergeQueryObjectParamsWithHttpParams
function, that merges serialized query objects data with existing http params
- all middlewares are now treeshakeable if not used
- new
middlewareTypes
type, that contains array of middleware names that are built-in - new
RestMiddlewareType
type, that represents definition of type that implementsRestMiddleware
- new
RestMiddlewareOrderType
type, that represents definition of type that is used for definition of order of middlewares - updated
BASIC_DEFAULT_REST_MIDDLEWARES_ORDER
constant- now is treeshakable
- contains all built-in middlewares
- now is of type
RestMiddlewareOrderType[]
- updated
REST_MIDDLEWARES_ORDER
injection token- now injects type
RestMiddlewareOrderType[]
- now injects type
- updated
AdvancedCacheMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
BodyParameterMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
CacheMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ClearAdvancedCacheMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
HeaderParameterMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
HeadersMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
IgnoredInterceptorsMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
LoggerMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
MockLoggerMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
PathParameterMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ProducesMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ProgressIndicatorGroupMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
QueryObjectParameterMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
QueryParameterMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ReportProgressMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ResponseTransformMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- updated
ResponseTypeMiddleware
middleware, now middleware type has staticid
to correspond withRestMiddlewareType<RestMiddleware>
- new
@anglr/datetime
dependency version3.0.0
- new
@anglr/rest/datetime
subpackage - subpackage
@anglr/rest/datetime
- new
DatetimeRestDateApi
service, that isRestDateApi
implementation using@anglr/datetime
- new
DATETIME_REST_DATE_API
injection token used as provider for RestDateApi using datetime
- new
- minimal supported version of
@angular
is14.0.0
- minimal supported version of
@anglr/common
is11.2.0
- dropped support of
NodeJs
version12
- removed subpackage
@anglr/rest/date-fns
in favor of@anglr/datetime
- removed subpackage
@anglr/rest/moment
in favor of@anglr/datetime
- removed
date-fns
dependency - removed
moment
dependency - updated
REST_METHOD_MIDDLEWARES
injection token- now injects type
RestMiddlewareType<RestMiddleware>[]
- now injects type
- updated
BASIC_DEFAULT_REST_METHOD_MIDDLEWARES
constant- now is of type
RestMiddlewareType<RestMiddleware>[]
- now is of type
- updated
buildMiddlewares
function, now using new middlewares and middlewareOrder types - updated
not
function, now using middleware typeRestMiddlewareType<RestMiddleware>
- updated
getType
function, now using middleware typeRestMiddlewareType<RestMiddleware>
- updated
isNotType
function, now using middleware typeRestMiddlewareType<RestMiddleware>
- updated
DisableMiddleware
decorator, now using middleware typeRestMiddlewareType<RestMiddleware>
- updated
NotType
class- new constructor type
RestMiddlewareType
- new generic constraint
TType extends RestMiddleware
- new constructor type
- updated
RestMethodMiddlewares
interfacemiddlewareTypes
is now of typeRestMiddlewareType<RestMiddleware>[]
- updated
ParametersMiddlewaresMetadata
interfacemiddlewareTypes
is now of typeRestMiddlewareType<RestMiddleware>[]
- updated
BuildMiddlewaresFn
interface- parameter
middlewares
is now of typeRestMiddlewareType<RestMiddleware>[]
- parameter
middlewaresOrder
is now of typeRestMiddlewareOrderType[]
- parameter
- updated
RESTClient
class- parameter
methodMiddlewares
is now of typeRestMiddlewareType<RestMiddleware>[]
- parameter
middlewaresOrder
is now of typeRestMiddlewareOrderType[]
- parameter
- new
REST_MOCK_LOGGER
injection token used for injecting MockLogger used for logging responses for mocks - new
MockLogger
interface, that is service for logging mock responses- method
logResponse
logs mock response
- method
- new
MockLoggerMiddleware
middleware, that is used for logging responses for mock usages - new
AdvancedCacheItem
interface, that is advanced cache item- property
response
cached http response - property
validUntil
validity date for cache
- property
- new
AdvancedCacheItemOptions
type, that are options for advanced cache item - new
AdvancedCacheService
service, that allows advanced caching of http responses- method
clearCache
clears cache either for specified key, or whole cache - method
add
adds response to advanced cache - method
get
gets http response from cache, or null if it does not exists - method
updateCache
updates existing cache items, if not exists it does nothing
- method
- new
RestAdvancedCaching
interface, contains data that are used for advanced cache service- extends
RestClearAdvancedCaching
- property
validUntil
relative definition of 'date' for setting validity of cache, example +2d, +12h
- extends
- new
RestClearAdvancedCaching
interface, contains data that are used for clearing advanced cache service- property
key
key to stored cache item
- property
- new
AdvancedCache
decorator, results of requests are cached in advanced cachce service - new
AdvancedCacheMiddleware
middleware, that is used for storing and restoring response from advanced cache service - new
ClearAdvancedCacheMiddleware
middleware, that is used for clearing advanced cache for specific key - new
ClearAdvancedCache
decorator, that clears advanced cache for key when call is successful - updated
RestDateApi
interface- method
isBeforeNow
tests whether tested date is before now
- method
- subpackage
@anglr/rest/date-fns
- updated
DateFnsRestDateApi
to correspond with newRestDateApi
interface
- updated
- subpackage
@anglr/rest/moment
- updated
MomentRestDateApi
to correspond with newRestDateApi
interface
- updated
- new
DisableMiddleware
decorator, that allows disabling of specified middleware
- fixed missing exports for
RestProgressIndicatorGroup
andProgressIndicatorGroupMiddleware
- fixed problem with keeping
this
bound to Middlewares, causing Injector has already been destroyed after HRM reloading
- updated
RestMiddlewareRunMethod
, now holds only function signature withthis
- updated
BuildMiddlewaresFn
, removedthis
from function signature
- fixed typings, not using rolled up typings for now
- fixed all method decorators, which were not applicable to methods
- added new
ResponseTransformFunc
function that is used as response transform function - added new
ParameterTransformFunc
function that is used as parameter transform function - added middlewares to process request and response
ProgressIndicatorGroupMiddleware
- middleware that is used for adding support for progress indicator group passing down to progress interceptor
- package
@anglr/rest/avsc
- added new
AVRO_REQUEST_DATA
,AVRO_RESPONSE_DATA
http context tokens for passing AVRO request, response data into interceptor
- added new
- minimal supported version of Angular is
13.1.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/common
is10.0.0
- compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- removed dependency
@anglr/types
, all mising types used directly here - dropped support of
Node.js <= 12.20
- removed
AdditionalDataMiddleware
now usingHttpContext
for passing additional data withHttpRequest
- removed
RestFullHttpResponse
type which was not doing anything - removed
ɵRESTClient
which is no longer needed, updated typings - removed
AdditionalInfoPropertyDescriptor
now usingHttpContext
for passing additional data withHttpRequest
- removed
AvroRequestType
,AvroResponseType
now usingAVRO_REQUEST_DATA
,AVRO_RESPONSE_DATA
http context tokens
- added subpackage
@anglr/rest/moment
- package
@anglr/rest/moment
- added new
MomentRestDateApi
asRestDateApi
implementation using moment js - added new
MOMENT_REST_DATE_API
as provider forREST_DATE_API
using moment js implementation
- added new
- added subpackage
@anglr/rest/date-fns
- package
@anglr/rest/date-fns
- added new
DateFnsRestDateApi
asRestDateApi
implementation using date-fns - added new
DATE_FNS_REST_DATE_API
as provider forREST_DATE_API
using date-fns implementation
- added new
- added subpackage
@anglr/rest/avsc
- package
@anglr/rest/avsc
- you need to have avro schemas available to make it working
- added new
AvroAdapterSchemaProvider
service interface for obtaining AVRO schemas - added new
AVRO_ADAPTER_SCHEMA_PROVIDER
injection token for obtainingAvroAdapterSchemaProvider
with default provider set to dummyNoAvroAdapterSchemaProviderService
- added new
AvroRequest
decorator which enables AVRO processing of request (requiresAvroAdapterInterceptor
to work) - added new
AvroResponse
decorator which enables AVRO processing of response (requiresAvroAdapterInterceptor
to work) - added new
AvroAdapterInterceptorOptions
which provides options forAvroAdapterInterceptor
disabled
- indication whether this interceptor is disabledfingerprintHeaderName
- name of header used for passing fingerprint of schematypeHeaderName
- name of header used for passing name of typecustomAcceptContentTypeHeader
- value passed to custom Accept header and Content-Type header
- added new
AvroRequestType
,AvroResponseType
,AvroRequestObj
,AvroResponseObj
interfaces which enables easier definition of additional data available in interceptor - added new
AvroAdapterInterceptor
interceptor, which allows AVRO request and response processing, it works together withAvroRequest
,AvroResponse
decorators which tells this interceptor that request or response should be processed and provides information about type
- added new
RestDateApi
used for working with date types in rest - added new
QueryStringSerializer
which is used for serialization of objects into query string - added new
REST_DATE_API
injection token used for injecting RestDateApi implementation - added new
ProgressIndicatorGroup
decorator, which allows definition of progress indicator group name for service - added new
AcceptAny
decorator, which setsAccept
http header to*/*
- added new
TextContentType
decorator, which setsContent-Type
http header totext/plain
- added new
AdditionalInfoPropertyDescriptor
, which allows definition of decorator that will filladditionalInfo
- added new
REST_METHOD_MIDDLEWARES
injection token used for injecting array of rest middleware types that defines order of rest middlewares - added new
REST_MIDDLEWARES_ORDER
injection token used for injecting array of rest middleware types that are default for each rest method - added new
BASIC_DEFAULT_REST_METHOD_MIDDLEWARES
constant with basic default array of rest middlewares order - added new
BASIC_DEFAULT_REST_MIDDLEWARES_ORDER
constant with basic defaut array of rest middlewares used for each rest method - added new
RestMiddleware
interface, that is used for definition of rest middleware classes, that are used for building request and processing response - added new
RestMiddlewareRunMethod
interface, that defines run method signature for rest middleware - added new
BuildMiddlewaresFn
interface, which is defintion ofbuildMiddleware
function type - added new
buildMiddleware
function used for building and returning array of middleware run functions - added new
ɵRESTClient
interface, which has definition of private members ofRESTClient
and makes them available in decorators - added new
NotType
type, which indicates that this type should be removed during building middlewares - added new
not
function that helps creatingNotType
which will remove specified middleware type from middlewares - added new
getType
function that gets underlyingType
forType
andNotType
- added new
isNotType
function that gets indication whether is providedType
ofNotType
- added new
ParametersTransformsObj
interface that defines object for parameter transforms - added new decorator
PATCH
allowin to create PATCH http method builder ResponseTransform
decorator now also takes function or array of functionsParameterTransform
decorator now also takes function or array of functions- response transform now also gets input arguments
- added new types that are used for helping working with metadata stored in Descriptor
RestHttpHeaders
- contains additional headers that will be addedRestResponseType
- contains response type that will be setRestResponseTransform
- contains response transform function to be calledRestDisabledInterceptors
- contains array of interceptor types that will be disabledRestReportProgress
- contains indication whether report progressRestFullHttpResponse
- contains indication whether is response full HttpResponse or just dataRestMethod
- contains data that are stored when REST method is setRestCaching
- contains methods used for handling 'caching'KeyIndex
- information about parameter key and indexParametersMetadata
- metadata for parametersParametersTransformMetadata
- contains parameters metadata for each decorated method parameters transformsRestParameters
- contains parameters metadata for each decorated method parametersRestMethodMiddlewares
- contains rest middleware types that will be used, decorator can add type if it wish to be usedParametersMiddlewaresMetadata
- contains metadata for middleware types for parameters
- added new constants for Http Header names
HTTP_HEADER_CONTENT_TYPE
for Content-Type headerHTTP_HEADER_ACCEPT
for Accept header
- added middlewares to process request and response
ReportProgressMiddleware
- middleware that is used for handling report progress setting, if not set returns only final http response with dataResponseTypeMiddleware
- middleware that is used for extracting http body and transforming it according to specified response typeResponseTransformMiddleware
- middleware that is used for adding support of response transformIgnoredInterceptorsMiddleware
- middleware that is used for adding support for ignored interceptorsAdditionalDataMiddleware
- middleware that is used for adding support for additional info to request from decoratorsProducesMiddleware
- middleware that is used for changing response typeBodyParameterMiddleware
- middleware that is used for adding body to requestHeaderParameterMiddleware
- middleware that is used for adding header from parameterPathParameterMiddleware
- middleware that is used for modifying request URL pathQueryObjectParameterMiddleware
- middleware that is used for adding query string from query objectQueryParameterMiddleware
- middleware that is used for adding query string parametersHeadersMiddleware
- middleware that is used for setting custom http headersCacheMiddleware
- middleware that is used for storing and restoring response from cacheLoggerMiddleware
- middleware that is used for logging requests and responses
- minimal supported version of Angular is
10.0.0
- minimal supported version of
@jscrpt/common
is1.2.0
- minimal supported version of
@anglr/common
is9.0.0
- minimal supported version of
crypto-js
is4.0.0
- removed
jquery-param
as dependency - added new dependency
moment
for@anglr/rest/moment
- changed response type for
getDefaultHeaders
method ofRESTClient
- completely refactored library and how it works
- changed signature of
responseInterceptor
method ofRESTClient
,Observable
now must returnHttpEvent
- changed
RESTClient
constructor parameters
DEPRECATED VERSION
- added subpackage
@anglr/rest/moment
- package
@anglr/rest/moment
- added new
MomentRestDateApi
asRestDateApi
implementation using moment js - added new
MOMENT_REST_DATE_API
as provider forREST_DATE_API
using moment js implementation
- added new
- added subpackage
@anglr/rest/date-fns
- package
@anglr/rest/date-fns
- added new
DateFnsRestDateApi
asRestDateApi
implementation using date-fns - added new
DATE_FNS_REST_DATE_API
as provider forREST_DATE_API
using date-fns implementation
- added new
- added subpackage
@anglr/rest/avsc
- package
@anglr/rest/avsc
- you need to have avro schemas available to make it working
- added new
AvroAdapterSchemaProvider
service interface for obtaining AVRO schemas - added new
AVRO_ADAPTER_SCHEMA_PROVIDER
injection token for obtainingAvroAdapterSchemaProvider
with default provider set to dummyNoAvroAdapterSchemaProviderService
- added new
AvroRequest
decorator which enables AVRO processing of request (requiresAvroAdapterInterceptor
to work) - added new
AvroResponse
decorator which enables AVRO processing of response (requiresAvroAdapterInterceptor
to work) - added new
AvroAdapterInterceptorOptions
which provides options forAvroAdapterInterceptor
disabled
- indication whether this interceptor is disabledfingerprintHeaderName
- name of header used for passing fingerprint of schematypeHeaderName
- name of header used for passing name of typecustomAcceptContentTypeHeader
- value passed to custom Accept header and Content-Type header
- added new
AvroRequestObj
,AvroResponseObj
interfaces which defines AVRO data available in interceptor - added new
AVRO_REQUEST_DATA
,AVRO_RESPONSE_DATA
http context tokens for passing AVRO request, response data into interceptor - added new
AvroAdapterInterceptor
interceptor, which allows AVRO request and response processing, it works together withAvroRequest
,AvroResponse
decorators which tells this interceptor that request or response should be processed and provides information about type
- added new
RestDateApi
used for working with date types in rest - added new
QueryStringSerializer
which is used for serialization of objects into query string - added new
REST_DATE_API
injection token used for injecting RestDateApi implementation - added new
ProgressIndicatorGroup
decorator, which allows definition of progress indicator group name for service - added new
AcceptAny
decorator, which setsAccept
http header to*/*
- added new
TextContentType
decorator, which setsContent-Type
http header totext/plain
- added new
REST_METHOD_MIDDLEWARES
injection token used for injecting array of rest middleware types that defines order of rest middlewares - added new
REST_MIDDLEWARES_ORDER
injection token used for injecting array of rest middleware types that are default for each rest method - added new
BASIC_DEFAULT_REST_METHOD_MIDDLEWARES
constant with basic default array of rest middlewares order - added new
BASIC_DEFAULT_REST_MIDDLEWARES_ORDER
constant with basic defaut array of rest middlewares used for each rest method - added new
RestMiddleware
interface, that is used for definition of rest middleware classes, that are used for building request and processing response - added new
RestMiddlewareRunMethod
interface, that defines run method signature for rest middleware - added new
BuildMiddlewaresFn
interface, which is defintion ofbuildMiddleware
function type - added new
buildMiddleware
function used for building and returning array of middleware run functions - added new
NotType
type, which indicates that this type should be removed during building middlewares - added new
not
function that helps creatingNotType
which will remove specified middleware type from middlewares - added new
getType
function that gets underlyingType
forType
andNotType
- added new
isNotType
function that gets indication whether is providedType
ofNotType
- added new
ParametersTransformsObj
interface that defines object for parameter transforms - added new
ResponseTransformFunc
function that is used as response transform function - added new
ParameterTransformFunc
function that is used as parameter transform function - added new decorator
PATCH
allowin to create PATCH http method builder ResponseTransform
decorator now also takes function or array of functionsParameterTransform
decorator now also takes function or array of functions- response transform now also gets input arguments
- added new types that are used for helping working with metadata stored in Descriptor
RestHttpHeaders
- contains additional headers that will be addedRestResponseType
- contains response type that will be setRestResponseTransform
- contains response transform function to be calledRestDisabledInterceptors
- contains array of interceptor types that will be disabledRestReportProgress
- contains indication whether report progressRestMethod
- contains data that are stored when REST method is setRestCaching
- contains methods used for handling 'caching'KeyIndex
- information about parameter key and indexParametersMetadata
- metadata for parametersParametersTransformMetadata
- contains parameters metadata for each decorated method parameters transformsRestParameters
- contains parameters metadata for each decorated method parametersRestMethodMiddlewares
- contains rest middleware types that will be used, decorator can add type if it wish to be usedParametersMiddlewaresMetadata
- contains metadata for middleware types for parameters
- added new constants for Http Header names
HTTP_HEADER_CONTENT_TYPE
for Content-Type headerHTTP_HEADER_ACCEPT
for Accept header
- added middlewares to process request and response
ReportProgressMiddleware
- middleware that is used for handling report progress setting, if not set returns only final http response with dataResponseTypeMiddleware
- middleware that is used for extracting http body and transforming it according to specified response typeResponseTransformMiddleware
- middleware that is used for adding support of response transformIgnoredInterceptorsMiddleware
- middleware that is used for adding support for ignored interceptorsProducesMiddleware
- middleware that is used for changing response typeBodyParameterMiddleware
- middleware that is used for adding body to requestHeaderParameterMiddleware
- middleware that is used for adding header from parameterPathParameterMiddleware
- middleware that is used for modifying request URL pathQueryObjectParameterMiddleware
- middleware that is used for adding query string from query objectQueryParameterMiddleware
- middleware that is used for adding query string parametersHeadersMiddleware
- middleware that is used for setting custom http headersCacheMiddleware
- middleware that is used for storing and restoring response from cacheLoggerMiddleware
- middleware that is used for logging requests and responsesProgressIndicatorGroupMiddleware
- middleware that is used for adding support for progress indicator group passing down to progress interceptor
- minimal supported version of Angular is
13.1.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/common
is8.0.0
- minimal supported version of
crypto-js
is4.0.0
- removed
jquery-param
as dependency - compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- removed dependency
@anglr/types
, all mising types used directly here - dropped support of
Node.js <= 12.20
- added new dependency
moment
for@anglr/rest/moment
- changed response type for
getDefaultHeaders
method ofRESTClient
- completely refactored library and how it works
- changed signature of
responseInterceptor
method ofRESTClient
,Observable
now must returnHttpEvent
- changed
RESTClient
constructor parameters
- package
@anglr/rest/stompjs
- fixed problem with missing default timeout, now 30 seconds
- set transport layer only to websocket
- updated to latest stable Angular 9
- added generating of API doc
- fixed compilation
aot
error
- added support for WebSockets using StompJs using
@anglr/rest/stompjs
- correctly fixed ignored interceptors with same request at same time multiple times
- fixed ignored interceptors with same request at same time multiple times
- Angular IVY ready (APF compliant package)
- added support for ES2015 compilation
- Angular 8
- stabilized for angular v6
- removed
RestTransferStateModule
,RestTransferStateService
is injected usingInjectable
RestTransferStateService
is now tree-shakeable@anglr/rest
is now marked as sideEffects free
- aktualizácia balíčkov
Angular
na6
- aktualizácia
Webpack
na verziu4
- aktualizácia
rxjs
na verziu6
- automatické generovanie dokumentácie
- updated
ResponseTransform
now should correctly setthis
to transform method
- updated usage of
IgnoredInterceptorsService
, now using correctlyrequestId
- now setting ignore interceptor also with
urlWithParams
- added support for
DisableInterceptor
decorator, which allows for specified method disable specified type of http client interceptor
- added support for
ParameterTransform
for@Body
parameter
- added new response type
BlobAndFilename
- fixed @angular dependencies
- fixed
Query
decorator for parameters with empty value
QueryObject
decorator for parameters now correctly supports array of objects as property value
- removed
TransferStateService
- added wrapper
RestTransferStateService
for angularsTransferState
- now using angulars
TransferState
for SSR
- fixed obtaining
id
fromLocationHeader
response type
- fixed obtaining
LocationHeader
response type
- fixed default response type to 'json'
- fixed processing of headers and http params
- returned typescript version back to 2.4.2 and removed distJit
- added compiled outputs for Angular JIT
- updated angular to 5.0.0 (final)
- changed dependencies of project to peerDependencies
- more strict compilation
- updated usage of rxjs, now using operators
- updated angular to >=5.0.0-rc.7
- removed dependency from
@angular/http
- using
HttpClient
instead ofHttp