diff --git a/.github/workflows/ci_apps_cli.yml b/.github/workflows/ci_apps_cli.yml index 94f737b6..aa3e0d30 100644 --- a/.github/workflows/ci_apps_cli.yml +++ b/.github/workflows/ci_apps_cli.yml @@ -16,6 +16,10 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils + - run: npm run build + working-directory: ./packages/components - run: npm run lint typecheck: @@ -26,6 +30,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run build working-directory: ./packages/components - run: tsc @@ -36,6 +42,10 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils + - run: npm run build + working-directory: ./packages/components - run: npm run coverage buildcheck: @@ -46,6 +56,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run build working-directory: ./packages/components - run: npm run build diff --git a/.github/workflows/ci_apps_hyparquet_demo.yml b/.github/workflows/ci_apps_hyparquet_demo.yml index 0d7c0894..97f101f3 100644 --- a/.github/workflows/ci_apps_hyparquet_demo.yml +++ b/.github/workflows/ci_apps_hyparquet_demo.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run lint typecheck: @@ -22,6 +24,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: tsc buildcheck: @@ -29,4 +33,6 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run build \ No newline at end of file diff --git a/.github/workflows/ci_packages_components.yml b/.github/workflows/ci_packages_components.yml index 64289edc..5a44a632 100644 --- a/.github/workflows/ci_packages_components.yml +++ b/.github/workflows/ci_packages_components.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run lint typecheck: @@ -22,6 +24,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: tsc test: @@ -29,6 +33,8 @@ jobs: steps: - uses: actions/checkout@v4 - run: npm i + - run: npm run build + working-directory: ./packages/utils - run: npm run coverage buildcheck: @@ -37,3 +43,5 @@ jobs: - uses: actions/checkout@v4 - run: npm i - run: npm run build + working-directory: ./packages/utils + - run: npm run build diff --git a/.github/workflows/ci_packages_utils.yml b/.github/workflows/ci_packages_utils.yml new file mode 100644 index 00000000..244e9448 --- /dev/null +++ b/.github/workflows/ci_packages_utils.yml @@ -0,0 +1,39 @@ +name: packages/utils +on: + push: + paths: + - 'packages/utils/**' + - '.github/workflows/ci_packages_utils.yml' + +defaults: + run: + working-directory: ./packages/utils + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm i + - run: npm run lint + + typecheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm i + - run: tsc + + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm i + - run: npm run coverage + + buildcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm i + - run: npm run build diff --git a/README.md b/README.md index 2424480b..5187d9fc 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,7 @@ This is a monorepo for the Hyperparam project. It contains the following package: - [`@hyparam/components`](./packages/components): a library of React components for building Hyperparam UIs. +- [`@hyparam/utils`](./packages/utils): a library of utils. It also contains the following applications: - [`hyperparam`](./apps/cli): a cli tool for viewing arbitrarily large datasets in the browser. diff --git a/apps/cli/public/build/app.min.js b/apps/cli/public/build/app.min.js index ea4d2325..22b0281c 100644 --- a/apps/cli/public/build/app.min.js +++ b/apps/cli/public/build/app.min.js @@ -1,4 +1,4 @@ -function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var l,n,t,a,d={exports:{}},r={},c={exports:{}},i={};function V(){if(l)return i;l=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),r=Symbol.for("react.provider"),c=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),u=Symbol.iterator;var U={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,W={};function N(e,l,n){this.props=e,this.context=l,this.refs=W,this.updater=n||U}function R(){}function p(e,l,n){this.props=e,this.context=l,this.refs=W,this.updater=n||U}N.prototype.isReactComponent={},N.prototype.setState=function(e,l){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,l,"setState")},N.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},R.prototype=N.prototype;var b=p.prototype=new R;b.constructor=p,m(b,N.prototype),b.isPureReactComponent=!0;var T=Array.isArray,F=Object.prototype.hasOwnProperty,M={current:null},h={key:!0,ref:!0,__self:!0,__source:!0};function S(l,n,t){var a,d={},r=null,c=null;if(null!=n)for(a in void 0!==n.ref&&(c=n.ref),void 0!==n.key&&(r=""+n.key),n)F.call(n,a)&&!h.hasOwnProperty(a)&&(d[a]=n[a]);var i=arguments.length-2;if(1===i)d.children=t;else if(1>>1,d=e[t];if(!(0>>1;ta(i,n))Va(s,i)?(e[t]=s,e[V]=n,t=V):(e[t]=i,e[c]=n,t=c);else{if(!(Va(s,n)))break e;e[t]=s,e[V]=n,t=V}}}return l}function a(e,l){var n=e.sortIndex-l.sortIndex;return 0!==n?n:e.id-l.id}if("object"==typeof performance&&"function"==typeof performance.now){var d=performance;e.unstable_now=function(){return d.now()}}else{var r=Date,c=r.now();e.unstable_now=function(){return r.now()-c}}var i=[],V=[],s=1,o=null,Z=3,u=!1,U=!1,m=!1,W="function"==typeof setTimeout?setTimeout:null,N="function"==typeof clearTimeout?clearTimeout:null,R="undefined"!=typeof setImmediate?setImmediate:null;function p(e){for(var a=n(V);null!==a;){if(null===a.callback)t(V);else{if(!(a.startTime<=e))break;t(V),a.sortIndex=a.expirationTime,l(i,a)}a=n(V)}}function b(e){if(m=!1,p(e),!U)if(null!==n(i))U=!0,f(T);else{var l=n(V);null!==l&&x(b,l.startTime-e)}}function T(l,a){U=!1,m&&(m=!1,N(S),S=-1),u=!0;var d=Z;try{for(p(a),o=n(i);null!==o&&(!(o.expirationTime>a)||l&&!Q());){var r=o.callback;if("function"==typeof r){o.callback=null,Z=o.priorityLevel;var c=r(o.expirationTime<=a);a=e.unstable_now(),"function"==typeof c?o.callback=c:o===n(i)&&t(i),p(a)}else t(i);o=n(i)}if(null!==o)var s=!0;else{var W=n(V);null!==W&&x(b,W.startTime-a),s=!1}return s}finally{o=null,Z=d,u=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var F,M=!1,h=null,S=-1,k=5,y=-1;function Q(){return!(e.unstable_now()-ye||125r?(t.sortIndex=d,l(V,t),null===n(i)&&t===n(V)&&(m?(N(S),S=-1):m=!0,x(b,d-r))):(t.sortIndex=c,l(i,t),U||u||(U=!0,f(T))),t},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(e){var l=Z;return function(){var n=Z;Z=l;try{return e.apply(this,arguments)}finally{Z=n}}}}(T)),T)),b.exports} + */var s,V,Z,m,p=(r||(r=1,a.exports=function(){if(l)return i;l=1;var e=d(),n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,a=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,l){var i,u={},c=null,d=null;for(i in void 0!==l&&(c=""+l),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)r.call(t,i)&&!o.hasOwnProperty(i)&&(u[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===u[i]&&(u[i]=t[i]);return{$$typeof:n,type:e,key:c,ref:d,props:u,_owner:a.current}}return i.Fragment=t,i.jsx=u,i.jsxs=u,i}()),a.exports),f=d(),U=e(f),b={exports:{}},h={},N={exports:{}},W={};function R(){return V||(V=1,N.exports=(s||(s=1,function(e){function n(e,n){var t=e.length;e.push(n);e:for(;0>>1,a=e[l];if(!(0>>1;lr(u,t))cr(d,u)?(e[l]=d,e[c]=t,l=c):(e[l]=u,e[o]=t,l=o);else{if(!(cr(d,t)))break e;e[l]=d,e[c]=t,l=c}}}return n}function r(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,o=i.now();e.unstable_now=function(){return i.now()-o}}var u=[],c=[],d=1,s=null,V=3,Z=!1,m=!1,p=!1,f="function"==typeof setTimeout?setTimeout:null,U="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function h(e){for(var r=t(c);null!==r;){if(null===r.callback)l(c);else{if(!(r.startTime<=e))break;l(c),r.sortIndex=r.expirationTime,n(u,r)}r=t(c)}}function N(e){if(p=!1,h(e),!m)if(null!==t(u))m=!0,x(W);else{var n=t(c);null!==n&&g(N,n.startTime-e)}}function W(n,r){m=!1,p&&(p=!1,U(F),F=-1),Z=!0;var a=V;try{for(h(r),s=t(u);null!==s&&(!(s.expirationTime>r)||n&&!k());){var i=s.callback;if("function"==typeof i){s.callback=null,V=s.priorityLevel;var o=i(s.expirationTime<=r);r=e.unstable_now(),"function"==typeof o?s.callback=o:s===t(u)&&l(u),h(r)}else l(u);s=t(u)}if(null!==s)var d=!0;else{var f=t(c);null!==f&&g(N,f.startTime-r),d=!1}return d}finally{s=null,V=a,Z=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var R,y=!1,T=null,F=-1,S=5,M=-1;function k(){return!(e.unstable_now()-Me||125i?(l.sortIndex=a,n(c,l),null===t(u)&&l===t(c)&&(p?(U(F),F=-1):p=!0,g(N,a-i))):(l.sortIndex=o,n(u,l),m||Z||(m=!0,x(W))),l},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(e){var n=V;return function(){var t=V;V=n;try{return e.apply(this,arguments)}finally{V=t}}}}(W)),W)),N.exports} /** * @license React * react-dom.production.min.js @@ -16,5 +16,32 @@ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"de * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function M(){if(u)return p;u=1;var e=s(),l=F();function n(e){for(var l="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n