Skip to content

Releases: bartventer/gorm-multitenancy

v6.0.0

12 May 17:37
Compare
Choose a tag to compare

6.0.0 (2024-05-12)

Code Refactoring

  • drivers/postgres: Move and rename schema/postgres to drivers/postgres/schema (5893893)

Features

  • upgrade: Update gorm-multitenancy from v5 to v6 (fa5e24b)
  • drivers/postgres: Add TenantPKModel with SchemaName as primary key (c7213b3)

Performance Improvements

  • drivers/postgres: Improve performance of SetSearchPath benchmarks (c459c4d)
  • schema/postgres: Remove fmt.Sprintf call in SetSearchPath (49ec0b3)
  • scopes: Improve table name caching performance (33441b1)
  • scopes: Remove reflection dependency from WithTenantSchema (9c6240d)

BREAKING CHANGES

  • upgrade: All file references to github.com/bartventer/gorm-multitenancy have been updated from v5 to v6. This major version upgrade may introduce breaking changes that require updates in the code where this package is imported.
  • drivers/postgres: Moved and renamed schema/postgres to drivers/postgres/schema . This change aligns the package location and name with its purpose of providing utilities for managing PostgreSQL schemas in a multi-tenant application. The relocation and renaming improve code organization and clarity. This is a breaking change and requires updates in the code where this package is imported.

v5.11.0

09 May 14:01
Compare
Choose a tag to compare

5.11.0 (2024-05-09)

Bug Fixes

  • deps: Bump dependencies (74e1af3)
  • middleware: Consolidate middleware into nethttp package (fba8e16)

Features

  • schema/postgres: Add ValidateTenantName function for validating tenant names (7118bf6)

v5.10.1

26 Apr 12:21
f0cb6b2
Compare
Choose a tag to compare

5.10.1 (2024-04-26)

Chores

  • deps: bump gorm.io/gorm from 1.25.9 to 1.25.10 (#11) (f0cb6b2)

v5.10.0

26 Apr 10:59
Compare
Choose a tag to compare

5.10.0 (2024-04-26)

Features

  • examples: Move echo and net/http examples from internal/examples to examples directory. (5afea8d)

v5.9.0

22 Apr 06:37
81eb383
Compare
Choose a tag to compare

5.9.0 (2024-04-22)

Features

  • deps: bump github.com/labstack/echo/v4 from 4.11.4 to 4.12.0 (#9) (81eb383)

v5.8.0

19 Apr 21:26
72c19cc
Compare
Choose a tag to compare

5.8.0 (2024-04-19)

Features

  • deps: bump golang.org/x/net in the go_modules group (#8) (72c19cc)

v5.7.0

08 Apr 17:17
Compare
Choose a tag to compare

5.7.0 (2024-04-08)

Bug Fixes

  • drivers/postgres: address SQL-injection security risk on SET operations (f64daaa)
  • schema/postgres: quote value in SetSearchPath (0cabf88)

Features

  • add golangci-lint for improved linting (7aa6c12)

v5.6.0

02 Apr 14:33
7e48d44
Compare
Choose a tag to compare

5.6.0 (2024-04-02)

Features

  • deps: bump github.com/jackc/pgx/v5 from 5.5.3 to 5.5.4 (#7) (7e48d44)

v5.5.0

28 Mar 21:42
924aed6
Compare
Choose a tag to compare

5.5.0 (2024-03-28)

Features

  • deps: bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#4) (924aed6)

v5.4.0

28 Mar 21:36
54e56a5
Compare
Choose a tag to compare

5.4.0 (2024-03-28)

Features

  • deps: bump gorm.io/driver/postgres from 1.5.6 to 1.5.7 (#5) (54e56a5)