phoenix changelog


Hey there, Phoenix enthusiasts! 🚀 We've got some exciting updates and tweaks to share with you. Let's dive into the latest changes and improvements that are making the Phoenix framework even more awesome!

  • Improvement: Bye-bye, Current Password Field! 🔑
    We've streamlined the phx.gen.auth module by removing the current_password field. This simplification boosts security and clears up any confusion in the authentication process. A cleaner codebase means a happier you!

  • Improvement: Context App for the Win! 🏆
    We've made schema generation smarter by switching from otp_app to ctx_app for determining scopes. This tweak, especially handy for umbrella apps, comes with a fresh test case to ensure everything's running smoothly. Say hello to more context-aware schemas!

  • Improvement: Version 1.8.0-rc.2 is Here! 🎉
    Our latest release is packed with goodies. We've added deprecation warnings, tackled issues in the phx.gen.live and phx.gen.auth generators, and polished up the code structure. It's all about enhancing functionality and steering you towards best practices. Check it out!

  • Bugfix: Typo Patrol! 📝
    We've hunted down and squashed some pesky typos in our guides. From correcting function names to fixing spelling errors, these tweaks make our documentation clearer and more professional. Happy reading!

That's a wrap for now! Stay tuned for more updates, and keep building awesome things with Phoenix! 🌟

Included Commits

2025-05-01T14:38:46 See commit

This commit addresses typographical errors in the documentation for the authentication system and deployment guides. In the mix_phx_gen_auth.md file, the phrase "fetch_current_user" was corrected to "fetch_current_scope_for_user" to accurately reflect the function's name, ensuring clarity for users referencing the authentication module. Additionally, a minor formatting correction was made in the link to a pull request related to the bare Phoenix app.

In the fly.md deployment guide, the term "environement" was corrected to "environment," improving the readability and professionalism of the documentation. These changes enhance the overall quality of the guides, making them more precise and user-friendly for developers working with the Phoenix framework.

Files changed

  • guides/authn_authz/mix_phx_gen_auth.md
  • guides/deployment/fly.md
2025-04-26T07:07:53 See commit

The commit removes the current_password field from the schema in the phx.gen.auth module. This field was defined as a virtual string and was marked for redaction, suggesting that it was intended to be used for authentication purposes without being stored directly in the database.

By eliminating the current_password field, the commit simplifies the schema, which may enhance security and reduce potential confusion in the authentication process. Overall, this change reflects an effort to streamline the codebase and improve the handling of user authentication data.

Files changed

  • priv/templates/phx.gen.auth/schema.ex
2025-04-26T14:56:40 See commit

The commit modifies the Mix.Phoenix.Schema module to utilize ctx_app instead of otp_app for determining the scope in schema generation, addressing issues raised in related tickets (#6219 and #6220). This change involves a minor update in the method used to derive the scope, enhancing the context in which schemas are generated, particularly within umbrella applications.

Additionally, the commit introduces a new test case in phx.gen.schema_test.exs that verifies the correct generation of scoped schemas. The test ensures that when a schema is created with a specified scope, it correctly includes the necessary fields and migration details, such as the primary key and foreign key references. Overall, this update improves the functionality and testing of schema generation in the Phoenix framework, particularly for applications that require scoped contexts.

Files changed

  • lib/mix/phoenix/schema.ex
  • test/mix/tasks/phx.gen.schema_test.exs
2025-04-30T03:58:00 See commit

The commit details the release of version 1.8.0-rc.2 of the Phoenix framework, which includes several significant updates and bug fixes. Notably, it introduces deprecation warnings for certain features, such as the use of layouts without modules and the :trailing_slash option in Phoenix.Router, urging users to transition to Phoenix.VerifiedRoutes. The release also addresses critical issues in the phx.gen.live and phx.gen.auth generators, ensuring that subscriptions to PubSub only occur when connected and removing an unused field in authentication.

Additionally, the commit updates various configuration files and tests to reflect changes in the structure of the generated code, particularly in the patterns for controllers, live, components, and routers. The version number in several files, including mix.exs and package.json, has been updated to reflect the new release. Overall, this release aims to enhance functionality while guiding users toward best practices and improving the framework's reliability.

Files changed

  • CHANGELOG.md
  • installer/mix.exs
  • installer/templates/phx_single/config/dev.exs
  • installer/templates/phx_umbrella/apps/app_name_web/config/dev.exs
  • installer/test/phx_new_test.exs
  • installer/test/phx_new_umbrella_test.exs
  • mix.exs
  • package.json