Skip to content

Releases: JMTamayo/page-hunter

Version v0.5.0 🦀

16 Jan 02:55
bea6184
Compare
Choose a tag to compare

What's New

Changed:

  • 🔨 SqlxPagination requires a single connection and not a complete connection pool [⚠️ BREAKING CHANGE] by @JMTamayo.

What's Changed

  • SQLxPagination requires a single connection instead of a complete pool by @JMTamayo in #35

Full Changelog: v0.4.2...v0.5.0

Version v0.4.2 🦀

11 Jan 05:38
905103c
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.1...v0.4.2

Version v0.4.1 🦀

11 Jan 05:25
0d21d29
Compare
Choose a tag to compare

What's New

Fixed:

  • 🪚 Fix README.md posting on crates.io @JMTamayo.

What's Changed

  • Update page-hunter version from v0.4.0 to v0.4.1 by @JMTamayo in #32

Full Changelog: v0.4.0...v0.4.1

Version v0.4.0 🦀

11 Jan 05:04
6fe0087
Compare
Choose a tag to compare

What's New

Added:

  • 🧑🏻‍💻 Implement RecordsPagination to paginate and bind records into a Page and Book 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 and ToSchema 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 🦀

05 Jan 12:49
592d062
Compare
Choose a tag to compare

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 🦀

13 Oct 19:54
4c5a9b0
Compare
Choose a tag to compare

What's new

Added:

  • 🧑🏻‍💻 Implement SqlxPagination for QueryBuilder<Sqlite> to paginate results from a SQL query into a Page. Only available when sqlite-sqlx feature is enabled by @JosiahParry.

Fixed:

Changed:

  • 🔨 Rename ErrorKind::FieldValueError to ErrorKind::InvalidValue [⚠️ BREAKING CHANGE] by @JMTamayo.
  • 🔨 Rename ErrorKind::SQLxError to ErrorKind::SQLx [⚠️ BREAKING CHANGE] by @JMTamayo.
  • 🔨 Rename method is_field_value_error() to is_invalid_value_error() in ErrorKind [⚠️ 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

New Contributors

Full Changelog: v0.2.0...v0.3.0

Version v0.2.0 🦀

01 Jun 13:29
d0b9519
Compare
Choose a tag to compare

What's new

Added:

  • 🧑🏻‍💻 Implement ErrorKind::SQLxError when mysql-sqlx or pg-sqlx features are enabled [BREAKING CHANGE].
  • 🧑🏻‍💻 Implement is_sqlx_error() method for ErrorKind 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 and ErrorKind according to the new ErrorKind structure [BREAKING CHANGE].
  • 🔨 Rename SqlxPagination to SQLxPagination [BREAKING CHANGE].

Removed:

  • ❌ Remove ErrorKind::DatabaseError and ErrorKind::FromRowError when mysql-sqlx or pg-sqlx features are enabled [BREAKING CHANGE].
  • ❌ Remove is_database_error() and is_from_row_error() methods from ErrorKind according to its new structure [BREAKING CHANGE].
  • ❌ Remove Clone implementation for PaginationError and ErrorKind [BREAKING CHANGE].

What's Changed

Full Changelog: v0.1.4...v0.2.0

Version v0.1.4 🦀

30 May 01:20
de2e2f0
Compare
Choose a tag to compare

What's new

Added:

  • 🧑🏻‍💻 Implement utoipa::ToSchema for Page and Book. 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

Full Changelog: v0.1.3...v0.1.4

Version v0.1.3 🦀

25 May 03:12
01179eb
Compare
Choose a tag to compare

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 a Page. Only available on mysql-sqlx feature is enabled.
  • 🧑🏻‍💻 Implement SqlxPagination for QueryBuilder<Postgres> to paginate results from a SQL query into a Page. 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 🦀

23 May 02:52
2255ac4
Compare
Choose a tag to compare

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 for QueryBuilder. 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 and PaginationError.
  • 🔨 Changing the implementation of Clone and Debug using derive to implement directly in Page and Book.
  • 🔨 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