phoenix changelog


Hey team! We've got some exciting updates and important fixes in this release. Check out the details below to see what's new and improved. 🚀

New feature

  • Clarify user message in phx.gen.json: We've updated the instructions in the phx.gen.json task to be more user-friendly. Now, when you add a resource to the router file, you’ll be guided to add it to the "/api" scope instead of the ":api" scope. This should make things clearer and help you follow the steps more easily after generating files. 📝

Bugfix

  • Remove depth: 1 from lock: Simplified the heroicons dependency in the lock file by removing the depth parameter. This makes the lock file cleaner and easier to maintain. 🛠️

Included Commits

2024-05-04T17:40:30 See commit

This commit clarifies the user message in the phx.gen.json task in Phoenix by updating the instructions to add a resource to the router file. The changes include modifying the message to specify adding the resource to the "/api" scope in the router file instead of the ":api" scope. This update aims to provide clearer guidance to users on where to add the resource and run Ecto migrations after generating files with the phx.gen.json task.

The commit involves changes in the mix_tasks.md guide, the phx.gen.json task file, and the phx.gen.json_test file. In each of these files, the user message has been updated to specify adding the resource to the "/api" scope in the router file. By making this adjustment, users will have a more precise understanding of the necessary steps to follow after generating files with the phx.gen.json task in Phoenix.

Files changed

  • guides/mix_tasks.md
  • lib/mix/tasks/phx.gen.json.ex
  • test/mix/tasks/phx.gen.json_test.exs
2024-05-04T17:57:02 See commit

This commit removes the depth: 1 parameter from the lock file in the integration_test directory. Previously, the heroicons dependency was specified with a depth of 1, but this has been removed in this commit. The heroicons dependency now only includes the git repository link, tag, and sparse optimization information. This change is reflected in the modifications made to the mix.lock file, with one addition and one deletion in the specified section of the file.

Overall, this commit simplifies the heroicons dependency specification in the lock file by removing the depth parameter. By doing so, the lock file is updated to reflect this change, making the dependency declaration more concise and removing unnecessary details. This adjustment may improve the clarity and maintainability of the project's dependencies configuration.

Files changed

  • integration_test/mix.lock