Beta 21.08.2020
It's time for the next release of IHP: v21082020 🎉
Major Changes
- Numeric Primary Keys Supported: IHP now allows numeric (
Serial
in Postgres-speak) primary keys. Previously only UUIDs have been supported. UUIDs will still be the default. This feature makes it more simple to use IHP with existing databases and services. - nl2br: A new view helper has been added in this release. With
nl2br
you can transform\n
linebreaks to<br>
line breaks. Likeget #body post |> nl2br
:) - HTML Comments: HSX now supports HTML comment syntax.
<!-- 🚀 -->
. This has been added after someone asked for comment syntax on Stack Overflow. This was actually the first IHP-related stack overflow question we've come across.
Other Changes
ParamReader Float
andInputValue Float
instances have been added for better dealing with Float values- A bug has been fixed causing the code generator not generating input fields in freshly-generated controllers views
- We've improved CI workflows to avoid build errors on master (thanks to @ruhatch for fixing the master :))
- Improved Json support by adding a generic
ToJson
instance for IHP record Ids - Documentation on how to disable the layout for a single view has been added
- Documentation on how to change the start page of a IHP app has been added
- We've improved the error messages. In the wiki we've described our error message design goals.
- Fixed a bug with
findLibDir
causing trouble with production deployments - Fixed controller code generator generating view
import
statements twice - Fixed deleting a column still left over the assigned foreign key constraint
- Fixed query box in Data tool not working due to javascript bug
- Fixed a bug with nullable has many relationships causing a type error in
Generated.Types
- Fixed deleteRecord not working with records that have a fetched relationship
- Improved HSX error messages when dealing with invalid attribute names and fixed missing attribute names for SVGs
- Documentation on how to refactor your database (renaming columns, etc.) has been added
- Enums now have a
ParamReader
instance by default. This makes it easier to work with enums in forms.
Updating
To update the IHP version of your project, open default.nix
and change the git commit in line 4 to the following:
rev = "0bb881e0febdf5fb8db939a6c5eb481c76a1b332";
After that run the following command to update your project:
nix-shell -j auto --cores 0 --run 'make -B .envrc'
In case nix starts rebuilding IHP (might take a while), make sure cachix is set up as expected:
cachix use digitallyinduced
Now you can start your project as usual with ./start
.
If you have any problems with updating, let us know on the brand new IHP forum.
📧 To stay in the loop, subscribe to the IHP release emails. Or follow digitally induced on twitter..
📅 The next release is expected to be released on 04.09.2020.