Beta 07.08.2020
It's time for the next release of IHP: v07082020 🎉 Since the last release we have merged 67 commits by 10 contributors.
Major Changes
- Improved Error Pages:
- We've redesigned the error page design for compile-time and type errors.
- Additionally we now link to the GitHub wiki for specific exceptions for better error explanations.
- Exceptions thrown during routing will also now be shown in the browser (previously only a generic
Something went wrong
was shown). - File paths in the error messages can now be clicked in the browser to open them in your code editor. Use the env vars
IHP_EDITOR
orEDITOR
to specify your editor.
- New Function: deleteAll: With
deleteAll
all records of a table can be deleted. - New Function: forEachWithIndex: Small helper, like
forEach
but with an index
Other Changes
ihp-new
now has a--help
flag- the
dateField
helper now uses adatetime-local
input instead ofdatetime
- Issues with Code Generation pluralization have been fixed. In the process a lot of tests have been added to make sure that the code generation will not break again in the future.
- The
renderPlain
function now sets theContent-Type
header totext/plain
- A new docu section
Editors & Tooling
has been added - The Schema Designer got some small design changes for better usability. Some redundant buttons have been removed in favor of the right click context menu.
ihp-new
is using nix in a more efficient way- The request logger middleware can now be customized and disabled
- deleteRecords now doesn't print the ids when more than 10 records are deleted
- Tables now can have a composite
UNIQUE
constraint - Typos have been fixed
Updating
To update the IHP version of your project, open default.nix
and change the git commit in line 4 to the following:
rev = "c9cb949ae820776dfa3a8785a592ec22fe615276";
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 Gitter.
📧 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 21.08.2020.