Skip to content

Commit 0a51ee8

Browse files
Update to v0.15.0 (#41)
* Migrated FFI to ES modules via 'lebab' * Removed '"use strict";' in FFI files * Update to CI to use 'unstable' purescript * Update pulp to 16.0.0-0 and psa to 0.8.2 * Update Bower dependencies to master * Update .eslintrc.json to ES6 * Added changelog entry
1 parent 410d0b8 commit 0a51ee8

File tree

6 files changed

+25
-26
lines changed

6 files changed

+25
-26
lines changed

.eslintrc.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
{
22
"parserOptions": {
3-
"ecmaVersion": 5
3+
"ecmaVersion": 6,
4+
"sourceType": "module"
45
},
56
"extends": "eslint:recommended",
6-
"env": {
7-
"commonjs": true
8-
},
97
"rules": {
108
"strict": [2, "global"],
119
"block-scoped-var": 2,

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/checkout@v2
1414

1515
- uses: purescript-contrib/setup-purescript@main
16+
with:
17+
purescript: "unstable"
1618

1719
- uses: actions/setup-node@v1
1820
with:

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
55
## [Unreleased]
66

77
Breaking changes:
8+
- Migrate FFI to ES modules (#41 by @JordanMartinez)
89

910
New features:
1011

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"package.json"
1717
],
1818
"dependencies": {
19-
"purescript-effect": "^3.0.0",
20-
"purescript-either": "^5.0.0",
21-
"purescript-maybe": "^5.0.0",
22-
"purescript-prelude": "^5.0.0"
19+
"purescript-effect": "master",
20+
"purescript-either": "master",
21+
"purescript-maybe": "master",
22+
"purescript-prelude": "master"
2323
}
2424
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
},
77
"devDependencies": {
88
"eslint": "^7.15.0",
9-
"pulp": "^15.0.0",
10-
"purescript-psa": "^0.8.0",
9+
"pulp": "16.0.0-0",
10+
"purescript-psa": "^0.8.2",
1111
"rimraf": "^3.0.2"
1212
}
1313
}

src/Effect/Exception.js

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,34 @@
1-
"use strict";
2-
3-
exports.showErrorImpl = function (err) {
1+
export function showErrorImpl(err) {
42
return err.stack || err.toString();
5-
};
3+
}
64

7-
exports.error = function (msg) {
5+
export function error(msg) {
86
return new Error(msg);
9-
};
7+
}
108

11-
exports.message = function (e) {
9+
export function message(e) {
1210
return e.message;
13-
};
11+
}
1412

15-
exports.name = function (e) {
13+
export function name(e) {
1614
return e.name || "Error";
17-
};
15+
}
1816

19-
exports.stackImpl = function (just) {
17+
export function stackImpl(just) {
2018
return function (nothing) {
2119
return function (e) {
2220
return e.stack ? just(e.stack) : nothing;
2321
};
2422
};
25-
};
23+
}
2624

27-
exports.throwException = function (e) {
25+
export function throwException(e) {
2826
return function () {
2927
throw e;
3028
};
31-
};
29+
}
3230

33-
exports.catchException = function (c) {
31+
export function catchException(c) {
3432
return function (t) {
3533
return function () {
3634
try {
@@ -44,4 +42,4 @@ exports.catchException = function (c) {
4442
}
4543
};
4644
};
47-
};
45+
}

0 commit comments

Comments
 (0)