From 69ea03ca427c252cc3fd235f82df93e1986675e3 Mon Sep 17 00:00:00 2001 From: JordanMartinez Date: Mon, 14 Mar 2022 16:15:49 -0700 Subject: [PATCH] Update to v0.15.0 (#37) * 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 --- .eslintrc.json | 6 ++---- .github/workflows/ci.yml | 2 ++ CHANGELOG.md | 1 + bower.json | 16 ++++++++-------- package.json | 4 ++-- src/Data/Unfoldable.js | 4 +--- src/Data/Unfoldable1.js | 4 +--- 7 files changed, 17 insertions(+), 20 deletions(-) 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 6b10ada..22d8f97 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 (#37 by @kl0tl and @JordanMartinez) New features: diff --git a/bower.json b/bower.json index 400e0c2..ec2cbf4 100644 --- a/bower.json +++ b/bower.json @@ -16,15 +16,15 @@ "package.json" ], "dependencies": { - "purescript-foldable-traversable": "^5.0.0", - "purescript-maybe": "^5.0.0", - "purescript-partial": "^3.0.0", - "purescript-prelude": "^5.0.0", - "purescript-tuples": "^6.0.0" + "purescript-foldable-traversable": "master", + "purescript-maybe": "master", + "purescript-partial": "master", + "purescript-prelude": "master", + "purescript-tuples": "master" }, "devDependencies": { - "purescript-assert": "^5.0.0", - "purescript-console": "^5.0.0", - "purescript-psci-support": "^5.0.0" + "purescript-assert": "master", + "purescript-console": "master", + "purescript-psci-support": "master" } } diff --git a/package.json b/package.json index fd4391e..a1d6811 100644 --- a/package.json +++ b/package.json @@ -7,8 +7,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/Data/Unfoldable.js b/src/Data/Unfoldable.js index ba48300..9d9aa8e 100644 --- a/src/Data/Unfoldable.js +++ b/src/Data/Unfoldable.js @@ -1,6 +1,4 @@ -"use strict"; - -exports.unfoldrArrayImpl = function (isNothing) { +export const unfoldrArrayImpl = function (isNothing) { return function (fromJust) { return function (fst) { return function (snd) { diff --git a/src/Data/Unfoldable1.js b/src/Data/Unfoldable1.js index d794fdf..4993bd1 100644 --- a/src/Data/Unfoldable1.js +++ b/src/Data/Unfoldable1.js @@ -1,6 +1,4 @@ -"use strict"; - -exports.unfoldr1ArrayImpl = function (isNothing) { +export const unfoldr1ArrayImpl = function (isNothing) { return function (fromJust) { return function (fst) { return function (snd) {