We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
phoenix changelog
Welcome to the latest updates! We've been busy making some awesome improvements to the Phoenix framework, and we can't wait for you to check them out. Here's what's new and improved:
-
Improved File Change Detection in Code Reloader ๐: We've fine-tuned the way Phoenix detects changes in files. Now, the code reloader is smarter about checking for stale configurations and dependencies. No more unnecessary warnings when your Mix project is set up correctly! Plus, we've excluded files in the
_build
directory from checks, so you can focus on the changes that really matter. This means a smoother, more efficient development experience for you! ๐ -
Streamlined Test File Handling ๐งช: Testing just got a little bit easier! We've added a
test_ignore_filters
option to themix.exs
file. This helps you ignore certain expected test files, especially those in the "test/fixtures/" and "test/support/" directories. Now, your test runs will be more streamlined, focusing only on what's important. This update is part of a larger effort to enhance testing practices across the Elixir community. Happy testing! ๐ ๏ธ
We hope these updates make your coding journey even more enjoyable. Keep building awesome things! ๐
Included Commits
This commit modifies the mix.exs
file in the Phoenix project to enhance the configuration for test file handling. It introduces a new test_ignore_filters
option, which specifies filters to ignore certain expected test files, particularly those located in the "test/fixtures/" and "test/support/" directories. This change aims to streamline the testing process by excluding these files from being considered during test runs.
The modifications include adding five lines of code while deleting one, resulting in a total of six changes. The update aligns with the ongoing discussions in the Elixir community, as referenced in issue elixir-lang/elixir#14036, indicating a broader effort to improve testing practices within the framework.
Files changed
- mix.exs
This commit enhances the detection of changed files within the Phoenix framework's code reloader by refining the logic that checks for stale configurations and dependencies. It modifies the warn_missing_mix_listener
function to ensure that a warning is issued only if the Mix project does not match the expected Phoenix Mix project, thus preventing unnecessary warnings when the listener is appropriately configured. Additionally, the commit improves the way configuration files are handled by explicitly excluding any files in the _build
directory from the checks, which helps avoid confusion and focuses on relevant changes.
Moreover, the commit introduces a more streamlined approach to tracking the necessary configuration files by including the lockfile and filtering out any paths that start with the build path. This change aims to make the reloader more efficient and responsive to actual changes, ensuring that developers have a smoother experience while working with the Phoenix framework. Overall, the modifications contribute to a more robust and user-friendly development environment.
Files changed
- lib/phoenix/code_reloader/server.ex