Skip to content

DAP 8.8.0

Latest

Choose a tag to compare

@sanason sanason released this 02 Jul 20:24
Immutable release. Only release title and notes can be modified.
b625c64

What's new in DAP 8.8.0

DAP 8.8.0 consists of two changes that should be invisible to most DAP users.

Switch to Terser for minification

Who this affects: Users who self-host the DAP code

We started using a different minifier (the tool that converts Universal-Federated-Analytics.js into the compressed file Universal-Federated-Analytics-Min.js). Previously, we were using the Java-based Google Closure Compiler. Now, we use the JavaScript-based Terser library. This should have no effect on the functionality of the DAP code.

However, switching minifiers did have the side effect of changing the name of the source map file. Previously, it was named Federated.js.map. Now, it is named Universal-Federated-Analytics-Min.js.map. So, for those who self-host the DAP code, one of the files you copy over will be named differently when you upgrade to DAP 8.8.0. The self-hosting instructions in the wiki have been updated accordingly.

Inherit crossorigin on the injected web-vitals script

Who this affects: Users whose DAP-enabled site enforces cross-origin isolation

If your site enforces cross-origin isolation by setting the header Cross-Origin-Embedder-Policy: require-corp, the default behavior is that both the DAP code and the web-vitals library will be blocked from loading on your site. The DAP code can be unblocked by adding the crossorigin: "" attribute to the DAP script tag but there was no way to unblock the web-vitals library. DAP 8.8.0 fixes this problem by copying the crossorigin attribute to the web-vitals script tag if it is present on the DAP script tag.

See #167.

Thank you @mdmower-csnw for reporting this issue and @arpitjain099 for providing a fix!

Full Changelog: v8.7.0...v8.8.0