Skip to content

Commit

Permalink
Switch to v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed Jul 10, 2021
1 parent e8144c9 commit e989cc9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Paths_ihp.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module Paths_ihp where

import Data.Version

version = Version { versionBranch = [0, 11, 0], versionTags = [] }
version = Version { versionBranch = [0, 12, 0], versionTags = [] }
27 changes: 27 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,33 @@
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 0.12.0 from Beta 0.11.0

## Switch IHP version

Open `default.nix` and change the git commit in line 4 to the following:

```diff
-ref = "refs/tags/v0.11.0";
+ref = "refs/tags/v0.12.0";
```

After that run the following command to update your project:

```bash
make clean
nix-shell -j auto --cores 0 --run 'make -B .envrc'
make -B build/ihp-lib
```

Now you can start your project as usual with `./start`.

## Updating jQuery

The jQuery version used by IHP has changed. We're switching from `3.2.1` to `3.6.0`. jQuery `3.2.1` has some known security vulnerabilities, so it's recommended that you follow these update steps.

To update your application looks search for the string `/vendor/jquery-3.2.1.slim.min.js` in your code base and replace it with `/vendor/jquery-3.6.0.slim.min.js`. Likely the only mention is inside the `Web/View/Layout.hs`.

# Upgrade to Beta 0.11.0 from Beta 0.10.0

## Switch IHP version
Expand Down
2 changes: 1 addition & 1 deletion ihp.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.2
name: ihp
version: 0.11.0
version: 0.12.0
synopsis: Haskell Web Framework
description: The Integrated Haskell Platform is a full stack framework focused on rapid application development while striving for robust code quality.
license: NONE
Expand Down
2 changes: 1 addition & 1 deletion ihp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}:
mkDerivation {
pname = "ihp";
version = "v0.11.0";
version = "v0.12.0";
src = (import <nixpkgs> { }).nix-gitignore.gitignoreSource [ ] ./.;
isLibrary = true;
isExecutable = true;
Expand Down

0 comments on commit e989cc9

Please sign in to comment.