diff --git a/.eslintrc.json b/.eslintrc.json index 144db4a..70febb7 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,9 @@ { "parserOptions": { - "ecmaVersion": 5 + "ecmaVersion": 6, + "sourceType": "module" }, "extends": "eslint:recommended", - "env": { - "commonjs": true - }, "globals": { "console": true }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 43d2897..b6ebf3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,8 @@ jobs: - uses: actions/checkout@v2 - uses: purescript-contrib/setup-purescript@main + with: + purescript: "unstable" - uses: actions/setup-node@v1 with: diff --git a/CHANGELOG.md b/CHANGELOG.md index bf2d70c..c556894 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based ## [Unreleased] Breaking changes: +- Migrated FFI to ES modules (#39 by @kl0tl and @JordanMartinez) New features: diff --git a/bower.json b/bower.json index 9e3bec9..483558f 100644 --- a/bower.json +++ b/bower.json @@ -16,7 +16,7 @@ "package.json" ], "dependencies": { - "purescript-effect": "^3.0.0", - "purescript-prelude": "^5.0.0" + "purescript-effect": "master", + "purescript-prelude": "master" } } diff --git a/package.json b/package.json index 1c67b54..4ea39f9 100644 --- a/package.json +++ b/package.json @@ -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": "^3.0.2" } } diff --git a/src/Effect/Console.js b/src/Effect/Console.js index 4009a17..fdf4345 100644 --- a/src/Effect/Console.js +++ b/src/Effect/Console.js @@ -1,47 +1,45 @@ -"use strict"; - -exports.log = function (s) { +export const log = function (s) { return function () { console.log(s); }; }; -exports.warn = function (s) { +export const warn = function (s) { return function () { console.warn(s); }; }; -exports.error = function (s) { +export const error = function (s) { return function () { console.error(s); }; }; -exports.info = function (s) { +export const info = function (s) { return function () { console.info(s); }; }; -exports.time = function (s) { +export const time = function (s) { return function () { console.time(s); }; }; -exports.timeLog = function (s) { +export const timeLog = function (s) { return function () { console.timeLog(s); }; }; -exports.timeEnd = function (s) { +export const timeEnd = function (s) { return function () { console.timeEnd(s); }; }; -exports.clear = function () { +export const clear = function () { console.clear(); };