Skip to content

Latest commit

 

History

History
276 lines (230 loc) · 15.6 KB

File metadata and controls

276 lines (230 loc) · 15.6 KB

Change Log

All notable changes to this project will be documented in this file. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

v4.3.0 - 2026-02-11

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.2.0...v4.3.0 by @obervinov

🚀 Features

  • Rate Limits Refactoring: Decoupled rate limiting from authorization logic
    • Rate limits now work independently without requiring role_id parameter
    • Added elif block in user_access_check() for rate limiting without authorization
    • Maintains backward compatibility: existing code with role_id continues to work
  • Storage Bug Fix: Fixed log_user_request() to always insert rate_limits column value
    • Previously skipped rate_limits column when value was None, causing database inconsistencies
    • Now always inserts NULL when rate_limits is None

💥 Breaking Changes

  • None - fully backward compatible. Existing implementations with role_id parameter continue to work as before.

🐛 Bug Fixes

  • Fixed architectural constraint where rate limits calculation was only performed inside authorization block
  • Fixed SQL insertion bug in Storage.log_user_request() when rate_limits=None

v4.2.0 - 2025-12-31

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.1.3...v4.2.0 by @obervinov in #78

🚀 Features

  • Add generic token-based authentication support for frontend integration (web UIs, mobile apps, CLI tools)
    • New methods: issue_token(), validate_token(), revoke_token()
    • PBKDF2 hashing with 100,000 iterations and unique salts
    • Single-use token enforcement and automatic revocation
    • Backward compatible: gracefully handles missing users_tokens table

v4.1.3 - 2025-12-24

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.1.2...v4.1.3 by @obervinov in #77

🚀 Features

  • upgrade dependencies to latest versions

v4.1.2 - 2025-07-15

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.1.1...v4.1.2 by @obervinov in #63

🚀 Features

  • bump dependencies version

v4.1.1 - 2025-03-26

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.1.0...v4.1.1 by @obervinov in #55

🐛 Bug Fixes

  • add rollback transaction action in the Storage class exception handling block to prevent critical exceptions from breaking the database connection

v4.1.0 - 2025-02-21

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.0.2...v4.1.0 by @obervinov in #54

🚀 Features

  • bump dependencies version
  • bump workflows version to 2.1.1
  • the functionality has been returned to establish its own connection to the database (in addition to the possibility of transferring an existing connection object) for more stable operation of the module with correct credentials via Vault DBEngine (for example, the bug obervinov/pyinstabot-downloader#118)

💥 Breaking Changes

  • The vault input argument of the Users() class now expects an object or a new dict format {'instance': <vault_object>, 'role': 'my-dbengine-role'}. The previous vault dictionary format is no longer supported.

v4.0.2 - 2024-12-19

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.0.1...v4.0.2 by @obervinov in #53

🚀 Features

🐛 Bug Fixes

v4.0.1 - 2024-10-22

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v4.0.0...v4.0.1 by @obervinov in #50

📚 Documentation

  • actualized documentation in the README.md file

v4.0.0 - 2024-10-22

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v3.0.2...v4.0.0 by @obervinov in #49

💥 Breaking Changes

  • bump python version to 3.12
  • some arguments of the Users class and the Storage class have been replaced. Detailed information can be found in the DEPRECATED.md file

🚀 Features

🐛 Bug Fixes

v3.0.2 - 2024-09-10

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v3.0.1...v3.0.2 by @obervinov in #46

🐛 Bug Fixes

  • fixed hardcoded vault dbengine mount_point if vault argument is a dict

v3.0.1 - 2024-09-10

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v3.0.0...v3.0.1 by @obervinov in #45

🐛 Bug Fixes

  • replace wrong dependencies psycopg2 -> psycopg2-binary in pyproject.toml

v3.0.0 - 2024-08-22

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.5...v3.0.0 by @obervinov in #43

💥 Breaking Changes

🚀 Features

v2.0.5 - 2024-05-28

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.4...v2.0.5 by @obervinov in #41

📚 Documentation

  • Update *.md templates

🚀 Features

  • Add github-actions in dependency bot
  • Bump workflow version to v1.2.2
  • Add new workflow jobs: pr and milestone

🐛 Bug Fixes

v2.0.4 - 2024-03-24

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.3...v2.0.4 by @obervinov in #39

🚀 Features

  • add custom exceptions

🐛 Bug Fixes

v2.0.3 - 2024-02-05

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.2...v2.0.3 by @obervinov in #36

🐛 Bug Fixes

  • Fix support python 3.9 in the package and workflows

v2.0.2 - 2024-01-29

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.1...v2.0.2 by @obervinov in #35

📚 Documentation

🐛 Bug Fixes

v2.0.1 - 2024-01-29

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v2.0.0...v2.0.1 by @obervinov in #31

📚 Documentation

🐛 Bug Fixes

🚀 Features

v2.0.0 - 2023-11-07

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.5...v2.0.0 by @obervinov in #24

📚 Documentation

💥 Breaking Changes

🚀 Features

v1.0.5 - 2023-06-21

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.4...v1.0.5 by @obervinov in #20

🐛 Bug Fixes

🚀 Features

v1.0.4 - 2023-06-18

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.3...v1.0.4 by @obervinov in #15

🐛 Bug Fixes

📚 Documentation

v1.0.3 - 2023-05-31

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.2...v1.0.3 by @obervinov in #9

🐛 Bug Fixes

🚀 Features

📚 Documentation

v1.0.2 - 2023-03-28

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.1...v1.0.2 by @obervinov in #2

🐛 Bug Fixes

  • renamed the directory with the code to the name of the module - users
  • fixed errors in the doc string and the general code format
  • log string formation rewritten from f-string to %s lezzy format

📚 Documentation

  • updated and expanded the documentation in the file README.md

💥 Breaking Changes

  • changed the structure of saving login events and the structure of storing access rights for user ids
  • removed bot_name argument in UsersAuth.__init__
  • renamed method check_permission() -> check_permissions()
  • renamed argument chat_id -> user_id in method check_permissions()
  • changed the return result success/failed -> allow/deny
  • the functionality of recording events in Vault has been moved to a separate method - record_event()

🚀 Features

v1.0.1 - 2023-02-28

What's Changed

Full Changelog: https://github.com/obervinov/users-package/compare/v1.0.0...v1.0.1 by @obervinov in #1

🐛 Bug Fixes

  • updated the code in accordance with the recommendations of flake8 and pylint
  • adjusted pyproject.toml and setup.py for package delivery

📚 Documentation

  • updated and expanded the documentation in the file README.md

💥 Breaking Changes

  • global code recycling: removed old artifacts and more comments added to the code

🚀 Features

v1.0.0 - 2022-11-05

What's Changed

Full Changelog: https://github.com/obervinov/users-package/commits/v1.0.0

💥 Breaking Changes

  • Module release