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:
EventSource (sse) is not working in IE11. This is a bug in that library and is already present since 2017. Because IE11 will be retired in June 2022, we will not implement a work-around.
There is a scaling issue in the pairing input field that causes the input field to overflow its parent. This is a known bug with flex in IE10 and IE11. It just works normally, but it looks a bit weird. The proposed work-arounds do not work. because we precisely use it in a way for which there is no easy workaround (box-sizing with margin).
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:
flex
in IE10 and IE11. It just works normally, but it looks a bit weird. The proposed work-arounds do not work. because we precisely use it in a way for which there is no easy workaround (box-sizing with margin).