package: The upgrade from v4 to v5 introduces changes that are not backward compatible. Please refer to the documentation for more details.
scopes: The WithTenantSchema function in scopes/scopes.go no longer sets the tenant in context. This change may affect the behavior of any code that relies on the tenant being set in the context after calling this function.
postgres: The SetSearchPath function in schema/postgres/postgres.go no longer sets the tenant in context. The function signature has also been changed to return (*gorm.DB, ResetSearchPath) instead of (*gorm.DB, ResetSearchPath, error).
Added native echo context support for echo middleware instead of calling the net/http middleware. Added the ExtractDomain function which is in sync with the regex check of the SchemaName field of the TenantModel. Renamed the context package to tenantcontext. Further added unit tests for all examples.