v4.0.0-alpha3
Pre-releaseBreaking changes:
#520: Patch requests where the payload does not include the id(s) of the target resource(s) is no longer accepted.
#519: UpdateAsync(TId id, TEnity entity)
was replaced with UpdateAsync(TEnity entity)
#478: RelationshipAttribute.Type
was replaced with RelationshipAttribute.DependentType
#478: EntityResourceService constructor EntityResourceService(IJsonApiContext, IEntityRepository<TEntity, TId>, ILoggerFactory, loggerFactory, IResourceMapper )
was deprecated and replaced with EntityResourceService(IJsonApiContext, IEntityRepository<TEntity, TId>, IResourceHookExecutor = null, IResourceMapper mapper = null, ILoggerFactory = null)
Bug fixes / clean up
#522 An issue with deserializing timespans was fixed. Thanks to @ngboardway!
#518: The DefaultEntityRepository
has had a major cleanup. Thanks to @wisepotato for reviewing!
- problems errors of with entities being attached to the
DbContext
with the usage of hooks and custom services has been fixed - changes done to
entity
in a custom service before calling the oldUpdateAsync(TId id, TEnity entity)
repository method were not actually saved to the database. - Progress was made to decouple
IJsonApiContext
(see #512) from the repository layer by removing usage ofHasOnePointers
andHasManyPointers
.
New features
#502 support for "implicit removal" of relationships
#478 Resource Hooks, see the usage guide for detailed description. Thanks @wisepotato, @milosloub and @jaredcnance for extensive reviewing!