Releases: freerware/work
Releases · freerware/work
Introduce custom cache client support.
- Introduction of
unit.WithCacheClientoptions that allows consumers to provide their own cache clients. - Rename the
work.UnitLoggerandwork.UnitScopetowork.UnitZapLoggerandwork.UnitTallyMetricScope. - Unexport properties of
work.UnitOptions. - Bump various dependencies:
github.com/stretchr/testifyfrom1.8.1to1.8.2in/v4github.com/stretchr/testifyfrom1.8.1to1.8.2in/v3github.com/avast/retry-go/v4from4.1.0to4.3.3in/v4github.com/uber-go/tally/v4from4.1.3to 4.1.6 in/v4go.uber.org/multierrfrom1.8.0to1.9.0in /v4go.uber.org/multierrfrom1.8.0to1.9.0in/v3go.uber.org/zapfrom1.23.0to1.24.0in/v4
Introduce InsertFunc, UpdateFunc, and DeleteFunc options.
- Introduce
unit.InsertFunc,unit.UpdateFunc, andunit.DeleteFuncoptions. - Refactored internals to to use
unit.DataMapperFuncinstead ofunit.DataMapper. - Removed
DataMappersproperty fromunit.Options. - Renamed
work.DataMappertowork.UnitDataMapperfor consistency.
Introduce work unit caching.
- Introduces the work unit cache.
- Each time the
Registermethod is called, the provided entities will be placed in a cache if deemed eligible (have implemented theidentifiereroriderinterfaces). - Entities will be removed from the cache if specified to
AlterorRemove.
- Each time the
Dependency upgrades to address vulnerability alerts.
- Various dependency upgrades to address vulnerability alerts.
- Upgraded
github.com/uber-go/tallydependency to versionv3.4.2. - Upgraded
github.com/stretchr/testifydependency to versionv1.8.0. - Upgraded
go.uber.org/zap dependencyto versionv1.21.1.
- Upgraded
Dependency upgrades to address vulnerability alerts.
- Various dependency upgrades to address vulnerability alerts.
- Upgraded
github.com/uber-go/tallydependency to versionv3.4.2. - Upgraded
github.com/stretchr/testifydependency to versionv1.8.0. - Upgraded
go.uber.org/zap dependencyto versionv1.21.1.
- Upgraded
Introduce V4 Enhancements.
- Switch from
coverallstocodecov. - Introduce initial round of benchmarks.
- Introduce support for 4 more additional metrics.
unit.retry.attemptunit.insertunit.updateunit.delete
- Improve documentation & switch to
pkg.go.dev. - Introduce metric demo.
make demo
Introduce V4.
- Introduce
unitpackage for aliasing.- Reduces API footprint.
- Often "flows" better.
- Introduce retries and related configuration.
- Reconsolidate data mappers abstractions into single
DataMapperinterface. - Introduce
MapperContext. - Alter
Saveto becontext.Contextaware. - Refactor
work.NewUnitto dynamically choose which type of work unit to
create based on provided options. - Reconsolidate uniter functionality.