aleph-im / aleph-explorer

Simple explorer for the Aleph.im network
4 stars 2 forks source link

Bump dependencies #66

Closed BjrInt closed 1 year ago

BjrInt commented 1 year ago

This PR should clear most of the dependabot alerts.

Changes summary:

vue-cli-service -> Vite

Replaced the whole build system. Previously using vue-cli-service which is now officially deprecated, it now uses vite which is branded as the default Vue build system.

Switching from Webpack to ESBuild, in addition to the security patches, has enhanced build time by 500% to 1000% on average.

Removed aleph-js dependency

This dependency was used on a single line of code across all files (in the Aggregate Details section). Since this package has a lot of outdated dependencies and relies on postinstall cryptographic primitives build (adding 30s on avg after each install), it is wiser to remove it for now.

Installation is now faster and without deprecation warnings.

Miscellaneous package bumps

See package.json blame

Metrics

CPU : core i5-6600k

MetricBefore bumpAfter bump
Total bundle size (including assets) 19Mb 1.4Mb
Average build time (no cache) 28s 5s
Average time to serve 3.5s 500ms
BjrInt commented 1 year ago

(Will undraft when #64 #68 #69 #70 are merged)