diff --git a/.eslintrc.json b/.eslintrc.json index 84cef4f..1c6afb9 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,11 +1,9 @@ { "parserOptions": { - "ecmaVersion": 5 + "ecmaVersion": 6, + "sourceType": "module" }, "extends": "eslint:recommended", - "env": { - "commonjs": true - }, "rules": { "strict": [2, "global"], "block-scoped-var": 2, 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 c355c5a..30bd8fa 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: +- Migrate FFI to ES modules (#29 by @JordanMartinez) New features: diff --git a/bower.json b/bower.json index 753815d..de37ca2 100644 --- a/bower.json +++ b/bower.json @@ -16,8 +16,8 @@ "package.json" ], "dependencies": { - "purescript-effect": "^3.0.0", - "purescript-integers": "^5.0.0", - "purescript-math": "^3.0.0" + "purescript-effect": "master", + "purescript-integers": "master", + "purescript-math": "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/Random.js b/src/Effect/Random.js index ea4de61..242b500 100644 --- a/src/Effect/Random.js +++ b/src/Effect/Random.js @@ -1,3 +1 @@ -"use strict"; - -exports.random = Math.random; +export const random = Math.random;