Skip to content

Commit

Permalink
Bump to 0.15.8; next package set (#305)
Browse files Browse the repository at this point in the history
* Update stack.yaml & its lock file

* Update package set to latest

* Install entire package set

* Update config

* Update summary for package set updates

* Update changelog
  • Loading branch information
JordanMartinez committed Mar 6, 2023
1 parent 9cfd618 commit 9038949
Show file tree
Hide file tree
Showing 7 changed files with 79 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Bugfixes:

Other improvements:

## [v2023-03-06.1](https://github.com/purescript/trypurescript/releases/tag/v2023-03-06.1)

Other improvements:
- Bump PureScript to `0.15.8` (#305 by @JordanMartinez)
- Update to latest package set (#305 by @JordanMartinez)

## [v2022-12-12.1](https://github.com/purescript/trypurescript/releases/tag/v2022-12-12.1)

Other improvements:
Expand Down
32 changes: 28 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,30 @@ The try.purescript.org server only has a limited amount of memory. If the packag

Before deploying an updated package set, someone (your reviewer) should check that the memory required to hold the package set's externs files does not exceed that of the try.purescript.org server.

Update the package set by doing the following:
Update the package set by doing the following. Each step is explained below:

### Summary

```sh
pushd staging
spago upgrade-set
cat > spago.dhall << EOF
{ name = "try-purescript-server"
, dependencies = [] : List Text
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}
EOF
spago ls packages | cut -f 1 -d ' ' | xargs spago install
popd
pushd client
npm run updateConfigVersions
popd
# add any new shims
# update ES Module Shims (if needed)
```

### Step-by-Step Explanation

1. Update the `upstream` package set in `staging/packages.dhall`:

Expand All @@ -34,17 +57,18 @@ Update the package set by doing the following:
```dhall
{ name = "try-purescript-server"
, dependencies = [] : List Text
, ...
, packages = ./packages.dhall
, sources = [ "src/**/*.purs" ]
}
```

3. Install all packages in the package set by running this command:
3. For `staging/spago.dhall`, install all packages in the package set by running this command:

```
$ spago ls packages | cut -f 1 -d ' ' | xargs spago install
```

4. Update the `client/src/Try/SharedConfig.purs` file by running this command:
4. Update the `client/src/Try/SharedConfig.purs` file by running this command in `client`:

```console
$ npm run updateConfigVersions
Expand Down
4 changes: 2 additions & 2 deletions client/src/Try/SharedConfig.purs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ module Try.SharedConfig where
import Prelude

pursVersion :: String
pursVersion = "v0.15.7"
pursVersion = "v0.15.8"

pursReleaseUrl :: String
pursReleaseUrl = "https://github.com/purescript/purescript/releases/tag/" <> pursVersion

packageSetVersion :: String
packageSetVersion = "0.15.4-20221212"
packageSetVersion = "0.15.7-20230306"

packageSetPackageJsonUrl :: String
packageSetPackageJsonUrl = "https://github.com/purescript/package-sets/blob/psc-" <> packageSetVersion <> "/packages.json"
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
resolver: nightly-2022-11-12
resolver: lts-20.9
packages:
- "."

extra-deps:
- purescript-0.15.7
- purescript-0.15.8
- language-javascript-0.7.0.0
- process-1.6.13.1
# The Cabal library is not in Stackage
Expand Down
16 changes: 8 additions & 8 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

packages:
- completed:
hackage: purescript-0.15.7@sha256:fbf49910576377332e202d7fac73c7904dff7357508f702c7c68d7c59c83d41e,21420
hackage: purescript-0.15.8@sha256:5d7c19e5a49f83acbe8ecc43bf93feb0e075bb11992df9b83af4467aea0bf41d,21427
pantry-tree:
sha256: 3487b12981c52d188684f42c58585f27d77f7365758a99ade0b28af06522c130
size: 154992
sha256: 79dde609e3b525e30234fd76b0901f72d48dea47a879d547864d959f85b81760
size: 156457
original:
hackage: purescript-0.15.7
hackage: purescript-0.15.8
- completed:
hackage: language-javascript-0.7.0.0@sha256:3eab0262b8ac5621936a4beab6a0f97d0e00a63455a8b0e3ac1547b4088dae7d,3898
pantry-tree:
Expand Down Expand Up @@ -41,7 +41,7 @@ packages:
hackage: protolude-0.3.1
snapshots:
- completed:
sha256: 5cacb39a2c21842535dc0a31e2005d3b1eb18e451a89d58c28381e1efdb9520f
size: 647983
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/11/12.yaml
original: nightly-2022-11-12
sha256: c11fcbeb1aa12761044755b1109d16952ede2cb6147ebde777dd5cb38f784501
size: 649333
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/9.yaml
original: lts-20.9
6 changes: 3 additions & 3 deletions staging/packages.dhall
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let upstream =
https://github.com/purescript/package-sets/releases/download/psc-0.15.4-20221212/packages.dhall
sha256:62ea94a2728dc4f0a47491c064776f402a8a1b3cf2d8a7ec83c96075d30bd590
https://github.com/purescript/package-sets/releases/download/psc-0.15.7-20230306/packages.dhall
sha256:0757626c7422b8b5b5b1d0df3d3628e5deac755d7f89c433a9bf89009787dcbd

in upstream
with metadata.version = "v0.15.7"
with metadata.version = "v0.15.8"
31 changes: 30 additions & 1 deletion staging/spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,22 @@
, "affjax-web"
, "ansi"
, "argonaut"
, "argonaut-aeson-generic"
, "argonaut-codecs"
, "argonaut-core"
, "argonaut-generic"
, "argonaut-traversals"
, "argparse-basic"
, "array-builder"
, "array-search"
, "arraybuffer"
, "arraybuffer-builder"
, "arraybuffer-types"
, "arrays"
, "arrays-zipper"
, "ask"
, "assert"
, "assert-multiple"
, "avar"
, "b64"
, "barbies"
Expand Down Expand Up @@ -99,6 +102,7 @@
, "email-validate"
, "encoding"
, "enums"
, "env-names"
, "error"
, "exceptions"
, "exists"
Expand Down Expand Up @@ -146,7 +150,9 @@
, "halogen"
, "halogen-bootstrap5"
, "halogen-css"
, "halogen-echarts-simple"
, "halogen-formless"
, "halogen-helix"
, "halogen-hooks"
, "halogen-hooks-extra"
, "halogen-store"
Expand All @@ -163,27 +169,30 @@
, "httpurple"
, "httpurple-argonaut"
, "httpurple-yoga-json"
, "humdrum"
, "hyrule"
, "identity"
, "identy"
, "indexed-db"
, "indexed-monad"
, "int64"
, "integers"
, "interpolate"
, "invariant"
, "jarilo"
, "jelly"
, "jelly-hooks"
, "jelly-router"
, "jelly-signal"
, "jest"
, "js-abort-controller"
, "js-bigints"
, "js-date"
, "js-fileio"
, "js-promise"
, "js-promise-aff"
, "js-timers"
, "js-uri"
, "json-codecs"
, "justifill"
, "jwt"
, "language-cst-parser"
Expand All @@ -197,6 +206,10 @@
, "logging"
, "logging-journald"
, "machines"
, "maps-eager"
, "marionette"
, "marionette-commander"
, "marionette-react-basic-hooks"
, "matrices"
, "matryoshka"
, "maybe"
Expand All @@ -217,17 +230,22 @@
, "mote"
, "motsunabe"
, "mysql"
, "n3"
, "nano-id"
, "naturals"
, "nested-functor"
, "newtype"
, "nextjs"
, "nextui"
, "node-buffer"
, "node-buffer-blob"
, "node-child-process"
, "node-event-emitter"
, "node-execa"
, "node-fs"
, "node-fs-aff"
, "node-http"
, "node-human-signals"
, "node-net"
, "node-path"
, "node-process"
Expand Down Expand Up @@ -298,9 +316,11 @@
, "react-dom"
, "react-halo"
, "react-icons"
, "react-markdown"
, "react-testing-library"
, "react-virtuoso"
, "read"
, "recharts"
, "record"
, "record-extra"
, "record-studio"
Expand Down Expand Up @@ -339,6 +359,7 @@
, "splitmix"
, "ssrs"
, "st"
, "statistics"
, "strictlypositiveint"
, "string-parsers"
, "strings"
Expand All @@ -358,11 +379,13 @@
, "thermite-dom"
, "these"
, "toppokki"
, "transformation-matrix"
, "transformers"
, "tree-rose"
, "tuples"
, "two-or-more"
, "type-equality"
, "typedenv"
, "typelevel"
, "typelevel-lists"
, "typelevel-peano"
Expand All @@ -375,6 +398,7 @@
, "undefined-is-not-a-problem"
, "unfoldable"
, "unicode"
, "unique"
, "unlift"
, "unordered-collections"
, "unsafe-coerce"
Expand All @@ -387,16 +411,20 @@
, "validation"
, "variant"
, "vectorfield"
, "vectors"
, "versions"
, "visx"
, "web-clipboard"
, "web-cssom"
, "web-cssom-view"
, "web-dom"
, "web-dom-parser"
, "web-dom-xpath"
, "web-encoding"
, "web-events"
, "web-fetch"
, "web-file"
, "web-geometry"
, "web-html"
, "web-pointerevents"
, "web-proletarian"
Expand All @@ -411,6 +439,7 @@
, "web-url"
, "web-workers"
, "web-xhr"
, "webextension-polyfill"
, "which"
, "yoga-fetch"
, "yoga-json"
Expand Down

0 comments on commit 9038949

Please sign in to comment.