Releases: JMTamayo/page-hunter
Releases · JMTamayo/page-hunter
Version v0.5.0 🦀
What's New
Changed:
- 🔨
SqlxPagination
requires a single connection and not a complete connection pool [⚠️ BREAKING CHANGE] by @JMTamayo.
What's Changed
Full Changelog: v0.4.2...v0.5.0
Version v0.4.2 🦀
Version v0.4.1 🦀
What's New
Fixed:
- 🪚 Fix README.md posting on crates.io @JMTamayo.
What's Changed
Full Changelog: v0.4.0...v0.4.1
Version v0.4.0 🦀
What's New
Added:
- 🧑🏻💻 Implement
RecordsPagination
to paginate and bind records into aPage
andBook
by @JMTamayo.
Changed:
- 🔨 Include unit tests inside each module by @JMTamayo.
- 🔨 Implement
SqlxPagination
in a more general way that applies to PostgreSQL, MySQL, and SQLite. Unify pg-sqlx, mysql-sqlx and sqlite-sqlx features into sqlx feature by @JMTamayo. - 🔨 Upgrade utoipa version to greater than or equal to 0.5.3 by @JMTamayo.
- 🔨 Upgrade serde version to greater than or equal to 1.0.210 by @JMTamayo.
- 🔨 Optimize the implementation of the
Debug
,Clone
,Serialize
andToSchema
traits by @JMTamayo.
What's Changed
- Improve CI and update Utopia feature by @JMTamayo in #29
- Optimize traits implementation and update examples by @JMTamayo in #30
- Implement RecordsPagination and improve documentation by @JMTamayo in #31
Full Changelog: v0.3.1...v0.4.0
Version v0.3.1 🦀
What's New
Fixed:
- 🪚 Restrict utoipa version to greater than or equal to 0.4.2 and less than 0.5.0 by @JMTamayo.
Changed:
- 🔨 Improve Cargo.toml file format @JMTamayo.
What's Changed
- Restrict the utoipa version to be greater than or equal to 0.4.2 and less than 5.0.0 by @JMTamayo in #27
- Upgrade version from v0.3.0 to v0.3.1 by @JMTamayo in #28
Full Changelog: v0.3.0...v0.3.1
Version v0.3.0 🦀
What's new
Added:
- 🧑🏻💻 Implement
SqlxPagination
forQueryBuilder<Sqlite>
to paginate results from a SQL query into aPage
. Only available when sqlite-sqlx feature is enabled by @JosiahParry.
Fixed:
- 🪚 Update sqlx version to >=0.8.1 to prevent issue RUSTSEC-2024-0363 🚨 by @JMTamayo.
Changed:
- 🔨 Rename
ErrorKind::FieldValueError
toErrorKind::InvalidValue
[⚠️ BREAKING CHANGE] by @JMTamayo. - 🔨 Rename
ErrorKind::SQLxError
toErrorKind::SQLx
[⚠️ BREAKING CHANGE] by @JMTamayo. - 🔨 Rename method
is_field_value_error()
tois_invalid_value_error()
inErrorKind
[⚠️ BREAKING CHANGE] by @JMTamayo. - 🔨 Redefine the package structure into new modules, while maintaining the way each artifact is imported from lib by @JMTamayo.
Docs:
- 📝 Update project documentation to include feature sqlite-sqlx by @JMTamayo.
What's Changed
- feat: sqlite-sqlx feature by @JosiahParry in #21
- Feature/v0.3.0 by @JMTamayo in #24
- Remove use of $PWD from tests and CI by @JMTamayo in #25
- SQLx issue and Project Documentation by @JMTamayo in #26
New Contributors
- @JosiahParry made their first contribution in #21
Full Changelog: v0.2.0...v0.3.0
Version v0.2.0 🦀
What's new
Added:
- 🧑🏻💻 Implement
ErrorKind::SQLxError
when mysql-sqlx or pg-sqlx features are enabled [BREAKING CHANGE]. - 🧑🏻💻 Implement
is_sqlx_error()
method forErrorKind
according to its new structure when mysql-sqlx or pg-sqlx features are enabled [BREAKING CHANGE]. - 🧑🏻💻 Implement From<sqlx::Error> for
PaginationError
when mysql-sqlx or pg-sqlx features are enabled. - 🧑🏻💻 Including example of use with axum.
Changed:
- 🔨 Derive and Display implementations for
PaginationError
andErrorKind
according to the newErrorKind
structure [BREAKING CHANGE]. - 🔨 Rename
SqlxPagination
toSQLxPagination
[BREAKING CHANGE].
Removed:
- ❌ Remove
ErrorKind::DatabaseError
andErrorKind::FromRowError
when mysql-sqlx or pg-sqlx features are enabled [BREAKING CHANGE]. - ❌ Remove
is_database_error()
andis_from_row_error()
methods fromErrorKind
according to its new structure [BREAKING CHANGE]. - ❌ Remove Clone implementation for
PaginationError
andErrorKind
[BREAKING CHANGE].
What's Changed
Full Changelog: v0.1.4...v0.2.0
Version v0.1.4 🦀
What's new
Added:
- 🧑🏻💻 Implement utoipa::ToSchema for
Page
andBook
. Only available when utoipa feature is enabled. - 🧑🏻💻 Implement examples folder.
Fixed:
- 🪚 Fix external crates importation for module sqlx_pagination.rs.
Docs:
- 📝 Update project documentation.
What's Changed
- Feature/v0.1.4 by @JMTamayo in #14
- fixing small typo in README.md by @JMTamayo in #15
- fixing small typo in README.md by @JMTamayo in #16
Full Changelog: v0.1.3...v0.1.4
Version v0.1.3 🦀
What's new
Added:
- 🧑🏻💻 Implement
ErrorKind::FromRowError
. - 🧑🏻💻 Implement DB migrations with sqlx for the creation of the MySQL test database.
- 🧑🏻💻 Implement SqlxPagination to generalize the implementation of pagination methods using sqlx.
- 🧑🏻💻 Implement SqlxPagination for
QueryBuilder<MySQL>
to paginate results from a SQL query into aPage
. Only available on mysql-sqlx feature is enabled. - 🧑🏻💻 Implement SqlxPagination for
QueryBuilder<Postgres>
to paginate results from a SQL query into aPage
. Only available on pg-sqlx feature is enabled. - 🧑🏻💻 Implement integration test for pagination with mysql-sqlx.
Changed:
- 🔨 Refactor of the pagination.rs module to create the records_pagination.rs and sqlx_pagination.rs modules. Renaming the test module test_sqlx_postgres_pagination.rs to test_sqlx_pagination.rs.
Removed:
- ❌ Remove From sqlx::Error for
PaginationError
.
Docs:
- 📝 Update project documentation.
What's Changed
Full Changelog: v0.1.2...v0.1.3
Version v0.1.2 🦀
What's new
Added:
- 🧑🏻💻 Implementation of
ErrorKind::DatabaseError
. - 🧑🏻💻 Implementation of From sqlx::Error for
PaginationError
. - 🧑🏻💻 Paginate results from a SQL query into a
Page
from a PostgreSQL database using sqlx. Implementation of the PgSqlxPagination forQueryBuilder
. Only available on pg-sqlx feature is enabled. - 🧑🏻💻 Including unitary test for the Debug implementation for
Book
. - 🧑🏻💻 Including checking project format in ci.yml.
- 🧑🏻💻 Implementation of DB migrations with sqlx for the creation of the postgres test database.
- 🧑🏻💻 Implementation of integration test for pagination with pg-sqlx in CI.
Changed:
- 🔨 Changing the implementation of Clone and Debug using derive to implement directly in
ErrorKind
andPaginationError
. - 🔨 Changing the implementation of Clone and Debug using derive to implement directly in
Page
andBook
. - 🔨 Updating unit tests to get 100% coverage on the errors module.
Docs:
- 📝 Updating project documentation to include new implementations, utilities and development section.
What's Changed
Full Changelog: v0.1.1...v0.1.2