Skip to content

Commit 5d41484

Browse files
Update for PureScript 0.14 (#16)
1 parent 868bac8 commit 5d41484

File tree

5 files changed

+49
-20
lines changed

5 files changed

+49
-20
lines changed

CHANGELOG.md

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,46 @@ Notable changes to this project are documented in this file. The format is based
44

55
## [Unreleased]
66

7-
Breaking changes (😱!!!):
7+
Breaking changes:
88

99
New features:
1010

1111
Bugfixes:
1212

13-
- GitHub `@actions/*` dependencies upgraded for post-October 2020 compatibility. This affects the functionality of `addPath`, which is [formally deprecated](https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/) to avoid a security vulnerability. (#13 by @jisantuc)
13+
Other improvements:
14+
15+
## [v0.3.0](https://github.com/purescript-contrib/purescript-github-actions-toolkit/releases/tag/v0.3.0) - 2021-04-18
16+
17+
Breaking changes:
18+
19+
- Added support for PureScript 0.14 and dropped support for other compiler versions. (#16 by @thomashoneyman)
20+
- Updated GitHub `@actions/*` dependencies for post-October 2020 compatibility. (#13 by @jisantuc)
21+
22+
## [v0.2.2](https://github.com/purescript-contrib/purescript-github-actions-toolkit/releases/tag/v0.2.2) - 2021-02-03
1423

1524
Other improvements:
1625

17-
## [0.0.0] - 2020-01-01
26+
- Added tests for the majority of bindings in the library (#9 by @colinwahl)
27+
- Updated the location of the changelog and contributing files (#11 by @maxdeviant)
28+
- Bumped the versions of @actions/core, @actions/cache, and @actions/tool-cache
29+
30+
## [v0.2.0](https://github.com/purescript-contrib/purescript-github-actions-toolkit/releases/tag/v0.2.0) - 2020-09-22
31+
32+
Bugfixes:
33+
34+
- Fixed a typo on the FFI for the `find` function (#8 by @colinwahl)
35+
36+
Other improvements
37+
38+
- Added a test action (#8 by @colinwahl)
39+
- Added CI for all push / pull requests (#6 by @colinwahl)
40+
41+
## [v0.1.0](https://github.com/purescript-contrib/purescript-github-actions-toolkit/releases/tag/v0.1.0) - 2020-09-09
42+
43+
Initial release of GitHub Actions Toolkit bindings. This features full bindings to the following packages:
44+
45+
- @actions/core (as GitHub.Actions.Core)
46+
- @actions/exec (as GitHub.Actions.Exec)
47+
- @actions/io (as GitHub.Actions.IO)
48+
- @actions/tool-cache (as GitHub.Actions.ToolCache)
49+
- @actions/cache (as GitHub.Actions.Cache)

bower.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"output"
1515
],
1616
"dependencies": {
17-
"purescript-aff": "^v5.1.2",
18-
"purescript-aff-promise": "^v2.1.0",
19-
"purescript-effect": "^v2.0.1",
20-
"purescript-foreign-object": "^v2.0.3",
21-
"purescript-node-buffer": "^v6.0.0",
22-
"purescript-node-path": "^v3.0.0",
23-
"purescript-node-streams": "^v4.0.1",
24-
"purescript-nullable": "^v4.1.1",
25-
"purescript-transformers": "^v4.2.0"
17+
"purescript-aff": "^v6.0.0",
18+
"purescript-aff-promise": "^v3.0.0",
19+
"purescript-effect": "^v3.0.0",
20+
"purescript-foreign-object": "^v3.0.0",
21+
"purescript-node-buffer": "^v7.0.0",
22+
"purescript-node-path": "^v4.0.0",
23+
"purescript-node-streams": "^v5.0.0",
24+
"purescript-nullable": "^v5.0.0",
25+
"purescript-transformers": "^v5.0.0"
2626
}
2727
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "eslint src && spago build --purs-args '--censor-lib --strict --censor-codes=UserDefinedWarning'",
4+
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
55
"test": "spago test --no-install"
66
},
77
"devDependencies": {
8-
"@vercel/ncc": "^0.24.1",
9-
"eslint": "^7.6.0"
8+
"@vercel/ncc": "^0.27.0",
9+
"eslint": "^7.22.0"
1010
},
1111
"dependencies": {
1212
"@actions/cache": "^1.0.6",

packages.dhall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
let upstream =
2-
https://github.com/purescript/package-sets/releases/download/psc-0.14.0/packages.dhall sha256:710b53c085a18aa1263474659daa0ae15b7a4f453158c4f60ab448a6b3ed494e
2+
https://github.com/purescript/package-sets/releases/download/psc-0.14.0-20210318/packages.dhall sha256:98bbacd65191cef354ecbafa1610be13e183ee130491ab9c0ef6e3d606f781b5
33

44
in upstream

src/GitHub/Actions/Core.purs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import Effect (Effect)
3131
import Effect.Aff (Aff)
3232
import Effect.Exception (Error)
3333
import Effect.Uncurried (EffectFn1, EffectFn2, runEffectFn1, runEffectFn2)
34-
import Prim.TypeError (class Warn, Text)
3534

3635
-- | Interface for getInput options
3736
-- | required: Whether the input is required. If required and not present, will throw
@@ -57,9 +56,7 @@ setSecret = runEffectFn1 setSecretImpl
5756
foreign import addPathImpl :: EffectFn1 String Unit
5857

5958
-- | Prepends input path to the PATH (for this action and future actions)
60-
addPath ::
61-
Warn (Text "addPath is deprecated due to a security vulnerability and will be removed in the next release.") =>
62-
String -> Effect Unit
59+
addPath :: String -> Effect Unit
6360
addPath = runEffectFn1 addPathImpl
6461

6562
foreign import getInput1Impl :: EffectFn1 String String

0 commit comments

Comments
 (0)