From 4c428a15c91503d6ca76bd274e791c91be2b77a4 Mon Sep 17 00:00:00 2001 From: Marc Scholten Date: Thu, 20 Oct 2022 11:42:29 +0200 Subject: [PATCH] Added upgrade docs for v1.0.0-rc1 --- UPGRADE.md | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/UPGRADE.md b/UPGRADE.md index a7a954c89..a57be6e71 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -2,6 +2,46 @@ This document describes breaking changes, as well as how to fix them, that have occured at given releases. After updating your project, please consult the segments from your current release until now. +# Upgrade to Beta 1.0.0-rc1 from Beta 0.20.0 +1. **Switch IHP version** + + - **IHP Basic** + + Open `default.nix` and change the git commit in line 4 to the following: + + ```diff + -ref = "refs/tags/v0.19.0"; + +ref = "refs/tags/v1.0.0-rc1"; + ``` + + - **IHP Pro & IHP Business** + + Visit https://ihp.digitallyinduced.com/Builds and copy the latest v1.0.0-rc1 URL into your `default.nix`. + +2. **Remake Env** + + Run the following commands: + + ```bash + nix-shell --run 'make -B .envrc' + nix-shell --run 'make -B build/ihp-lib' + ``` + + Now you can start your project as usual with `./start`. + +3. **Fix Type Errors:** + You might see some type errors after upgrading. Here's how to fix them: + + - The function `getFrameworkConfig` has been removed: + + ```haskell + -- Old way: + ?context |> getFrameworkConfig |> get #appConfig + + -- New way: + ?context.frameworkConfig.appConfig + ``` + # Upgrade to Beta 0.20.0 from Beta 0.19.0 1. **Switch IHP version**