Skip to content

Update to PureScript v0.15.0 #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"parserOptions": {
"ecmaVersion": 5
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"env": {
"commonjs": true,
"browser": true
},
"rules": {
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ jobs:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"

- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: "10"
node-version: "14"

- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
## [Unreleased]

Breaking changes:
- Migrate FFI to ES modules (#17 by @JordanMartinez)

New features:

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"package.json"
],
"dependencies": {
"purescript-web-html": "^3.0.0"
"purescript-web-html": "master"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
},
"devDependencies": {
"eslint": "^7.15.0",
"pulp": "^15.0.0",
"purescript-psa": "^0.8.0",
"pulp": "16.0.0-0",
"purescript-psa": "^0.8.2",
"rimraf": "^2.6.2"
}
}
6 changes: 2 additions & 4 deletions src/Web/UIEvent/CompositionEvent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

exports.data_ = function (e) {
export function data_(e) {
return e.data;
};
}
6 changes: 2 additions & 4 deletions src/Web/UIEvent/FocusEvent.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
"use strict";

exports._relatedTarget = function (e) {
export function _relatedTarget(e) {
return e.relatedTarget;
};
}
10 changes: 4 additions & 6 deletions src/Web/UIEvent/InputEvent.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"use strict";

exports.data_ = function (e) {
export function data_(e) {
return e.data;
};
}

exports.isComposing = function (e) {
export function isComposing(e) {
return e.isComposing;
};
}
42 changes: 20 additions & 22 deletions src/Web/UIEvent/KeyboardEvent.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,43 @@
"use strict";

exports.key = function (e) {
export function key(e) {
return e.key;
};
}

exports.code = function (e) {
export function code(e) {
return e.code;
};
}

exports.locationIndex = function (e) {
export function locationIndex(e) {
return e.location;
};
}

exports.ctrlKey = function (e) {
export function ctrlKey(e) {
return e.ctrlKey;
};
}

exports.shiftKey = function (e) {
export function shiftKey(e) {
return e.shiftKey;
};
}

exports.altKey = function (e) {
export function altKey(e) {
return e.altKey;
};
}

exports.metaKey = function (e) {
export function metaKey(e) {
return e.metaKey;
};
}

exports.repeat = function (e) {
export function repeat(e) {
return e.repeat;
};
}

exports.isComposing = function (e) {
export function isComposing(e) {
return e.isComposing;
};
}

exports.getModifierState = function (s) {
export function getModifierState(s) {
return function (e) {
return function () {
return e.getModifierState(s);
};
};
};
}
58 changes: 28 additions & 30 deletions src/Web/UIEvent/MouseEvent.js
Original file line number Diff line number Diff line change
@@ -1,61 +1,59 @@
"use strict";

exports.screenX = function (e) {
export function screenX(e) {
return e.screenX;
};
}

exports.screenY = function (e) {
export function screenY(e) {
return e.screenY;
};
}

exports.clientX = function (e) {
export function clientX(e) {
return e.clientX;
};
}

exports.clientY = function (e) {
export function clientY(e) {
return e.clientY;
};
}

exports.pageX = function (e) {
export function pageX(e) {
return e.pageX;
};
}

exports.pageY = function (e) {
export function pageY(e) {
return e.pageY;
};
}

exports.ctrlKey = function (e) {
export function ctrlKey(e) {
return e.ctrlKey;
};
}

exports.shiftKey = function (e) {
export function shiftKey(e) {
return e.shiftKey;
};
}

exports.altKey = function (e) {
export function altKey(e) {
return e.altKey;
};
}

exports.metaKey = function (e) {
export function metaKey(e) {
return e.metaKey;
};
}

exports.button = function (e) {
export function button(e) {
return e.button;
};
}

exports._relatedTarget = function (e) {
export function _relatedTarget(e) {
return e.relatedTarget;
};
}

exports.buttons = function (e) {
export function buttons(e) {
return e.buttons;
};
}

exports.getModifierState = function (s) {
export function getModifierState(s) {
return function (e) {
return function () {
return e.getModifierState(s);
};
};
};
}
10 changes: 4 additions & 6 deletions src/Web/UIEvent/UIEvent.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"use strict";

exports._view = function (e) {
export function _view(e) {
return e.view;
};
}

exports.detail = function (e) {
export function detail(e) {
return e.detail;
};
}
18 changes: 8 additions & 10 deletions src/Web/UIEvent/WheelEvent.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
"use strict";

exports.deltaX = function (e) {
export function deltaX(e) {
return e.deltaX;
};
}

exports.deltaY = function (e) {
export function deltaY(e) {
return e.deltaY;
};
}

exports.deltaZ = function (e) {
export function deltaZ(e) {
return e.deltaZ;
};
}

exports.deltaModeIndex = function (e) {
export function deltaModeIndex(e) {
return e.deltaModeIndex;
};
}