phoenix_live_view changelog


Welcome to the latest updates, where we've sprinkled in a dash of magic and a sprinkle of fun to keep your development journey smooth and exciting! Here's what's new and improved:

  • New Feature: Overwrite Hook Properties 🎣
    We've given the ViewHook class a little makeover! Now, you can overwrite hook properties when you need to, and we'll just give you a friendly nudge with a warning instead of blocking you. This change helps keep things backward compatible, so your existing hooks won't throw a tantrum. Plus, we've beefed up the test suite to make sure everything works like a charm while keeping you in the loop with console warnings.

  • Improvement: Asset Update 🚀
    We've polished up some of those static asset files in the Phoenix LiveView framework. While we didn't spill all the beans on the specifics, you can expect enhancements that might boost performance, compatibility, or even sneak in some new features. Your interactive web apps are in for a treat!

  • Chore: Disable Fail-Fast for CI 🔧
    We've tweaked the CI workflow to disable the fail-fast feature. Now, all jobs in the CI pipeline will run to completion, giving you a full picture of what's going on, even if something trips up. This change aims to provide a more thorough testing approach, helping you spot multiple issues at once like a pro detective!

  • Improvement: Fix Build Against Elixir Main 🛠️
    To keep things running smoothly, we've updated the CI configuration to use "main-otp-28" instead of the plain "main" for Elixir. This ensures compatibility with the latest and greatest from Elixir's OTP 28 release, preventing any sneaky warnings or issues. Your builds are now more robust and ready to rock!

Happy coding, and may your bugs be ever in your favor! 😊

Included Commits

2025-07-01T13:26:33 See commit

The commit titled "fix build against elixir main (#3869)" modifies the continuous integration configuration file for GitHub workflows. Specifically, it updates the Elixir version used in the CI pipeline from "main" to "main-otp-28," ensuring compatibility with the latest features and fixes available in Elixir's OTP 28 release.

This change is aimed at preventing potential warnings and issues that could arise from using an unstable version of Elixir. By specifying "main-otp-28," the workflow will now run tests and linting against a more stable and reliable version of Elixir, thereby improving the overall robustness of the build process.

Files changed

  • .github/workflows/ci.yml
2025-07-03T17:03:37 See commit

The commit titled "disable fail-fast for CI" modifies the Continuous Integration (CI) workflow configuration in the .github/workflows/ci.yml file. Specifically, it changes the strategy setting to disable the fail-fast feature, which allows all jobs in the CI pipeline to run to completion rather than stopping immediately when a job fails.

By setting fail-fast: false, the CI process will now provide a more comprehensive overview of all tests and jobs, even if some fail, which can be beneficial for identifying multiple issues at once. This change reflects a shift towards a more thorough testing approach in the CI pipeline.

Files changed

  • .github/workflows/ci.yml
2025-06-30T08:50:37 See commit

This commit introduces a modification to the ViewHook class in the phoenix_live_view library, allowing for the overwriting of hook properties while logging a warning instead of preventing it. The change was made to maintain backwards compatibility, as some existing hooks rely on the ability to overwrite properties. The code previously included checks that silently prioritized the ViewHook's own properties, but this has been adjusted to log a warning when a core property is overwritten, thus informing users of potential issues without breaking existing functionality.

Additionally, the commit updates the test suite to validate this new behavior. A new test case demonstrates that a property can be successfully overwritten and that the intended functionality of the hook remains intact. This ensures that while users can overwrite properties, they are made aware of the action through console warnings, thus balancing flexibility with caution in the use of core properties.

Files changed

  • assets/js/phoenix_live_view/view_hook.ts
  • assets/test/view_test.ts
2025-06-30T08:51:22 See commit

This commit involves updates to several static asset files related to Phoenix LiveView, a framework for building interactive web applications in Elixir. The modified files include both JavaScript and source map files, specifically phoenix_live_view.cjs.js, phoenix_live_view.esm.js, phoenix_live_view.js, and their corresponding minified and source map versions.

The changes suggest enhancements or bug fixes to the LiveView functionalities, as these files are essential for the framework's operation in rendering dynamic content on the client side. The updates may improve performance, compatibility, or introduce new features, although specific details about the nature of the changes are not provided in the summary.

Files changed

  • priv/static/phoenix_live_view.cjs.js
  • priv/static/phoenix_live_view.cjs.js.map
  • priv/static/phoenix_live_view.esm.js
  • priv/static/phoenix_live_view.esm.js.map
  • priv/static/phoenix_live_view.js
  • priv/static/phoenix_live_view.min.js