Skip to content

Commit 6e6ff77

Browse files
Update to 0.15.8 (support dark theme) (#477)
* Bump ps to 0.15.8 * Update lock file * Update publishing instructions * Regenerate license * Add changelog entry * CI: Update ubuntu version to latest
1 parent 4a1b372 commit 6e6ff77

File tree

7 files changed

+96
-174
lines changed

7 files changed

+96
-174
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Build server
1616
# Note that this must be kept in sync with the version of Ubuntu which the
1717
# Pursit server is running, otherwise the server binary may fail to run.
18-
runs-on: ubuntu-18.04
18+
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v2
2121

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ the most up-to-date version of this file.
55

66
## Unreleased
77

8+
## v0.9.5
9+
10+
- Update `purescript` to `0.15.8` (support dark theme) (@JordanMartinez)
11+
- Update documentation uploading instructions (@JordanMartinez)
12+
813
## v0.9.4
914

1015
- Fix license generation (@JordanMartinez)

LICENSE

Lines changed: 66 additions & 69 deletions
Large diffs are not rendered by default.

pursuit.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ library
102102
, containers
103103
, vector
104104
, time
105-
, purescript ==0.15.6
105+
, purescript ==0.15.8
106106
, bower-json
107107
, blaze-builder
108108
, blaze-markup

stack.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
resolver: nightly-2022-06-09
1+
resolver: lts-20.9
22
# Resolves hjsmin requiring language-javascript ==0.6, while the purescript
33
# compiler requires language-javascript ==0.7.
44
allow-newer: true
@@ -12,7 +12,7 @@ extra-deps:
1212
- bytestring-trie-0.2.7@sha256:f78e9d1dba699ce56080824693787918e9e8904db99d04d3470941420b1dd3ed,9010
1313
- classy-prelude-yesod-1.5.0
1414
- language-javascript-0.7.0.0
15-
- purescript-0.15.6
15+
- purescript-0.15.8
1616
- monoidal-containers-0.6.2.0
1717
- protolude-0.3.1
1818
- process-1.6.13.1

stack.yaml.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,75 +5,75 @@
55

66
packages:
77
- completed:
8-
name: barrier
9-
version: 0.1.1
8+
commit: db5e27c8ff8f98b2ea18036ce20f853a92aec595
109
git: https://github.com/PureFunctor/barrier.git
10+
name: barrier
1111
pantry-tree:
12-
size: 1892
1312
sha256: b7d15fa12674068618745c2cbdaa6d0fa256206d0904d4e8964606ee7fd57676
14-
commit: db5e27c8ff8f98b2ea18036ce20f853a92aec595
13+
size: 1892
14+
version: 0.1.1
1515
original:
16-
git: https://github.com/PureFunctor/barrier.git
1716
commit: db5e27c8ff8f98b2ea18036ce20f853a92aec595
17+
git: https://github.com/PureFunctor/barrier.git
1818
- completed:
1919
hackage: bytestring-trie-0.2.7@sha256:f78e9d1dba699ce56080824693787918e9e8904db99d04d3470941420b1dd3ed,9010
2020
pantry-tree:
21-
size: 1221
2221
sha256: b1f438713b95d8e1e95af11c5d747d1fa9b647c2f55be817ff91e4bd4d69ca00
22+
size: 1221
2323
original:
2424
hackage: bytestring-trie-0.2.7@sha256:f78e9d1dba699ce56080824693787918e9e8904db99d04d3470941420b1dd3ed,9010
2525
- completed:
2626
hackage: classy-prelude-yesod-1.5.0@sha256:8f7e183bdfd6d2ea9674284c4f285294ab086aff60d9be4e5d7d2f3c1a2b05b7,1330
2727
pantry-tree:
28-
size: 330
2928
sha256: ae84d4cc0e1daf985db6cdcf2ac92319531b8e60f547183cc46480d00aafbe20
29+
size: 330
3030
original:
3131
hackage: classy-prelude-yesod-1.5.0
3232
- completed:
3333
hackage: language-javascript-0.7.0.0@sha256:3eab0262b8ac5621936a4beab6a0f97d0e00a63455a8b0e3ac1547b4088dae7d,3898
3434
pantry-tree:
35-
size: 2244
3635
sha256: b0f28d836cb3fbde203fd7318a896c3a20acd8653a905e1950ae2d9a64bccebf
36+
size: 2244
3737
original:
3838
hackage: language-javascript-0.7.0.0
3939
- completed:
40-
hackage: purescript-0.15.6@sha256:d06964345d46009b0a2d5f610f9e0394912da682f508458e7c059a4d6b0299c1,20800
40+
hackage: purescript-0.15.8@sha256:5d7c19e5a49f83acbe8ecc43bf93feb0e075bb11992df9b83af4467aea0bf41d,21427
4141
pantry-tree:
42-
size: 153963
43-
sha256: 8a43be3726b172e8cfeebfb05462f17eeb3af932576c5e48cf366c0751f1fdf8
42+
sha256: 79dde609e3b525e30234fd76b0901f72d48dea47a879d547864d959f85b81760
43+
size: 156457
4444
original:
45-
hackage: purescript-0.15.6
45+
hackage: purescript-0.15.8
4646
- completed:
4747
hackage: monoidal-containers-0.6.2.0@sha256:97289baf716f22fdae04b4fcbee066453d2f4c630ef3f631aeeab61ee713841e,2309
4848
pantry-tree:
49-
size: 569
5049
sha256: 55c0b7f60f8350546d437c9c0ad52c1dba35cac727972e7dc0f12201870df62f
50+
size: 569
5151
original:
5252
hackage: monoidal-containers-0.6.2.0
5353
- completed:
5454
hackage: protolude-0.3.1@sha256:1cc9e5a5c26c33a43c52b554443dd9779fef13974eaa0beec7ca6d2551b400da,2647
5555
pantry-tree:
56-
size: 1645
5756
sha256: 6452a6ca8d395f7d810139779bb0fd16fc1dbb00f1862630bc08ef5a100430f9
57+
size: 1645
5858
original:
5959
hackage: protolude-0.3.1
6060
- completed:
6161
hackage: process-1.6.13.1@sha256:c8bb8b7c993ff72d771381b3b56852dd154bce51880a24789c11f57b0688d353,2963
6262
pantry-tree:
63-
size: 1543
6463
sha256: 58117b15fa330c79b3bca6b29c65f815e45840f79cc0915d3434f25e54ac8fa5
64+
size: 1543
6565
original:
6666
hackage: process-1.6.13.1
6767
- completed:
6868
hackage: Cabal-3.6.3.0@sha256:ff97c442b0c679c1c9876acd15f73ac4f602b973c45bde42b43ec28265ee48f4,12459
6969
pantry-tree:
70-
size: 19757
7170
sha256: b250a53bdb56844f047a2927833bb565b936a289abfa85dfc2a63148d776368a
71+
size: 19757
7272
original:
7373
hackage: Cabal-3.6.3.0
7474
snapshots:
7575
- completed:
76-
size: 607265
77-
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/6/9.yaml
78-
sha256: 819ac07621dac5b2c320c45cb8c27f141f95114a1749b19b06d2c3606c79e839
79-
original: nightly-2022-06-09
76+
sha256: c11fcbeb1aa12761044755b1109d16952ede2cb6147ebde777dd5cb38f784501
77+
size: 649333
78+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/9.yaml
79+
original: lts-20.9

static/help-docs/authors.md

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,6 @@
11
## <a name="submitting-packages"></a>How to submit packages
22

3-
Packages can only be uploaded to Pursuit if the following conditions are true:
4-
- The repository is not a mono-repo.
5-
- Your project must be registred in the [`purescript/registry` repo's `new-packages.json` file](https://github.com/purescript/registry/blob/master/new-packages.json). If it's not yet there, then submit a PR adding it.
6-
- `bower install` exits successfully without any conflicts.
7-
- `pulp build` (and if applicable `pulp test`) exits successfully without any conflicts.
8-
- A tag points to the same commit that is currently checked out (whether by a checked out commit, branch, or tag)
9-
- The `git` working directory is clean.
10-
11-
`bower` often causes problems in publishing, and this is something that will be fixed once the PureScript Registry is started. Until then, keep the following in mind:
12-
- In your package's root directory, always start from a clean bower state by running `rm -rf bower_components/ && bower cache clean`
13-
- If a dependency is **not** in the Bower registry (e.g. `bower info purescript-package-name` returns `ENOTFOUND`), it can be installed using the long form. For example:
14-
- Schema: `bower install --save <package-name>=<git-https-endpoint>#<version-range>`
15-
- Example: `bower install --save purescript-js-uri=https://github.com/purescript-contrib/purescript-js-uri.git#^1.0.0`
16-
- If you run `bower install` and the command encounters a version conflict and asks which one to use for a given dependency, then your package cannot be published to Pursuit. There are two possible reasons for this:
17-
- one or more of your `bower.json` file's `dependencies` or `devDependencies` (if used) needs to be updated
18-
- Try running the following:
19-
20-
```
21-
# installs `ncu` globally
22-
npm i -g npm-check-updates
23-
# get list of outdated packages
24-
ncu -p bower
25-
# update versions to latest ones automatically
26-
ncu -u -p bower
27-
```
28-
29-
- one or more of your dependencies (e.g. `bar`) did not update their `bower.json` file's `dependencies` field to refer to the new version of their dependency (e.g. `baz`) before publishing it (e.g. `bar`). As a result, your direct dependency, `[email protected]`, may depend on `[email protected]` while your other direct dependency `[email protected]` still depends on `[email protected]`. Bower will complain when it isn't sure whether to use `[email protected]` or `[email protected]`.
30-
- Try contacting the author of the package and ask them to update their `bower.json` file correctly and publish a new release.
31-
32-
1. Put the code up on GitHub. (Currently, GitHub is the only supported hosting method. If you'd rather host your code somewhere else, please open an issue and let us know).
33-
34-
2. Verify that `bower install`, `pulp build`, and (if applicable) `pulp test` exit successfully.
35-
36-
3. (Optional, highly recommended) Check that the documentation looks sensible locally before publishing by running `pulp docs -- --format html`.
37-
38-
4. Create a git tag for the version you're releasing, if you haven't already. It is recommended to use `pulp version` to do this for you, as doing it this way will also check your package for common errors.
39-
40-
5. Authenticate to GitHub by running `pulp login`. (This is necessary in order for us to be able to tell who uploaded which packages).
41-
42-
6. Change to your project directory and run `pulp publish`. This will the push commits and the relevant tag to your "origin" Git remote, and then generate your documentation and upload it to Pursuit.
43-
44-
`pulp publish` also accepts a `--no-push` flag which skips the Bower registration check as well as pushing commits (this is useful for uploading other people's packages, if you ever need to do this). There is also a `--push-to` option which allows you to specify a different Git remote to push tags and commits to.
45-
46-
**Note: If `pulp publish` fails with a `400` error, try running it a second time.** Usually, your project's documentation will be successfully published on the second run. For example:
47-
48-
```
49-
# tag gets pushed in first run, so we don't need it in the second run
50-
yes | pulp publish
51-
yes | pulp publish --no-push
52-
```
53-
54-
55-
Your package, together with documentation, should now appear in Pursuit.
56-
57-
## <a name="submit-automated"></a>Submitting packages from a script
58-
59-
You can also use Pulp to submit packages from a script. Pulp prompts for confirmation when you run `pulp publish`, so you will need to use a program like `yes` to answer affirmatively.
60-
61-
For example, if you want to automatically upload documentation from your Travis CI build on tags, you should add the following to your `after_script` build step:
62-
63-
`test -n "$TRAVIS_TAG" && ( yes | pulp publish --no-push )`
64-
65-
Alternatively, if you don't want to use Pulp for whatever reason, you can upload packages using Pursuit's HTTP API directly:
66-
67-
- Gzip the JSON output produced by `psc-publish` and save it to a file.
68-
- If you don't already have one, get a GitHub API token by visiting <https://github.com/settings/tokens/new>. No scopes are required, since the token is only used for authentication.
69-
- Make a POST request to https://pursuit.purescript.org/packages, with gzipped JSON as the request body, including a `Content-Encoding: gzip` header, and with your GitHub token in the Authorization header, like this: `Authorization: token {token}`.
70-
71-
For example, using curl:
72-
73-
```
74-
curl -X POST \
75-
https://pursuit.purescript.org/packages \
76-
--data-binary @pursuit.json.gz \
77-
-H 'Content-Encoding: gzip' \
78-
-H 'Accept: application/json' \
79-
-H "Authorization: token $(cat my-oauth-token.txt)" \
80-
-v
81-
```
82-
83-
If your submission is successful, Pursuit will return a 201 Created response, and the URL for your newly uploaded package will be in the Location header.
3+
Previously, users would need to use `bower` to upload packages' documentation. Uploading documentation is now handled by the PureScript Registry (still in alpha at the time of this writing). See the [PureScript Registry repo](https://github.com/purescript/registry) for how to register and publish packages and their documentation. For more context, read the Discourse announcement, [Registry Alpha Launched](https://discourse.purescript.org/t/registry-alpha-launched/3146).
844

855
## <a name="package-deprecation"></a>How to mark package as deprecated
866

0 commit comments

Comments
 (0)