File tree Expand file tree Collapse file tree 7 files changed +23
-22
lines changed
Expand file tree Collapse file tree 7 files changed +23
-22
lines changed Original file line number Diff line number Diff line change 11{
22 "parserOptions" : {
3- "ecmaVersion" : 5
3+ "ecmaVersion" : 6 ,
4+ "sourceType" : " module"
45 },
56 "extends" : " eslint:recommended" ,
67 "env" : {
7- "commonjs" : true ,
88 "browser" : true
99 },
1010 "rules" : {
Original file line number Diff line number Diff line change @@ -13,10 +13,12 @@ jobs:
1313 - uses : actions/checkout@v2
1414
1515 - uses : purescript-contrib/setup-purescript@main
16+ with :
17+ purescript : " unstable"
1618
17- - uses : actions/setup-node@v1
19+ - uses : actions/setup-node@v2
1820 with :
19- node-version : " 10 "
21+ node-version : " 14 "
2022
2123 - name : Install dependencies
2224 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
55## [ Unreleased]
66
77Breaking changes:
8+ - Migrate FFI to ES modules (#7 by @JordanMartinez )
89
910New features:
1011
Original file line number Diff line number Diff line change 1515 " package.json"
1616 ],
1717 "dependencies" : {
18- "purescript-arraybuffer-types" : " ^3.0.0 " ,
19- "purescript-effect" : " ^3.0.0 " ,
20- "purescript-newtype" : " ^4.0.0 " ,
21- "purescript-prelude" : " ^5.0.0 "
18+ "purescript-arraybuffer-types" : " main " ,
19+ "purescript-effect" : " master " ,
20+ "purescript-newtype" : " master " ,
21+ "purescript-prelude" : " master "
2222 }
2323}
Original file line number Diff line number Diff line change 66 },
77 "devDependencies" : {
88 "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 " ,
1111 "rimraf" : " ^3.0.2"
1212 }
1313}
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . new = function ( label ) {
1+ const newImpl = function ( label ) {
42 return function ( ) {
53 return new TextDecoder ( label ) ;
64 } ;
75} ;
6+ export { newImpl as new } ;
87
9- exports . _decode = function ( view , options , decoder ) {
8+ export function _decode ( view , options , decoder ) {
109 return decoder . decode ( view , options ) ;
11- } ;
10+ }
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . new = function ( ) {
1+ const newImpl = function ( ) {
42 return new TextEncoder ( ) ;
53} ;
4+ export { newImpl as new } ;
65
7- exports . encode = function ( text ) {
6+ export function encode ( text ) {
87 return function ( encoder ) {
98 return encoder . encode ( text ) ;
109 } ;
11- } ;
10+ }
1211
13- exports . encodeInto = function ( text ) {
12+ export function encodeInto ( text ) {
1413 return function ( view ) {
1514 return function ( encoder ) {
1615 return function ( ) {
1716 return encoder . encodeInto ( text , view ) ;
1817 } ;
1918 } ;
2019 } ;
21- } ;
20+ }
You can’t perform that action at this time.
0 commit comments