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 changelog! We've been busy squashing bugs, improving docs, and making your experience smoother. Let's dive into the details! ๐
Bugfixes ๐
- Fix doctest in phx.gen.auth (#5835): We've patched up a doctest in the
phx.gen.auth
context to ensure the URL generation syntax is spot on. Now, thedeliver_<%= schema.singular %>_update_email_instructions
function's example is accurate and ready to guide you seamlessly. - Remove 'antialiased' CSS class from root template (#5827): Bid farewell to the 'antialiased' CSS class! Modern browsers and OSes have upped their subpixel-antialiasing game, making this class obsolete. Weโve updated the
home.css
androot.html.heex
files to reflect this change. - Fix heading in 1.7.12 changelog: We tidied up the changelog by correcting the formatting of the "JavaScript Client Enhancements" section. Proper headings for the win!
Improvements โจ
- Align time and duration values in a couple of show/hides (#5836): We've synchronized the transition times and durations in our show/hide functions. Expect smoother and more consistent visual effects when elements appear or disappear.
- Correct documentation about route helpers generation (#5823): Our docs just got clearer! We updated the
lib/phoenix/router.ex
file to provide accurate info about the:as
and:singleton
options for route helpers. Kudos to Andrew Pozdnyakov for the co-authoring assist! - Allow
mix ecto.setup
from the umbrella root (#5692): Runningmix ecto.setup
just got easier! You can now execute this command from the root of your umbrella project, making database setup a breeze.
Thatโs all for now! Keep an eye out for more updates and happy coding! ๐
Included Commits
This commit fixes a doctest in the phx.gen.auth context_functions.ex file. The changes include modifying the deliver_<%= schema.singular %>_update_email_instructions function to include the correct syntax for generating a URL. The patch shows the specific line that was modified, correcting the URL generation in the example provided in the doctest. This change ensures that the doctest accurately reflects the functionality of the function in the phx.gen.auth context.
Overall, this commit addresses an issue with the example provided in the doctest for the deliver_<%= schema.singular %>update_email_instructions function. By correcting the syntax for generating a URL, the doctest now accurately demonstrates the expected output of the function. This fix ensures that developers using the phx.gen.auth module will have correct and up-to-date documentation to reference when working with the deliver<%= schema.singular %>_update_email_instructions function.
Files changed
- priv/templates/phx.gen.auth/context_functions.ex
This commit aligns the transition time and duration values in a couple of show/hide functions within the core components module. The changes ensure that the time and duration values for the transitions are consistent and aligned properly, improving the overall functionality and user experience of the show/hide operations.
The specific changes involve updating the transition time and duration values in the show function for two different selectors within the core components module. By aligning these values, the transitions will be smoother and more consistent, enhancing the visual effects when elements are shown or hidden on the web page.
Files changed
- installer/templates/phx_web/components/core_components.ex
This commit removes the 'antialiased' CSS class from the root template in the project. The class was originally added to improve font rendering consistency across browsers and operating systems, but over time, the default subpixel-antialiasing in browsers and operating systems has proven to produce better results than the 'antialiased' class. The commit references various discussions and resources on the topic, highlighting the shift away from using the 'antialiased' class for font smoothing.
The changes made in the commit include removing the 'antialiased' class from the home.css file and updating the body class in the root.html.heex file to exclude the 'antialiased' class. These changes reflect the decision to no longer use the 'antialiased' class for font smoothing in the project, aligning with the improved default subpixel-antialiasing provided by browsers and operating systems.
Files changed
- installer/templates/phx_static/home.css
- installer/templates/phx_web/components/layouts/root.html.heex
This commit fixed a heading in the 1.7.12 changelog by correcting the formatting of the JavaScript Client Enhancements section. The commit made changes to the CHANGELOG.md file, with one addition, one deletion, and two changes. Specifically, the heading "JavaScript Client Enhancements" was corrected to "### JavaScript Client Enhancements" to ensure proper formatting.
Additionally, the commit included a note about the session id being in an http-only cookie by default, and mentioned that the only way to perform a certain attack prior to the change was if the application was already vulnerable to an XSS attack. The commit also mentioned a specific enhancement related to the JavaScript client, stating that the longpoll fallback for browser session would only be memorized if the WebSocket had never had a successful connection.
Files changed
- CHANGELOG.md
This commit allows the mix ecto.setup
command to be run from the root of an umbrella project. Previously, this command could only be run from within individual applications within the umbrella project. The changes made in this commit modify the mix.exs
file in the phx_umbrella
template to include the necessary configuration for running mix ecto.setup
from the root of the umbrella project.
Specifically, the commit modifies the aliases section of the mix.exs
file to include the ecto.setup
command, which now includes the commands ecto.create
, ecto.migrate
, and run #{__DIR__}/priv/repo/seeds.exs
. This change allows for setting up the Ecto database from the root of the umbrella project, streamlining the development process for users working with umbrella projects.
Files changed
- installer/templates/phx_umbrella/apps/app_name/mix.exs
This commit corrects the documentation regarding route helper generation in Phoenix. The changes made to the lib/phoenix/router.ex file include updating the information about the :as
option, specifying that if the value is nil
, it will not generate a helper. This clarification is important for developers using verified routes exclusively. Additionally, the commit includes changes to the explanation of the :singleton
option for defining routes for a singleton resource without referencing an ID.
The commit was co-authored by Andrew Pozdnyakov and involved modifying the documentation in the router file. The updates provide more accurate information about configuring named helpers and scoping in Phoenix routes, ensuring that developers have clear and correct guidance when working with route helpers in their applications.
Files changed
- lib/phoenix/router.ex