Skip to content

Commit

Permalink
Update to v0.15.0 (#39)
Browse files Browse the repository at this point in the history
* 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

* Add changelog entry

Co-authored-by: Cyril Sobierajewicz <[email protected]>
  • Loading branch information
JordanMartinez and kl0tl committed Mar 14, 2022
1 parent d7cb69e commit f674a33
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 18 deletions.
6 changes: 2 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"parserOptions": {
"ecmaVersion": 5
"ecmaVersion": 6,
"sourceType": "module"
},
"extends": "eslint:recommended",
"env": {
"commonjs": true
},
"globals": {
"console": true
},
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
- uses: actions/checkout@v2

- uses: purescript-contrib/setup-purescript@main
with:
purescript: "unstable"

- uses: actions/setup-node@v1
with:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"package.json"
],
"dependencies": {
"purescript-effect": "^3.0.0",
"purescript-prelude": "^5.0.0"
"purescript-effect": "master",
"purescript-prelude": "master"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
18 changes: 8 additions & 10 deletions src/Effect/Console.js
Original file line number Diff line number Diff line change
@@ -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();
};

0 comments on commit f674a33

Please sign in to comment.