File tree 10 files changed +44
-50
lines changed
10 files changed +44
-50
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 (#7 by @JordanMartinez )
8
9
9
10
New features:
10
11
Original file line number Diff line number Diff line change 15
15
" package.json"
16
16
],
17
17
"dependencies" : {
18
- "purescript-arraybuffer-types" : " ^3.0.0 " ,
19
- "purescript-effect" : " ^3.0.0 " ,
20
- "purescript-exceptions" : " ^5.0.0 " ,
21
- "purescript-nullable" : " ^5.0.0 " ,
22
- "purescript-prelude" : " ^5.0.0 " ,
23
- "purescript-tuples" : " ^6.0.0 " ,
24
- "purescript-web-promise" : " https://github.com/purescript-web/purescript-web-promise.git#2.0.0 "
18
+ "purescript-arraybuffer-types" : " main " ,
19
+ "purescript-effect" : " master " ,
20
+ "purescript-exceptions" : " master " ,
21
+ "purescript-nullable" : " main " ,
22
+ "purescript-prelude" : " master " ,
23
+ "purescript-tuples" : " master " ,
24
+ "purescript-web-promise" : " https://github.com/purescript-web/purescript-web-promise.git#master "
25
25
}
26
26
}
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 ( options ) {
1
+ const newImpl = function ( options ) {
4
2
return function ( ) {
5
3
return new QueuingStrategy ( options ) ;
6
4
} ;
7
5
} ;
6
+ export { newImpl as new } ;
8
7
9
- exports . byteLengthQueuingStrategy = function ( options ) {
8
+ export function byteLengthQueuingStrategy ( options ) {
10
9
return function ( ) {
11
10
return new ByteLengthQueuingStrategy ( options ) ;
12
11
} ;
13
- } ;
12
+ }
14
13
15
- exports . countQueuingStrategy = function ( options ) {
14
+ export function countQueuingStrategy ( options ) {
16
15
return function ( ) {
17
16
return new CountQueuingStrategy ( options ) ;
18
17
} ;
19
- } ;
18
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . _new = function ( source , strategy ) {
1
+ export function _new ( source , strategy ) {
4
2
return new ReadableStream ( source , strategy ) ;
5
- } ;
3
+ }
6
4
7
- exports . cancel = function ( stream ) {
5
+ export function cancel ( stream ) {
8
6
return function ( ) {
9
7
return stream . cancel ( ) ;
10
8
} ;
11
- } ;
9
+ }
12
10
13
- exports . locked = function ( stream ) {
11
+ export function locked ( stream ) {
14
12
return function ( ) {
15
13
return stream . locked ;
16
14
} ;
17
- } ;
15
+ }
18
16
19
- exports . getReader = function ( stream ) {
17
+ export function getReader ( stream ) {
20
18
return function ( ) {
21
19
return stream . getReader ( ) ;
22
20
} ;
23
- } ;
21
+ }
24
22
25
- exports . _tee = function ( tuple , stream ) {
23
+ export function _tee ( tuple , stream ) {
26
24
var r = stream . tee ( ) ;
27
25
return tuple ( r [ 0 ] ) ( r [ 1 ] ) ;
28
- } ;
26
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . enqueue = function ( chunk ) {
1
+ export function enqueue ( chunk ) {
4
2
return function ( controller ) {
5
3
return function ( ) {
6
4
return controller . enqueue ( chunk ) ;
7
5
} ;
8
6
} ;
9
- } ;
7
+ }
10
8
11
- exports . close = function ( controller ) {
9
+ export function close ( controller ) {
12
10
return function ( ) {
13
11
return controller . close ( ) ;
14
12
} ;
15
- } ;
13
+ }
16
14
17
- exports . error = function ( error ) {
15
+ export function error ( error ) {
18
16
return function ( controller ) {
19
17
return function ( ) {
20
18
return controller . error ( error ) ;
21
19
} ;
22
20
} ;
23
- } ;
21
+ }
24
22
25
- exports . desiredSize = function ( controller ) {
23
+ export function desiredSize ( controller ) {
26
24
return function ( ) {
27
25
return controller . desiredSize ;
28
26
} ;
29
- } ;
27
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . _read = function ( nothing , just , reader ) {
1
+ export function _read ( nothing , just , reader ) {
4
2
return reader . read ( ) . then ( function ( res ) {
5
3
if ( res . done ) {
6
4
return nothing ;
7
5
}
8
6
return just ( res . value ) ;
9
7
} ) ;
10
- } ;
8
+ }
Original file line number Diff line number Diff line change 1
- "use strict" ;
2
-
3
- exports . _make = function ( options ) {
1
+ export function _make ( options ) {
4
2
var newOptions = {
5
3
start : function ( controller ) {
6
4
return options . start ( controller ) ( ) ;
@@ -17,4 +15,4 @@ exports._make = function(options) {
17
15
} ;
18
16
}
19
17
return newOptions ;
20
- } ;
18
+ }
You can’t perform that action at this time.
0 commit comments