Skip to content

Commit 914a99f

Browse files
Update to v0.15.0 (#39)
* Convert foreign modules to try bundling with esbuild * Replaced 'export var' with 'export const' * 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 Co-authored-by: Cyril Sobierajewicz <sobierajewicz.cyril@gmail.com>
1 parent 2f73f61 commit 914a99f

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
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 (#39 by @kl0tl and @JordanMartinez)
89

910
New features:
1011

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
"package.json"
2121
],
2222
"dependencies": {
23-
"purescript-control": "^5.0.0",
24-
"purescript-foldable-traversable": "^5.0.0",
25-
"purescript-invariant": "^5.0.0",
26-
"purescript-prelude": "^5.0.0"
23+
"purescript-control": "master",
24+
"purescript-foldable-traversable": "master",
25+
"purescript-invariant": "master",
26+
"purescript-prelude": "master"
2727
}
2828
}

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/Data/Lazy.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"use strict";
2-
3-
exports.defer = function (thunk) {
1+
export const defer = function (thunk) {
42
var v = null;
53
return function() {
64
if (thunk === undefined) return v;
@@ -11,6 +9,6 @@ exports.defer = function (thunk) {
119
};
1210
};
1311

14-
exports.force = function (l) {
12+
export const force = function (l) {
1513
return l();
1614
};

0 commit comments

Comments
 (0)