From 4cb1bce5b42f82a8777de2354d66ba533fd7ee86 Mon Sep 17 00:00:00 2001 From: JordanMartinez Date: Tue, 15 Mar 2022 12:33:24 -0700 Subject: [PATCH] Update to v0.15.0 (#51) * Add support for es modules * 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 * Added changelog entry Co-authored-by: sigma-andex --- .github/workflows/ci.yml | 2 ++ CHANGELOG.md | 1 + bower.json | 24 ++++++++++++------------ package.json | 4 ++-- src/Data/Enum.js | 10 ++++------ 5 files changed, 21 insertions(+), 20 deletions(-) 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 6c69383..5ab5c58 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 (#51 by @sigma-andex and @JordanMartinez) New features: diff --git a/bower.json b/bower.json index a10913d..cb387df 100644 --- a/bower.json +++ b/bower.json @@ -17,19 +17,19 @@ "package.json" ], "dependencies": { - "purescript-control": "^5.0.0", - "purescript-either": "^5.0.0", - "purescript-gen": "^3.0.0", - "purescript-maybe": "^5.0.0", - "purescript-newtype": "^4.0.0", - "purescript-nonempty": "^6.0.0", - "purescript-partial": "^3.0.0", - "purescript-prelude": "^5.0.0", - "purescript-tuples": "^6.0.0", - "purescript-unfoldable": "^5.0.0" + "purescript-control": "master", + "purescript-either": "master", + "purescript-gen": "master", + "purescript-maybe": "master", + "purescript-newtype": "master", + "purescript-nonempty": "master", + "purescript-partial": "master", + "purescript-prelude": "master", + "purescript-tuples": "master", + "purescript-unfoldable": "master" }, "devDependencies": { - "purescript-assert": "^5.0.0", - "purescript-console": "^5.0.0" + "purescript-assert": "master", + "purescript-console": "master" } } diff --git a/package.json b/package.json index d3602c1..c8e10e0 100644 --- a/package.json +++ b/package.json @@ -6,8 +6,8 @@ "test": "pulp test" }, "devDependencies": { - "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/Enum.js b/src/Data/Enum.js index 126aca0..3b32bf2 100644 --- a/src/Data/Enum.js +++ b/src/Data/Enum.js @@ -1,9 +1,7 @@ -"use strict"; - -exports.toCharCode = function (c) { +export function toCharCode(c) { return c.charCodeAt(0); -}; +} -exports.fromCharCode = function (c) { +export function fromCharCode(c) { return String.fromCharCode(c); -}; +}