privacybydesign / irma-frontend-packages

Collection of frontend related packages, that together form a Javascript "client" to the IRMA server.
7 stars 4 forks source link

Upgrade to webpack 5 #64

Closed ivard closed 2 years ago

ivard commented 2 years ago

This PR upgrades webpack 4 to webpack 5 in all packages we have, to get rid of the deprecation warnings in npm audit fix.

I tested it on several browsers and it works fine now. I had to add some missing polyfills. For example, we need the core-js/modules/es.promise.finally polyfill to use finally on Promises in old browsers. This missing polyfill must have caused problems in WebPack 4 too, so this can be considered a bug fix. Another bug was that the polling messages were cached on some older browsers. I explicitly disabled caching there now.

I found some more bugs, which I didn't fix: