Skip to content

Releases: gsmlg-dev/phoenix_session_process

Version 1.0.1

Choose a tag to compare

@gsmlg gsmlg released this 12 Oct 06:05
bc66e22

Session termination now removes activity records and pending cleanup timers, fixing stale state accumulation during login rotation, logout, and cache invalidation.

  • Clear stale activity after a session process crashes.
  • Cancel timers during both scheduled and periodic TTL cleanup without synchronous calls from Cleanup to itself.
  • Preserve active sessions and remove stale activity even when no timer remains.
  • Update active dependencies within existing constraints, including Plug 1.20.3, and remove unused lock entries.

Includes #59; fixes #58. Validated with 184 tests, strict compilation, formatting, Credo, Dialyzer, documentation generation, and Hex package build. GitHub tests and benchmarks passed before merge.

Install: {:phoenix_session_process, "~> 1.0.1"}

Package: https://hex.pm/packages/phoenix_session_process/1.0.1
Documentation: https://hexdocs.pm/phoenix_session_process/1.0.1/

Version 1.0.0-rc.2

Choose a tag to compare

@gsmlg gsmlg released this 01 Nov 08:39

Breaking Changes

  • Removed deprecated start/1,2,3 functions (use start_session/1,2 instead)
  • start_session/2 no longer accepts module as second argument (use start_session(id, module: Mod) instead)

Changes in RC.2

API Simplification

  • Refactored start_session to 2 arities with keyword options
  • Cleaner, more flexible API for starting sessions
  • Examples:
    • start_session(session_id)
    • start_session(session_id, module: MyModule)
    • start_session(session_id, args: init_args)
    • start_session(session_id, module: MyModule, args: init_args)

All Backward Compatibility Removed

  • Removed all deprecated start/1,2,3 functions
  • Removed backward compatibility guard clauses
  • Clean codebase ready for v1.0 production release

Quality

  • All 148 tests passing
  • Credo and Dialyzer compliant
  • Production ready