Skip to content

Commit a8ba2e5

Browse files
sigma-andexnwolversonthomashoneyman
authored
Update to PureScript v0.15.0 (#22)
* ESM conversion * Arrow/lest transformation * Update .eslintrc.json to ES6 * Update Bower dependencies to master or main * Update pulp to 16.0.0-0 and psa to 0.8.2 * Removed '"use strict";' in FFI files * Update to CI to use 'unstable' purescript * Update .github/workflows/ci.yml Co-authored-by: Thomas Honeyman <hello@thomashoneyman.com> * Fix duplicate entry in ci.yml * Fix resolve with arrow syntax * Add changelog entry Co-authored-by: Nicholas Wolverson <nicholas.wolverson@gmail.com> Co-authored-by: Thomas Honeyman <hello@thomashoneyman.com>
1 parent a2d7cf0 commit a8ba2e5

File tree

6 files changed

+33
-47
lines changed

6 files changed

+33
-47
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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ jobs:
1313
- uses: actions/checkout@v2
1414

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

17-
- uses: actions/setup-node@v1
19+
- uses: actions/setup-node@v2
1820
with:
19-
node-version: "10"
21+
node-version: "14"
2022

2123
- name: Install dependencies
2224
run: |

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+
- Update project and deps to PureScript v0.15.0 (#22 by @nwolverson, @JordanMartinez, @sigma-andex)
89

910
New features:
1011

bower.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"package.json"
2121
],
2222
"dependencies": {
23-
"purescript-effect": "^3.0.0"
23+
"purescript-effect": "master"
2424
},
2525
"devDependencies": {
26-
"purescript-assert": "^5.0.0",
27-
"purescript-console": "^5.0.0"
26+
"purescript-assert": "master",
27+
"purescript-console": "master"
2828
}
2929
}

package.json

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

src/Node/Path.js

Lines changed: 21 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,30 @@
1-
"use strict";
1+
import path from "path";
2+
export const normalize = path.normalize;
23

3-
var path = require("path");
4-
5-
exports.normalize = path.normalize;
6-
7-
exports.concat = function (segments) {
4+
export function concat(segments) {
85
return path.join.apply(this, segments);
9-
};
6+
}
107

11-
exports.resolve = function (from) {
12-
return function (to) {
13-
return function () {
14-
return path.resolve.apply(this, from.concat([to]));
15-
};
16-
};
17-
};
8+
export function resolve(from) {
9+
return to => () => path.resolve.apply(this, from.concat([to]));
10+
}
1811

19-
exports.relative = function (from) {
20-
return function (to) {
21-
return path.relative(from, to);
22-
};
23-
};
12+
export function relative(from) {
13+
return to => path.relative(from, to);
14+
}
2415

25-
exports.dirname = function (p) {
16+
export function dirname(p) {
2617
return path.normalize(path.dirname(p));
27-
};
28-
29-
exports.basename = path.basename;
30-
31-
exports.basenameWithoutExt = function (p) {
32-
return function (ext) {
33-
return path.basename(p, ext);
34-
};
35-
};
36-
37-
exports.extname = path.extname;
38-
39-
exports.sep = path.sep;
18+
}
4019

41-
exports.delimiter = path.delimiter;
20+
export const basename = path.basename;
4221

43-
exports.parse = path.parse;
22+
export function basenameWithoutExt(p) {
23+
return ext => path.basename(p, ext);
24+
}
4425

45-
exports.isAbsolute = path.isAbsolute;
26+
export const extname = path.extname;
27+
export const sep = path.sep;
28+
export const delimiter = path.delimiter;
29+
export const parse = path.parse;
30+
export const isAbsolute = path.isAbsolute;

0 commit comments

Comments
 (0)