Updated to Angular 19.
Updated to Angular 18.
Fixed issue-120.
Updated to Angular 17.
Fixed issue-110.
Added ability to pass Resource
's relations as JSON
objects instead their self links, see issue-113.
More info in documentation.
Fixed issue-110.
Updated to Angular 16.
Updated to Angular 15.
Updated to Angular 14.
Fixed issue-92.
Fixed issue-90.
Implemented enhancement from issue-76.
- Added support for
_embedded
Resource properties. Spring HATEOAS ref.
Fixed issue-81.
Added cache modes implemented using issue-77. Read more about cache modes here.
Fixed issue-72.
Implemented enhancement from issue-70.
- Added
HateoasResourceService#evictResourcesCache
method that allows to evict all resources cache.
Fixed issue-68.
- Fixed issue-66.
Added new Lib configuration that allows to specify HAL format for resource collections. See more in docs.
- Fixed issue-61.
- Realized feature from issue-57.
Now you can use different URLs to retrieve resources by configuring several routes. Read more about it in documentation.
- Fixed issue-58.
- Added new lib dependency on date-fns lib. It allows parsing Dates with formats.
- Added new config option that allow to specify Date format.
This date format will be used to parse
Resource JSON
property withDate
value asDate
type object instead of simple string.Read more about this option in documentation
- Fixed issue-55.
Now resource's fields with
Date
type will be asDate
objects (before was asstring
).
- Fixed issue-49.
- Changed the lib services registration to provide service as singletons with Angular tree-shaking.
- Updated README.md Configuration section.
Fixed issue-45.
Fixed typo in issue-44.
Fixed reopened issue.
Deleted unnecessary customPage
validations.
Fixed issue.
Fixed issue.
Fixed issue.
Added initialization NgxHateoasClientConfigurationService
to root module constructor that allows using NgxHateoasClientModule.forRoot()
in test classes.
Added testing documentation.
Fixed issue.
Updated to Angular 13.
This version supports only from Angular 12 and above that uses
Ivy compilation
.Angular 13 package tools are no longer support old
View Engine
compilation. Now it uses onlyIvy
compilation.
Now the lib
have 2 versions for Angular 6-11
2.x.x and Angular 12-13+
3.x.x that difference between that one is support old View Engine
compilation, another uses only new Ivy
compilation.
Versions that support old View Engine
compilation will place on ng-ve branch of the repo.
I strongly recommend migrating to Angular Ivy compilation and use new lib version, because support two versions is not simple and in future old versions can not be supported.
Updated Angular to 12 version.
Resolved issue.
-
RequestOption
changes:Added new params to RequestOption:
headers?: HttpHeaders | {[header: string]: string | string[];}; reportProgress?: boolean; withCredentials?: boolean;
Now
RequestOption
is base options for all resource requests. It is contains all usefully params from AngularHttpClient
. -
GetOption
changes:Now
GetOption
extendsRequestOption
that means you can passRequestOption
params withinGetOption
. -
HateoasResourceService
changes:To
createResource
added optional param:options?: RequestOption
To
updateResource
added optional param:options?: RequestOption
To
updateResourceById
added optional param:options?: RequestOption
To
patchResource
added optional param:options?: RequestOption
To
patchResourceById
added optional param:options?: RequestOption
Added hasRelation()
function to Resource
class to check has or not resource some link.
For more information see pull request.
Changed determination resource type algorithm.
Now:
ResourceCollection
can contain only two props _embedded
and _links
.
PagedResourceCollection
can contain three props _embedded
, _links
, and page
.
Resource
can contain additional _embedded
property.
Release 2.0.0 version
Updated peer dependencies
- Changed system that creates resource class from the server-side response. Before was used the standard
Resource
orEmbeddedResource
classes respectively, now used concrete resource type class. - Changed subtype support see new subtype system more here.
- Added @HateoasResource, @HateoasEmbeddedResource, @HateoasProjection, @ProjectionRel decorators.
- Added new resource projection support. See more about it here.
- Deleted
Resource.isResourceOf
method, now you can use standardinstanceof
statement. HateoasResourceService
changed the first param fromresourceName
toresourceType
.HateoasResourceOperation
constructor param changed fromresourceName
toresourceType
.- Added
warn
logging level. - Documentation and migration-guide changed.
bindRelation
now accepts entity and an array of entitiesclearCollectionRelation
renamed tounbindCollectionRelation
README.md was updated.
Deleted Resource
methods:
updateResource
Changed Resource
methods:
addRelation
was renamed toaddCollectionRelation
bindRelation
changed signature method now it accepts an array of entities instead single entity.
Added Resource
methods:
unbindResource
a new method that used with single resource relations to delete bound relations.
README.md was updated.
Updated Angular to 11 version.