Skip to content

Conversation

@superchris
Copy link
Member

Copy of the original PR by @liorix which configures build to use 1.19

liorix and others added 2 commits July 17, 2025 21:59
Fixes type inference warnings introduced in Elixir 1.19's enhanced type system:

  - Fix "expected a module" warnings by normalizing @message_builder at compile time
  - Fix "unreachable clause" warnings by using proper with expressions and case statements
  - Fix "never used" warnings by consolidating handle_init_result function clauses
  - Add missing lvs_refresh handler for complete Phoenix Channel compatibility
  - Use function_exported?/3 for robust message builder arity detection
  - Remove unused alias in mix task

  Changes maintain full backward compatibility with existing LiveState applications
  while eliminating all type system violations in Elixir 1.19.

  Resolves compilation warnings without breaking existing functionality.
@superchris superchris merged commit 18d1b7d into main Jul 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants