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 update! We've got some cool new features, important bug fixes, and a bunch of improvements to make your experience smoother and more enjoyable. Let's dive into what's new:
New Features
-
Repeatable Tests with
mix test --repeat-until-failure
: Now you can run your unit tests repeatedly until they fail. This is super handy for catching those pesky intermittent bugs. Plus, we've ensured all directories in thetmp
folder are properly cleaned up, even if the test name or random string contains a/
character. 🎉 -
Phoenix Tutorial Added: We've updated the community.md file to include a free online Phoenix Tutorial for version 1.6. This is a great resource for anyone looking to get started or deepen their knowledge in Phoenix. 📚
Bug Fixes
-
CHANGELOG Update: The CHANGELOG.md file was updated to reflect recent changes, including a fix for the
CoreComponents.flash
function that ensures flash messages close correctly. Also, dynamic ports are now supported for theEndpoint.url/0
function. 🚀 -
Version 1.7.13 Release: This release includes various bug fixes, performance improvements, and possibly new features. Make sure to update to benefit from the latest enhancements. 🛠️
-
JavaScript Type Documentation Fixes: We've corrected the types of parameters in the
Socket
constructor insocket.js
, ensuring you have the right information forlongPollFallbackMs
,debug
, andreconnectAfterMs
parameters. 📄 -
Version 1.7.14 Release: This update includes bug fixes, such as reverting a conflicting function in Phoenix.ConnTest, and ensures the correct version information is reflected in the project files. 📦
Improvements
- JavaScript Dependencies and Testing: We've updated the JavaScript dependencies to the latest versions and switched from mocha to jest for testing, aligning with the setup used in LiveView. Tests are now run on Node 20 to ensure compatibility across different environments. 🌐
That's all for now! Enjoy the new features and improvements, and happy coding! 🚀✨
Included Commits
This commit updates the JavaScript dependencies to the latest versions and switches from using mocha to jest for testing. This change aligns with the testing setup used in LiveView. Additionally, the commit includes running npm tests on node 20. The changes made include modifications to various test files, the addition of jest configuration files, and updates to the package.json and package-lock.json files.
Overall, this commit focuses on updating dependencies and testing frameworks in the JavaScript codebase. By moving to jest for testing, the project aligns with the testing setup used in LiveView, ensuring consistency across different parts of the codebase. Additionally, running npm tests on node 20 helps to ensure compatibility with different environments and versions.
Files changed
- .github/workflows/ci.yml
- assets/.eslintrc.js
- assets/.gitignore
- assets/jest.config.js
- assets/js/phoenix/socket.js
- assets/package-lock.json
- assets/package.json
- assets/test/channel_test.js
- assets/test/presence_test.js
- assets/test/serializer_test.js
- assets/test/socket_test.js
In this commit, the CHANGELOG.md file was updated to reflect changes made in the code. The commit includes modifications to the file with 2 additions, 2 deletions, and 4 changes overall. The specific changes mentioned in the commit include a bug fix related to the CoreComponents.flash
function in the phx.new
module, which was generating incorrect IDs that caused flash messages to fail to close when clicked. This bug was fixed to ensure proper functionality. Additionally, an enhancement was made to support dynamic ports for the Endpoint.url/0
function in the Phoenix.Endpoint
module.
Overall, this commit updates the CHANGELOG to document the bug fix and enhancement made in version 1.7.10 of the codebase, which was released on November 3, 2023. The changes aim to improve the functionality and user experience of the codebase, specifically addressing issues related to flash messages and dynamic ports.
Files changed
- CHANGELOG.md
This commit updates the community.md file by adding a new resource, the Phoenix Tutorial for Phoenix 1.6, which is available for free online. The commit includes a link to the tutorial's website where users can access the material. Additionally, the commit also includes links to other resources such as books and tutorials related to Phoenix, including Programming Phoenix LiveView and Real-Time Phoenix.
Overall, this update enhances the community.md file by providing users with additional resources for learning and working with Phoenix, a web development framework for Elixir. The inclusion of the Phoenix Tutorial for Phoenix 1.6, along with other related resources, aims to support developers in their journey of building highly scalable systems and interactive web applications using Phoenix.
Files changed
- guides/introduction/community.md
This commit introduces the ability to use the new mix test --repeat-until-failure
feature to run unit tests. Additionally, the commit addresses issues where mix compile
was called in tests, resulting in missing modules under certain circumstances. This problem is fixed by always passing --no-compile
. Furthermore, the commit ensures that all directories in the tmp
folder are properly cleaned up, addressing an issue where directories were not deleted if the generated test name or random string contained a /
character.
The changes include modifications to the installer/test/mix_helper.exs
file to handle random string generation and directory cleanup, as well as adjustments to various test files such as phx.digest.clean_test.exs
, phx.digest_test.exs
, phx.routes_test.exs
, and others to incorporate the --no-compile
flag and ensure proper cleanup of temporary files. Overall, this commit enhances the repeatability and reliability of running unit tests in the Phoenix framework.
Files changed
- installer/test/mix_helper.exs
- test/mix/tasks/phx.digest.clean_test.exs
- test/mix/tasks/phx.digest_test.exs
- test/mix/tasks/phx.routes_test.exs
- test/phoenix/controller/render_test.exs
- test/phoenix/digester_test.exs
- test/phoenix/endpoint/endpoint_test.exs
- test/phoenix/param_test.exs
- test/phoenix/router/routing_test.exs
- test/phoenix/verified_routes_test.exs
Version 1.7.13 has been released with modifications to various files including package.json, CHANGELOG.md, mix.exs, mix.lock, installer templates, and integration test files. The changes include updates to the Phoenix framework static files, test scripts, and dependencies. This release likely includes bug fixes, performance improvements, and possibly new features for the Phoenix web development framework.
Overall, this commit includes updates to multiple files across the project, indicating a comprehensive update to the codebase. Developers using Phoenix for their web development projects should consider updating to version 1.7.13 to take advantage of the latest changes and improvements.
Files changed
- CHANGELOG.md
- assets/package.json
- installer/mix.exs
- installer/mix.lock
- installer/templates/phx_single/mix.exs
- installer/templates/phx_umbrella/apps/app_name_web/mix.exs
- installer/templates/phx_umbrella/mix.exs
- installer/test/phx_new_test.exs
- integration_test/mix.exs
- integration_test/mix.lock
- mix.exs
- mix.lock
- package.json
- priv/static/phoenix.cjs.js
- priv/static/phoenix.cjs.js.map
- priv/static/phoenix.js
- priv/static/phoenix.min.js
- priv/static/phoenix.mjs
- priv/static/phoenix.mjs.map
In this commit, version 1.7.14 of Phoenix was released. Changes were made to the package.json file, updating the version number from 1.7.13 to 1.7.14. Additionally, changes were made to the package-lock.json file, updating the version number from 1.7.12 to 1.7.14. The changelog was also updated to include bug fixes for the new version, including reverting a conflicting function in Phoenix.ConnTest.
Furthermore, updates were made to the installer's mix.exs file and the mix.exs file itself, changing the version number to 1.7.14. These changes ensure that the correct version information is reflected in the project files. Overall, this commit focused on updating the version of Phoenix to 1.7.14 and making necessary adjustments to related files.
Files changed
- CHANGELOG.md
- assets/package-lock.json
- assets/package.json
- installer/mix.exs
- mix.exs
- package.json
This commit is a documentation update that corrects the types of parameters in the Socket
constructor in the socket.js
file of the project. The changes include correcting the types from Function
to number
for longPollFallbackMs
and from Function
to boolean
for debug
. Additionally, the type for reconnectAfterMs
has been updated to include the unit of measurement (milliseconds) for clarity.
Overall, this commit aims to improve the accuracy and clarity of the JavaScript type documentation for the Socket
constructor by making corrections to the parameter types. The changes ensure that developers working on the project have the correct information about the types of parameters expected by the constructor.
Files changed
- assets/js/phoenix/socket.js