From c7f2c3d4a9a7e28ff5a00b136ae5681be0ae186d Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 11 Mar 2022 14:19:42 -0800 Subject: [PATCH 1/7] Update to CI to use 'unstable' purescript --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) 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: From 9fb440d6a15a9429ca79211c20aa876f3a5829cc Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 11 Mar 2022 14:19:42 -0800 Subject: [PATCH 2/7] Update pulp to 16.0.0-0 and psa to 0.8.2 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1fac874..4d84152 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": "^2.6.2" } } From 5351cf02112f89617f109866ac8cf6866878bde9 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Fri, 11 Mar 2022 14:59:24 -0800 Subject: [PATCH 3/7] Update Bower dependencies to master --- bower.json | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/bower.json b/bower.json index e394bc5..042d36e 100644 --- a/bower.json +++ b/bower.json @@ -15,20 +15,20 @@ "package.json" ], "dependencies": { - "purescript-control": "^5.0.0", - "purescript-effect": "^3.0.0", - "purescript-either": "^5.0.0", - "purescript-foldable-traversable": "^5.0.0", - "purescript-functors": "^4.0.0", - "purescript-maybe": "^5.0.0", - "purescript-newtype": "^4.0.0", - "purescript-prelude": "^5.0.0", - "purescript-profunctor": "^5.0.0", - "purescript-refs": "^5.0.0", - "purescript-transformers": "^5.0.0" + "purescript-control": "master", + "purescript-effect": "master", + "purescript-either": "master", + "purescript-foldable-traversable": "master", + "purescript-functors": "master", + "purescript-maybe": "master", + "purescript-newtype": "master", + "purescript-prelude": "master", + "purescript-profunctor": "master", + "purescript-refs": "master", + "purescript-transformers": "master" }, "devDependencies": { - "purescript-console": "^5.0.0", - "purescript-functions": "^5.0.0" + "purescript-console": "master", + "purescript-functions": "master" } } From 97060a6cc8263420b41c24ae604927552690f9fc Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Mon, 14 Mar 2022 17:15:41 -0700 Subject: [PATCH 4/7] Migrated FFI to ES modules via 'lebab' --- test/Main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Main.js b/test/Main.js index 674ca36..9b37506 100644 --- a/test/Main.js +++ b/test/Main.js @@ -1,6 +1,6 @@ "use strict"; -exports.getImpl = function(opts) { +export function getImpl(opts) { return function(done) { return function() { require('http').request(opts, function(res) { @@ -15,4 +15,4 @@ exports.getImpl = function(opts) { }).end(); }; }; -}; +} From 4f2f51ec777b2a474f934d2376d673371785a9c7 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Mon, 14 Mar 2022 17:15:41 -0700 Subject: [PATCH 5/7] Removed '"use strict";' in FFI files --- test/Main.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/Main.js b/test/Main.js index 9b37506..5be95de 100644 --- a/test/Main.js +++ b/test/Main.js @@ -1,5 +1,3 @@ -"use strict"; - export function getImpl(opts) { return function(done) { return function() { From 1f39668d0a5a8a6c4de758634c8d94e9b1cbd167 Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Mon, 14 Mar 2022 17:16:55 -0700 Subject: [PATCH 6/7] Replace require with import --- test/Main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/Main.js b/test/Main.js index 5be95de..5e69ad2 100644 --- a/test/Main.js +++ b/test/Main.js @@ -1,7 +1,9 @@ +import http from "http"; + export function getImpl(opts) { return function(done) { return function() { - require('http').request(opts, function(res) { + http.request(opts, function(res) { var body = ''; res.setEncoding('utf8'); res.on('data', function (s) { From 64c2c3e5ab48b7f95f54efe910fcabe8cd41234d Mon Sep 17 00:00:00 2001 From: Jordan Martinez Date: Mon, 14 Mar 2022 17:17:40 -0700 Subject: [PATCH 7/7] Added changelog entry --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d64ce..3529261 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: +- Update project and deps to PureScript v0.15.0 (#41 by @JordanMartinez) New features: