Skip to content

Beta 22.06.2020

Compare
Choose a tag to compare
@mpscholten mpscholten released this 22 Jun 09:25
· 4550 commits to master since this release
18e9540

This release marks the second beta release. Since the last release two weeks ago, around 90 commits have been merged.

Here is a change log of the most important changes:

  • Clean Dev Server Output: The dev server is now outputting the output of the app server instead of printing all it's debug log lines. You can enable outputting the debug log messages by setting an env var DEBUG=1, see CONTRIBUTING.md for details.
  • Documentation Improvements:
    • We added instantclick.js to the documentation to have super fast response times.
    • Added Authentication and Authorization, a section on Enums, a new section on database relationships
  • Windows Support: Windows is now a supported platform via Linux Subsystem for Windows
  • NixOS Support: Some cross-platform issues have been fixed and IHP now works smooth also on NixOS. Thanks to @jeyj0 💯
  • HEAD requests supported: We broke support for HEAD requests a couple of months ago. This is now supported again. By default all actions that
  • Database Update Workflow improved: The buttons Push to DB and DB to Fixtures have been merged into a single Update DB button which avoid accidentally deleting your local db state.

Smaller Changes

  • The getRequest function used in controller actions is now just called request
  • Improved NixOS support: We added some help to the documentation on what you need to do to resolve certain errors when setting up IHP.
  • We added links to this github repo, gitter, the newsletter, etc. to the documentation navigation.
  • Improved handling for sql keywords: Keywords are escaped now when generating sql code.
  • ihp-new uses git from nix instead of expecting it to be installed for fetching the ihp-boilerplate repo
  • All hspec tests have a new central Main.hs
  • The old NewX alias for a record X has been removed. This was a leftover to support old ihp based project at digitally induced. We have now updated the corresponding projects so the alias could be removed.
  • When creating a new column starting with is_, the type will automatically switch to BOOLEAN
  • In the Schema Designer, the Function Show Generated Code now also works for enums (previously it only worked with tables).
  • Fixed a bug which causes the dev server to crash when too many file change events are triggered (e.g. when using the code generator)

Updating

To update the IHP version of your project, open default.nix and change the git commit in line 4 to the following:

rev = "18e9540d52ef96f1191ca7357704f0ef8081588d";

After that run the following command to update your project:

nix-shell -j auto --cores 0 --run 'make -B .envrc'

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 10.07.2020.