-database.Paginator
now uses a cloned statement for the count query to avoid modifying the original statement.
- Wrap errors using
errors.New()
in many places that were not already doing it. - Added
errors.Errorf
, which is a shortcut forerrors.New(fmt.Errorf())
. - ⚠️
errors.New()
anderrors.NewSkip()
now returnnil
if givennil
as argument.nil
values in[]error
and[]any
reasons are now ignored. - ⚠️
errors.New()
,errors.NewSkip()
anderrors.Errorf()
now returnerror
interface instead of*errors.Error
to improve ability to compare tonil
. - Added a safeguard on
Response.error()
againstnil
errors. - Added a safeguard on
slog.Logger.logError()
againstnil
errors. - Updated internal uses of the util
errors
package according to the new changes described above.