This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree 7 files changed +35
-33
lines changed
7 files changed +35
-33
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"parserOptions" : {
3
- "ecmaVersion" : 5
3
+ "ecmaVersion" : 6 ,
4
+ "sourceType" : " module"
4
5
},
5
6
"extends" : " eslint:recommended" ,
6
7
"env" : {
7
- "commonjs" : true ,
8
8
"browser" : true
9
9
},
10
10
"globals" : {
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
13
13
- uses : actions/checkout@v2
14
14
15
15
- uses : purescript-contrib/setup-purescript@main
16
+ with :
17
+ purescript : " unstable"
16
18
17
- - uses : actions/setup-node@v1
19
+ - uses : actions/setup-node@v2
18
20
with :
19
- node-version : " 10 "
21
+ node-version : " 14 "
20
22
21
23
- name : Install dependencies
22
24
run : |
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
5
5
## [ Unreleased]
6
6
7
7
Breaking changes:
8
+ - Migrate FFI to ES modules (#14 by @JordanMartinez )
8
9
9
10
New features:
10
11
Original file line number Diff line number Diff line change 13
13
" output"
14
14
],
15
15
"dependencies" : {
16
- "purescript-effect" : " ^3.0.0 " ,
17
- "purescript-exceptions" : " ^5.0.0 " ,
18
- "purescript-functions" : " ^5.0.0 " ,
19
- "purescript-maybe" : " ^5.0.0 " ,
20
- "purescript-prelude" : " ^5.0.0 " ,
21
- "purescript-foldable-traversable" : " ^5.0.0 "
16
+ "purescript-effect" : " master " ,
17
+ "purescript-exceptions" : " master " ,
18
+ "purescript-functions" : " master " ,
19
+ "purescript-maybe" : " master " ,
20
+ "purescript-prelude" : " master " ,
21
+ "purescript-foldable-traversable" : " master "
22
22
}
23
23
}
Original file line number Diff line number Diff line change 6
6
},
7
7
"devDependencies" : {
8
8
"eslint" : " ^7.15.0" ,
9
- "pulp" : " ^15 .0.0" ,
10
- "purescript-psa" : " ^0.8.0 " ,
9
+ "pulp" : " 16 .0.0- 0" ,
10
+ "purescript-psa" : " ^0.8.2 " ,
11
11
"rimraf" : " ^3.0.2"
12
12
}
13
13
}
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . new = function ( k ) {
1
+ const newImpl = function ( k ) {
4
2
return new Promise ( k ) ;
5
3
} ;
4
+ export { newImpl as new } ;
6
5
7
- exports . then_ = function ( k , p ) {
6
+ export function then_ ( k , p ) {
8
7
return p . then ( k ) ;
9
- } ;
8
+ }
10
9
11
- exports . catch = function ( k , p ) {
10
+ const catchImpl = function ( k , p ) {
12
11
return p . catch ( k ) ;
13
12
} ;
13
+ export { catchImpl as catch } ;
14
14
15
- exports . finally = function ( k , p ) {
15
+ const finallyImpl = function ( k , p ) {
16
16
return p . finally ( k ) ;
17
17
} ;
18
+ export { finallyImpl as finally } ;
18
19
19
- exports . resolve = function ( a ) {
20
+ export function resolve ( a ) {
20
21
return Promise . resolve ( a ) ;
21
- } ;
22
+ }
22
23
23
- exports . reject = function ( a ) {
24
+ export function reject ( a ) {
24
25
return Promise . reject ( a ) ;
25
- } ;
26
+ }
26
27
27
- exports . all = function ( a ) {
28
+ export function all ( a ) {
28
29
return Promise . all ( a ) ;
29
- } ;
30
+ }
30
31
31
- exports . race = function ( a ) {
32
+ export function race ( a ) {
32
33
return Promise . race ( a ) ;
33
- } ;
34
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . fromError = function ( a ) {
1
+ export function fromError ( a ) {
4
2
return a ;
5
- } ;
3
+ }
6
4
7
- exports . _toError = function ( just , nothing , ref ) {
5
+ export function _toError ( just , nothing , ref ) {
8
6
if ( ref instanceof Error ) {
9
7
return just ( ref ) ;
10
8
}
11
9
return nothing ;
12
- } ;
10
+ }
You can’t perform that action at this time.
0 commit comments