File tree Expand file tree Collapse file tree 11 files changed +50
-59
lines changed
Expand file tree Collapse file tree 11 files changed +50
-59
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 (#14 by @JordanMartinez )
89
910New features:
1011
Original file line number Diff line number Diff line change 1515 " package.json"
1616 ],
1717 "dependencies" : {
18- "purescript-web-dom" : " ^5.0.0 " ,
19- "purescript-web-html" : " ^3.0.0 " ,
20- "purescript-web-uievents" : " ^3.0.0 "
18+ "purescript-web-dom" : " master " ,
19+ "purescript-web-html" : " master " ,
20+ "purescript-web-uievents" : " master "
2121 }
2222}
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 11// Web.CSSOM
2- "use strict" ;
3-
4- exports . getStyleSheets = function ( doc ) {
2+ export function getStyleSheets ( doc ) {
53 return function ( ) {
64 return doc . styleSheets ;
75 } ;
8- } ;
6+ }
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . cssText = function ( style ) {
1+ export function cssText ( style ) {
42 return function ( ) {
53 return style . cssText ;
64 } ;
7- } ;
5+ }
86
9- exports . setCssText = function ( style ) {
7+ export function setCssText ( style ) {
108 return function ( newCSS ) {
119 return function ( ) {
1210 style . cssText = newCSS ;
1311 } ;
1412 } ;
15- } ;
13+ }
1614
17- exports . length = function ( style ) {
15+ export function length ( style ) {
1816 return function ( ) {
1917 return style . length ;
2018 } ;
21- } ;
19+ }
2220
23- exports . getPropertyPriority = function ( style ) {
21+ export function getPropertyPriority ( style ) {
2422 return function ( propName ) {
2523 return function ( ) {
2624 return style . getPropertyPriority ( propName ) ;
2725 } ;
2826 } ;
29- } ;
27+ }
3028
31- exports . getPropertyValue = function ( style ) {
29+ export function getPropertyValue ( style ) {
3230 return function ( propName ) {
3331 return function ( ) {
3432 return style . getPropertyValue ( propName ) ;
3533 } ;
3634 } ;
37- } ;
35+ }
3836
39- exports . removeProperty = function ( style ) {
37+ export function removeProperty ( style ) {
4038 return function ( propName ) {
4139 return function ( ) {
4240 style . removeProperty ( propName ) ;
4341 } ;
4442 } ;
45- } ;
43+ }
4644
47- exports . setProperty = function ( style ) {
45+ export function setProperty ( style ) {
4846 return function ( propName ) {
4947 return function ( propValue ) {
5048 return function ( ) {
5149 style . setProperty ( propName , propValue ) ;
5250 } ;
5351 } ;
5452 } ;
55- } ;
53+ }
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
31var getProp = function ( name ) {
42 return function ( sheet ) {
53 return sheet [ name ] ;
64 } ;
75} ;
86
9- exports . disabled = getProp ( "disabled" ) ;
10- exports . _href = getProp ( "href" ) ;
11- exports . _ownerNode = getProp ( "ownerNode" ) ;
12- exports . _parentStyleSheet = getProp ( "parentStyleSheet" ) ;
13- exports . _title = getProp ( "title" ) ;
14- exports . _type = getProp ( "type" ) ;
7+ export const disabled = getProp ( "disabled" ) ;
8+ export const _href = getProp ( "href" ) ;
9+ export const _ownerNode = getProp ( "ownerNode" ) ;
10+ export const _parentStyleSheet = getProp ( "parentStyleSheet" ) ;
11+ export const _title = getProp ( "title" ) ;
12+ export const _type = getProp ( "type" ) ;
1513
16- exports . setDisabled = function ( bool ) {
14+ export function setDisabled ( bool ) {
1715 return function ( sheet ) {
1816 return function ( ) {
1917 sheet . disabled = bool ;
2018 } ;
2119 } ;
22- } ;
20+ }
2321
24- exports . toggleDisabled = function ( sheet ) {
22+ export function toggleDisabled ( sheet ) {
2523 return function ( ) {
2624 var bool = ! sheet . disabled ;
2725 sheet . disabled = bool ;
2826 return bool ;
2927 } ;
30- } ;
28+ }
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . style = function ( el ) {
1+ export function style ( el ) {
42 return function ( ) {
53 return el . style ;
64 } ;
7- } ;
5+ }
Original file line number Diff line number Diff line change 1- "use strict" ;
2-
3- exports . offsetX = function ( e ) {
1+ export function offsetX ( e ) {
42 return e . offsetX ;
5- } ;
3+ }
64
7- exports . offsetY = function ( e ) {
5+ export function offsetY ( e ) {
86 return e . offsetY ;
9- } ;
7+ }
You can’t perform that action at this time.
0 commit comments