From ebcfa81e96bced55b6e39e7a75acd5e749294fc6 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Tue, 16 Apr 2024 15:21:26 -0700 Subject: [PATCH 1/9] change all size url --- AISKU/README.md | 131 +++++++++--------- README.md | 6 +- docs/README.md | 4 +- .../README.md | 4 +- .../img/ai.3.2.0.min.js.gzip.svg | 1 + tools/release-tools/img/ai.3.2.0.min.js.svg | 1 + 6 files changed, 75 insertions(+), 72 deletions(-) create mode 100644 tools/release-tools/img/ai.3.2.0.min.js.gzip.svg create mode 100644 tools/release-tools/img/ai.3.2.0.min.js.svg diff --git a/AISKU/README.md b/AISKU/README.md index 7c3ffd52f..f92ead9e7 100644 --- a/AISKU/README.md +++ b/AISKU/README.md @@ -33,75 +33,76 @@ See [Breaking Changes](https://microsoft.github.io/ApplicationInsights-JS/upgrad | Version | Full Size | Raw Minified | GZip Size |---------|-----------|--------------|------------- -| [<nightly3>](https://github.com/microsoft/ApplicationInsights-JS/tree/main/AISKU) | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg?compression=gzip&softmax=61700&max=65535) -| 3.1.2: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.svg?compression=gzip&softmax=61700&max=65535) -| 3.1.1: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.svg?compression=gzip&softmax=61700&max=65535) -| 3.1.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.svg?compression=gzip&softmax=61700&max=65535) -| 3.0.9: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.9.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.8: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.7: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.6: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.6.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.5: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.4: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.3: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.2: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.2.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.2.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.1: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.1.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.1.min.js.svg?compression=gzip&softmax=51200&max=65535) -| 3.0.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.0.0.min.js.svg?compression=gzip&softmax=51200&max=65535) -| [<nightly>](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU) | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.18: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.17: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.16: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.16.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.16.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.16.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.16.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.15: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.15.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.15.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.15.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.15.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.14: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.14.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.14.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.14.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.14.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.13: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.13.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.13.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.13.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.13.min.js.svg?compression=gzip&softmax=30000&max=35000) -| [2.8.12](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU): | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.12.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.12.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.12.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.12.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.11: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.11.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.11.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.11.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.11.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.10: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.10.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.10.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.10.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.10.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.9: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.9.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.9.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.9.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.9.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.8: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.8.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.8.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.8.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.8.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.7: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.7.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.7.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.7.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.7.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.6: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.6.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.6.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.6.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.6.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.5: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.5.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.5.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.5.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.5.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.4: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.4.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.4.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.3: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.3.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.2: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.2.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.2.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.1: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.1.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.1.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.8.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.8.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.7.4: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.4.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.4.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.7.3: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.3.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.7.2: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.2.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.2.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.7.1: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.1.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.1.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.7.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.7.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.5: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.5.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.5.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.5.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.5.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.4: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.4.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.4.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.3: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.3.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.3.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.2: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.2.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.2.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.1: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.1.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.1.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.6.0: | [![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.0.js.svg?label=full%20size&color=blue)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.6.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.11: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.11.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.11.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.11.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.10: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.10.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.10.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.10.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.9: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.9.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.9.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.9.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.8: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.8.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.8.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.8.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.7: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.7.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.7.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.7.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.6: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.6.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.6.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.6.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.5: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.5.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.5.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.5.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.4: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.4.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.3: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.3.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.5.2: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.5.2.min.js.svg?compression=gzip&softmax=30000&max=35000) +| [<nightly3>](https://github.com/microsoft/ApplicationInsights-JS/tree/main/AISKU) | [![full size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)](https://js.monitor.azure.com/nightly/ai.3-nightly3.js.svg)| ![minified size size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/nightly/ai.3-nightly3.min.js.gzip.svg) +| 3.1.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.2.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.2.min.js.gzip.svg) +| 3.1.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.1.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.1.min.js.gzip.svg) +| 3.1.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.1.0.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.1.0.min.js.gzip.svg) +| 3.0.9: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.9.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.9.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.gzip.svg) +| 3.0.8: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.8.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.8.min.js.gzip.svg) +| 3.0.7: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.7.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.7.min.js.gzip.svg) +| 3.0.6: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.6.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.6.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.gzip.svg) +| 3.0.5: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.5.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.5.min.js.gzip.svg) +| 3.0.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.4.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.4.min.js.gzip.svg) +| 3.0.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.3.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.3.min.js.gzip.svg) +| 3.0.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.2.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.2.min.js.gzip.svg) +| 3.0.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.1.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.1.min.js.gzip.svg) +| 3.0.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.3.0.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.0.0.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.0.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.0.0.min.js.gzip.svg) +| [](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU) | [![full size size](https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg)](https://js.monitor.azure.com/nightly/ai.2-nightly.js.svg)| ![minified size size](https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.svg) | ![gzip size](https://js.monitor.azure.com/nightly/ai.2-nightly.min.js.gzip.svg) +| 2.8.18: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.18.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.18.min.js.gzip.svg) +| 2.8.17: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.17.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.17.min.js.gzip.svg) +| 2.8.16: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.16.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.16.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.16.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.16.min.js.gzip.svg) +| 2.8.15: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.15.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.15.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.15.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.15.min.js.gzip.svg) +| 2.8.14: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.14.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.14.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.14.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.14.min.js.gzip.svg) +| 2.8.13: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.13.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.13.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.13.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.13.min.js.gzip.svg) +| [2.8.12](https://github.com/microsoft/ApplicationInsights-JS/tree/master/AISKU): | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.12.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.12.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.12.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.12.min.js.gzip.svg) +| 2.8.11: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.11.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.11.js.svg)| ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.11.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.11.min.js.gzip.svg) +| 2.8.10: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.10.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.10.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.10.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.10.min.js.gzip.svg) +| 2.8.9: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.9.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.9.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.9.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.9.min.js.gzip.svg) +| 2.8.8: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.8.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.8.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.8.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.8.min.js.gzip.svg) +| 2.8.7: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.7.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.7.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.7.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.7.min.js.gzip.svg) +| 2.8.6: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.6.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.6.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.6.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.6.min.js.gzip.svg) +| 2.8.5: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.5.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.5.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.5.min.js.gzip.svg) +| 2.8.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.4.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.4.min.js.gzip.svg) +| 2.8.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.3.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.3.min.js.gzip.svg) +| 2.8.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.2.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.2.min.js.gzip.svg) +| 2.8.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.1.min.js.gzip.svg) +| 2.8.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.8.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.8.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.8.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.8.0.min.js.gzip.svg) +| 2.7.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.7.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.7.4.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.7.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.7.4.min.js.gzip.svg) +| 2.7.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.7.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.7.3.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.7.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.7.3.min.js.gzip.svg) +| 2.7.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.7.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.7.2.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.7.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.7.2.min.js.gzip.svg) +| 2.7.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.7.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.7.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.7.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.7.1.min.js.gzip.svg) +| 2.7.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.7.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.7.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.7.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.7.0.min.js.gzip.svg) +| 2.6.5: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.5.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.5.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.5.min.js.gzip.svg) +| 2.6.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.4.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.4.min.js.gzip.svg) +| 2.6.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.3.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.3.min.js.gzip.svg) +| 2.6.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.2.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.2.min.js.gzip.svg) +| 2.6.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.1.min.js.gzip.svg) +| 2.6.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.6.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.6.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.6.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.6.0.min.js.gzip.svg) +| 2.5.11: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.11.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.11.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.11.min.js.gzip.svg) +| 2.5.10: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.10.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.10.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.10.min.js.gzip.svg) +| 2.5.9: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.9.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.9.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.9.min.js.gzip.svg) +| 2.5.8: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.8.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.8.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.8.min.js.gzip.svg) +| 2.5.7: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.7.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.7.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.7.min.js.gzip.svg) +| 2.5.6: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.6.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.6.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.6.min.js.gzip.svg) +| 2.5.5: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.5.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.5.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.5.min.js.gzip.svg) +| 2.5.4: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.4.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.4.min.js.gzip.svg) +| 2.5.3: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.3.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.3.min.js.gzip.svg) +| 2.5.2: | ![full size size](https://js.monitor.azure.com/scripts/b/ai.2.5.2.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.5.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.5.2.min.js.gzip.svg) | 2.5.0 - 2.5.1 | Not Deployed to CDN | | -| 2.4.4: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.4.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.4.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.4.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.4.3: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.3.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.3.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.3.min.js.svg?compression=gzip&softmax=30000&max=35000) +| 2.4.4: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.4.4.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.4.4.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.4.4.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.4.4.min.js.gzip.svg) +| 2.4.3: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.4.3.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.4.3.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.4.3.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.4.3.min.js.gzip.svg) | 2.4.2: | Not Deployed to CDN -| 2.4.1: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.4.1.min.js.svg?compression=gzip&softmax=30000&max=35000) +| 2.4.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.4.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.4.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.4.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.4.1.min.js.gzip.svg) | 2.4.0: | Not Deployed to CDN -| 2.3.1: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.1.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.3.0: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.3.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.2.2: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.2.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.2.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.2.min.js.svg?compression=gzip&softmax=30000&max=35000) +| 2.3.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.3.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.3.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.3.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.3.1.min.js.gzip.svg) +| 2.3.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.3.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.3.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.3.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.3.0.min.js.gzip.svg) +| 2.2.2: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.2.2.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.2.2.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.2.2.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.2.2.min.js.gzip.svg) | 2.2.1: | Not Deployed to CDN -| 2.2.0: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.2.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.1.0: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.1.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.1.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.1.0.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.0.1: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.1.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.1.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.1.min.js.svg?compression=gzip&softmax=30000&max=35000) -| 2.0.0: | ![full size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.0.js.svg?label=full%20size&color=blue)| ![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.0.min.js.svg?label=minified%20size&color=darkorchid) | ![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.2.0.0.min.js.svg?compression=gzip&softmax=30000&max=35000) +| 2.2.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.2.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.2.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.2.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.2.0.min.js.gzip.svg) +| 2.1.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.1.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.1.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.1.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.1.0.min.js.gzip.svg) +| 2.0.1: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.0.1.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.0.1.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.0.1.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.0.1.min.js.gzip.svg) +| 2.0.0: | [![full size size](https://js.monitor.azure.com/scripts/b/ai.2.0.0.js.svg)](https://js.monitor.azure.com/scripts/b/ai.2.0.0.js.svg) | ![minified size size](https://js.monitor.azure.com/scripts/b/ai.2.0.0.min.js.svg) | ![gzip size](https://js.monitor.azure.com/scripts/b/ai.2.0.0.min.js.gzip.svg) + ## Contributing diff --git a/README.md b/README.md index 93783be44..d69a45119 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ [![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/microsoft/ApplicationInsights-JS/ci.yml?branch=main)](https://github.com/microsoft/ApplicationInsights-JS/tree/main) [![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status%2FAppInsights%20-%20DevTools%2F1DS%20JavaScript%20SDK%20web%20SKU%20(main%3B%20master)?branchName=main)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=main) [![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web) -[![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/3.min.js.svg?label=minified%20size)](https://js.monitor.azure.com/scripts/b/ai.3.min.js) -[![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.min.js.svg?compression=gzip&softmax=30000&max=35000)](https://js.monitor.azure.com/scripts/b/ai.3.min.js) +[![minified size size](https://js.monitor.azure.com/scripts/b/3.min.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.min.js) +[![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.min.js.gzip.svg)](https://js.monitor.azure.com/scripts/b/ai.3.min.js) ## Before Getting Started @@ -572,7 +572,7 @@ While the script downloads from the CDN, all tracking of your page is queued. On > Summary: > > - ![current npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web.svg) -> - ![gzip compressed size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.svg?compression=gzip) +> - ![gzip compressed size](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.gzip.svg) > - **~15 ms** overall initialization time > - **Zero** tracking missed during life cycle of page diff --git a/docs/README.md b/docs/README.md index 82ded3892..5c9837144 100644 --- a/docs/README.md +++ b/docs/README.md @@ -18,8 +18,8 @@ [![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/microsoft/ApplicationInsights-JS/ci.yml?branch=main)](https://github.com/microsoft/ApplicationInsights-JS/tree/main) [![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status%2FAppInsights%20-%20DevTools%2F1DS%20JavaScript%20SDK%20web%20SKU%20(main%3B%20master)?branchName=main)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=main) [![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-web) -[![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.svg?label=minified%20size)](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js) -[![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.svg?compression=gzip&softmax=50000&max=55000)](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js) +[![minified size size](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.svg)](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js) +[![gzip size](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js.gzip.svg)](https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js) ## Before Getting Started diff --git a/extensions/applicationinsights-debugplugin-js/README.md b/extensions/applicationinsights-debugplugin-js/README.md index 4936f4e20..21a868ee6 100644 --- a/extensions/applicationinsights-debugplugin-js/README.md +++ b/extensions/applicationinsights-debugplugin-js/README.md @@ -5,8 +5,8 @@ [![GitHub Workflow Status (main)](https://img.shields.io/github/actions/workflow/status/microsoft/ApplicationInsights-JS/ci.yml?branch=main)](https://github.com/microsoft/ApplicationInsights-JS/tree/main) [![Build Status](https://dev.azure.com/mseng/AppInsights/_apis/build/status%2FAppInsights%20-%20DevTools%2F1DS%20JavaScript%20SDK%20web%20SKU%20(main%3B%20master)?branchName=main)](https://dev.azure.com/mseng/AppInsights/_build/latest?definitionId=8184&branchName=main) [![npm version](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-debugplugin-js.svg)](https://badge.fury.io/js/%40microsoft%2Fapplicationinsights-debugplugin-js) -[![gzip size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg?compression=gzip&softmax=30000&max=35000)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg?compression=gzip&softmax=20000&max=25000) -[![minified size size](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg?label=minified%20size)](https://img.badgesize.io/https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg?label=minified%20size) +[![gzip size](https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.gzip.svg)](https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.gzip.svg) +[![minified size size](https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg)](https://js.monitor.azure.com/scripts/b/ext/ai.dbg.2.min.js.svg) This README is broken down into several parts: diff --git a/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg b/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg new file mode 100644 index 000000000..243c808b8 --- /dev/null +++ b/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg @@ -0,0 +1 @@ +gzip: 57kbgzip57kb \ No newline at end of file diff --git a/tools/release-tools/img/ai.3.2.0.min.js.svg b/tools/release-tools/img/ai.3.2.0.min.js.svg new file mode 100644 index 000000000..814c927e9 --- /dev/null +++ b/tools/release-tools/img/ai.3.2.0.min.js.svg @@ -0,0 +1 @@ +minified: 140kbminified140kb \ No newline at end of file From 63fe30dcb3401a33e011fb507a7785e427b27385 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Tue, 16 Apr 2024 15:30:39 -0700 Subject: [PATCH 2/9] Create ai.3.2.0.js.svg --- tools/release-tools/img/ai.3.2.0.js.svg | 1 + 1 file changed, 1 insertion(+) create mode 100644 tools/release-tools/img/ai.3.2.0.js.svg diff --git a/tools/release-tools/img/ai.3.2.0.js.svg b/tools/release-tools/img/ai.3.2.0.js.svg new file mode 100644 index 000000000..7bb003141 --- /dev/null +++ b/tools/release-tools/img/ai.3.2.0.js.svg @@ -0,0 +1 @@ +size: 555kbsize555kb \ No newline at end of file From 4ff32c93912791348d42cef8b4fe64d7a67588ad Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Tue, 16 Apr 2024 17:30:10 -0700 Subject: [PATCH 3/9] add script to generate image --- package.json | 3 + .../img/ai.3.2.0.min.js.gzip.svg | 1 - tools/release-tools/img/ai.3.2.0.min.js.svg | 1 - .../ai.3.1.2.js.svg} | 0 .../ai.3.1.2.min.js.gzip.svg | 1 + tools/sizeImageGenerator/ai.3.1.2.min.js.svg | 1 + tools/sizeImageGenerator/package.json | 33 ++++++++++ .../size-image-generator.js | 65 +++++++++++++++++++ 8 files changed, 103 insertions(+), 2 deletions(-) delete mode 100644 tools/release-tools/img/ai.3.2.0.min.js.gzip.svg delete mode 100644 tools/release-tools/img/ai.3.2.0.min.js.svg rename tools/{release-tools/img/ai.3.2.0.js.svg => sizeImageGenerator/ai.3.1.2.js.svg} (100%) create mode 100644 tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg create mode 100644 tools/sizeImageGenerator/ai.3.1.2.min.js.svg create mode 100644 tools/sizeImageGenerator/package.json create mode 100644 tools/sizeImageGenerator/size-image-generator.js diff --git a/package.json b/package.json index 6a7f070b2..f0e188034 100644 --- a/package.json +++ b/package.json @@ -70,5 +70,8 @@ "typedoc": "^0.23.22", "typescript": "^4.9.3", "whatwg-fetch": "^3.6.2" + }, + "dependencies": { + "node-fetch": "^3.3.2" } } diff --git a/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg b/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg deleted file mode 100644 index 243c808b8..000000000 --- a/tools/release-tools/img/ai.3.2.0.min.js.gzip.svg +++ /dev/null @@ -1 +0,0 @@ -gzip: 57kbgzip57kb \ No newline at end of file diff --git a/tools/release-tools/img/ai.3.2.0.min.js.svg b/tools/release-tools/img/ai.3.2.0.min.js.svg deleted file mode 100644 index 814c927e9..000000000 --- a/tools/release-tools/img/ai.3.2.0.min.js.svg +++ /dev/null @@ -1 +0,0 @@ -minified: 140kbminified140kb \ No newline at end of file diff --git a/tools/release-tools/img/ai.3.2.0.js.svg b/tools/sizeImageGenerator/ai.3.1.2.js.svg similarity index 100% rename from tools/release-tools/img/ai.3.2.0.js.svg rename to tools/sizeImageGenerator/ai.3.1.2.js.svg diff --git a/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg b/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg new file mode 100644 index 000000000..441871b53 --- /dev/null +++ b/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg @@ -0,0 +1 @@ +size: 105kbsize105kb \ No newline at end of file diff --git a/tools/sizeImageGenerator/ai.3.1.2.min.js.svg b/tools/sizeImageGenerator/ai.3.1.2.min.js.svg new file mode 100644 index 000000000..78428668a --- /dev/null +++ b/tools/sizeImageGenerator/ai.3.1.2.min.js.svg @@ -0,0 +1 @@ +size: 140kbsize140kb \ No newline at end of file diff --git a/tools/sizeImageGenerator/package.json b/tools/sizeImageGenerator/package.json new file mode 100644 index 000000000..f5dc84403 --- /dev/null +++ b/tools/sizeImageGenerator/package.json @@ -0,0 +1,33 @@ +{ + "name": "applicationinsights-js-size-image-generator", + "version": "3.1.3-dev", + "author": "Javascript Telemetry SDKs ", + "description": "size image generator", + "homepage": "https://github.com/microsoft/ApplicationInsights-JS", + "sideEffects": false, + "scripts": { + "clean": "git clean -xdf", + "update": "rush update", + "build": "", + "rebuild": "", + "test": "", + "issues": "node ./size-image-generator.js" + }, + "keywords": [ + "1DS", + "Js", + "SDK" + ], + "repository": { + "type": "git", + "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/tools/status-tools" + }, + "devDependencies": { + "globby": "^11.0.0", + "grunt": "^1.5.3" + }, + "dependencies": { + "node-fetch": "^3.3.2", + "zlib": "^1.0.5" + } +} diff --git a/tools/sizeImageGenerator/size-image-generator.js b/tools/sizeImageGenerator/size-image-generator.js new file mode 100644 index 000000000..57e0e7bd2 --- /dev/null +++ b/tools/sizeImageGenerator/size-image-generator.js @@ -0,0 +1,65 @@ +const fs = require('fs').promises; +const zlib = require('zlib'); +async function getVersionFromPackageJson(packageJsonPath) { + try { + const data = await fs.readFile(packageJsonPath, 'utf8'); + const packageJson = JSON.parse(data); + if (packageJson && packageJson.version) { + return packageJson.version; + } else { + throw new Error('No version found in package.json'); + } + } catch (err) { + throw new Error(`Failed to read package.json: ${err.message}`); + } +} + +async function generateSizeBadge(path, fileSize) { + try { + const sizeBadge = `https://img.shields.io/badge/size-${fileSize}kb-blue`; + console.log(sizeBadge); + + const res = await fetch(encodeURI(sizeBadge)); + if (!res.ok) { + throw new Error(`Failed to fetch ${sizeBadge}: ${res.status} ${res.statusText}`); + } + + const buffer = await res.arrayBuffer(); + await fs.writeFile(`ai.${path}.svg`, Buffer.from(buffer)); + console.log('File saved successfully'); + } catch (err) { + throw new Error(`Failed to generate size badge: ${err.message}`); + } +} + +async function main() { + const packageJsonPath = '../../AISKU/package.json'; + try { + const version = await getVersionFromPackageJson(packageJsonPath); + console.log(`Version from package.json: ${version}`); + const filename = `../../AISKU/browser/es5/ai.${version}.js`; + const minFileName = `../../AISKU/browser/es5/ai.${version}.min.js`; + console.log(`File to check: ${filename}`); + + const fileSize = Math.ceil((await fs.stat(filename)).size / 1024); + const minFileSize = Math.ceil((await fs.stat(minFileName)).size / 1024); + + + console.log(`File size: ${fileSize}kb`); + console.log(`Minified file size: ${minFileSize}kb`); + + const fileContent = await fs.readFile(filename); + const gzippedContent = zlib.gzipSync(fileContent); + const gzippedSize = Math.ceil(gzippedContent.length / 1024); + console.log(`Gzipped file size: ${gzippedSize}kb`); + + await generateSizeBadge(version + ".js", fileSize); + await generateSizeBadge(version + ".min.js", minFileSize); + await generateSizeBadge(version + ".min.js.gzip", gzippedSize); + + } catch (err) { + console.error('Error:', err); + } +} + +main(); From 4dd8fa5b59281997b01e2d23ef92639e6f0a14b3 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Wed, 17 Apr 2024 13:17:29 -0700 Subject: [PATCH 4/9] remove image --- tools/sizeImageGenerator/ai.3.1.2.js.svg | 1 - tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg | 1 - tools/sizeImageGenerator/ai.3.1.2.min.js.svg | 1 - 3 files changed, 3 deletions(-) delete mode 100644 tools/sizeImageGenerator/ai.3.1.2.js.svg delete mode 100644 tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg delete mode 100644 tools/sizeImageGenerator/ai.3.1.2.min.js.svg diff --git a/tools/sizeImageGenerator/ai.3.1.2.js.svg b/tools/sizeImageGenerator/ai.3.1.2.js.svg deleted file mode 100644 index 7bb003141..000000000 --- a/tools/sizeImageGenerator/ai.3.1.2.js.svg +++ /dev/null @@ -1 +0,0 @@ -size: 555kbsize555kb \ No newline at end of file diff --git a/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg b/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg deleted file mode 100644 index 441871b53..000000000 --- a/tools/sizeImageGenerator/ai.3.1.2.min.js.gzip.svg +++ /dev/null @@ -1 +0,0 @@ -size: 105kbsize105kb \ No newline at end of file diff --git a/tools/sizeImageGenerator/ai.3.1.2.min.js.svg b/tools/sizeImageGenerator/ai.3.1.2.min.js.svg deleted file mode 100644 index 78428668a..000000000 --- a/tools/sizeImageGenerator/ai.3.1.2.min.js.svg +++ /dev/null @@ -1 +0,0 @@ -size: 140kbsize140kb \ No newline at end of file From 30274243839d7e532e790fa5a46717fc65986267 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Wed, 17 Apr 2024 13:18:14 -0700 Subject: [PATCH 5/9] Update package.json --- package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/package.json b/package.json index f0e188034..6a7f070b2 100644 --- a/package.json +++ b/package.json @@ -70,8 +70,5 @@ "typedoc": "^0.23.22", "typescript": "^4.9.3", "whatwg-fetch": "^3.6.2" - }, - "dependencies": { - "node-fetch": "^3.3.2" } } From d09ff573b3634ef33bdfa07a879d9bf294fbd3a1 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Thu, 18 Apr 2024 11:01:41 -0700 Subject: [PATCH 6/9] create old size image pic --- .../old-size-image-generator.js | 80 +++++++++++++++++++ .../size-image-generator.js | 2 +- 2 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 tools/sizeImageGenerator/old-size-image-generator.js diff --git a/tools/sizeImageGenerator/old-size-image-generator.js b/tools/sizeImageGenerator/old-size-image-generator.js new file mode 100644 index 000000000..3942d0d89 --- /dev/null +++ b/tools/sizeImageGenerator/old-size-image-generator.js @@ -0,0 +1,80 @@ +const fs = require('fs').promises; +const zlib = require('zlib'); + +async function generateSizeBadge(path, fileSize) { + try { + const sizeBadge = `https://img.shields.io/badge/size-${fileSize}kb-blue`; + console.log(sizeBadge); + + const res = await fetch(encodeURI(sizeBadge)); + if (!res.ok) { + throw new Error(`Failed to fetch ${sizeBadge}: ${res.status} ${res.statusText}`); + } + + const buffer = await res.arrayBuffer(); + await fs.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); + console.log('File saved successfully'); + } catch (err) { + throw new Error(`Failed to generate size badge: ${err.message}`); + } +} + +async function downloadFile(version) { + try { + let url = "https://js.monitor.azure.com/scripts/b/ai." + version + ".js"; + const res = await fetch(encodeURI(url)); + if (!res.ok) { + throw new Error(`Failed to fetch ${url}: ${res.status} ${res.statusText}`); + } + + const buffer = await res.arrayBuffer(); + await fs.writeFile(`./cdnFile/ai.${version}.js`, Buffer.from(buffer)); + console.log('File saved successfully'); + } catch (err) { + throw new Error(`Failed to generate size badge: ${err.message}`); + } +} + +async function main() { + + const versions = ["3.1.2", "3.1.1", "3.1.0", "3.0.9", "3.0.8", "3.0.7", + "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "2.8.18", + "2.8.17", "2.8.16", "2.8.15", "2.8.14", "2.8.13", "2.8.12", "2.8.11", + "2.8.10", "2.8.9", "2.8.8", "2.8.7", "2.8.6", "2.8.5", "2.8.4", "2.8.3", + "2.8.2", "2.8.1", "2.8.0", "2.7.4", "2.7.3", "2.7.2", "2.7.1", "2.7.0", + "2.6.5", "2.6.4", "2.6.3", "2.6.2", "2.6.1", "2.6.0", "2.5.11", "2.5.10", + "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", + "2.4.4", "2.4.3", "2.4.1", "2.3.1", "2.3.0", "2.2.2", "2.2.0", "2.1.0", + "2.0.1", "2.0.0"] + + for (let i = 0; i < versions.length; i++) { + let version = versions[i]; + await downloadFile(version); + await downloadFile(version + ".min"); + const filename = `./cdnFile/ai.${version}.js`; + const minFileName = `./cdnFile/ai.${version}.min.js`; + console.log(`File to check: ${filename}`); + try { + const fileSize = Math.ceil((await fs.stat(filename)).size / 1024); + const minFileSize = Math.ceil((await fs.stat(minFileName)).size / 1024); + console.log(`File size: ${fileSize}kb`); + console.log(`Minified file size: ${minFileSize}kb`); + + const fileContent = await fs.readFile(filename); + const gzippedContent = zlib.gzipSync(fileContent); + const gzippedSize = Math.ceil(gzippedContent.length / 1024); + console.log(`Gzipped file size: ${gzippedSize}kb`); + + await generateSizeBadge(version + ".js", fileSize); + await generateSizeBadge(version + ".min.js", minFileSize); + await generateSizeBadge(version + ".min.js.gzip", gzippedSize); + } catch (err) { + console.error('Error:', err); + } + + + } + +} + +main(); diff --git a/tools/sizeImageGenerator/size-image-generator.js b/tools/sizeImageGenerator/size-image-generator.js index 57e0e7bd2..df974f62e 100644 --- a/tools/sizeImageGenerator/size-image-generator.js +++ b/tools/sizeImageGenerator/size-image-generator.js @@ -25,7 +25,7 @@ async function generateSizeBadge(path, fileSize) { } const buffer = await res.arrayBuffer(); - await fs.writeFile(`ai.${path}.svg`, Buffer.from(buffer)); + await fs.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); From bab50bc629b15ec6a4d2da28d990b0f2f4a7c1ca Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Thu, 18 Apr 2024 11:16:36 -0700 Subject: [PATCH 7/9] create folder also --- .../old-size-image-generator.js | 24 +++++++++++++------ .../size-image-generator.js | 21 ++++++++++------ 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/tools/sizeImageGenerator/old-size-image-generator.js b/tools/sizeImageGenerator/old-size-image-generator.js index 3942d0d89..35a9a5aa3 100644 --- a/tools/sizeImageGenerator/old-size-image-generator.js +++ b/tools/sizeImageGenerator/old-size-image-generator.js @@ -1,4 +1,6 @@ -const fs = require('fs').promises; +const fsPromise = require('fs').promises; +const fs = require('fs'); +const { create } = require('domain'); const zlib = require('zlib'); async function generateSizeBadge(path, fileSize) { @@ -12,7 +14,7 @@ async function generateSizeBadge(path, fileSize) { } const buffer = await res.arrayBuffer(); - await fs.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); + await fsPromise.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); @@ -28,15 +30,23 @@ async function downloadFile(version) { } const buffer = await res.arrayBuffer(); - await fs.writeFile(`./cdnFile/ai.${version}.js`, Buffer.from(buffer)); + await fsPromise.writeFile(`./cdnFile/ai.${version}.js`, Buffer.from(buffer)); console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); } } -async function main() { +function createDirectory(dirName) { + const dir = `./${dirName}`; + if (!fs.existsSync(dir)){ + fs.mkdirSync(dir); + } +} +async function main() { + createDirectory("cdnFile"); + createDirectory("img"); const versions = ["3.1.2", "3.1.1", "3.1.0", "3.0.9", "3.0.8", "3.0.7", "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "2.8.18", "2.8.17", "2.8.16", "2.8.15", "2.8.14", "2.8.13", "2.8.12", "2.8.11", @@ -55,12 +65,12 @@ async function main() { const minFileName = `./cdnFile/ai.${version}.min.js`; console.log(`File to check: ${filename}`); try { - const fileSize = Math.ceil((await fs.stat(filename)).size / 1024); - const minFileSize = Math.ceil((await fs.stat(minFileName)).size / 1024); + const fileSize = Math.ceil((await fsPromise.stat(filename)).size / 1024); + const minFileSize = Math.ceil((await fsPromise.stat(minFileName)).size / 1024); console.log(`File size: ${fileSize}kb`); console.log(`Minified file size: ${minFileSize}kb`); - const fileContent = await fs.readFile(filename); + const fileContent = await fsPromise.readFile(filename); const gzippedContent = zlib.gzipSync(fileContent); const gzippedSize = Math.ceil(gzippedContent.length / 1024); console.log(`Gzipped file size: ${gzippedSize}kb`); diff --git a/tools/sizeImageGenerator/size-image-generator.js b/tools/sizeImageGenerator/size-image-generator.js index df974f62e..0e414e3f1 100644 --- a/tools/sizeImageGenerator/size-image-generator.js +++ b/tools/sizeImageGenerator/size-image-generator.js @@ -1,8 +1,9 @@ -const fs = require('fs').promises; +const fsPromise = require('fs').promises; +const fs = require('fs'); const zlib = require('zlib'); async function getVersionFromPackageJson(packageJsonPath) { try { - const data = await fs.readFile(packageJsonPath, 'utf8'); + const data = await fsPromise.readFile(packageJsonPath, 'utf8'); const packageJson = JSON.parse(data); if (packageJson && packageJson.version) { return packageJson.version; @@ -25,14 +26,20 @@ async function generateSizeBadge(path, fileSize) { } const buffer = await res.arrayBuffer(); - await fs.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); + await fsPromise.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); } } - +function createDirectory(dirName) { + const dir = `./${dirName}`; + if (!fs.existsSync(dir)){ + fs.mkdirSync(dir); + } +} async function main() { + createDirectory("img"); const packageJsonPath = '../../AISKU/package.json'; try { const version = await getVersionFromPackageJson(packageJsonPath); @@ -41,14 +48,14 @@ async function main() { const minFileName = `../../AISKU/browser/es5/ai.${version}.min.js`; console.log(`File to check: ${filename}`); - const fileSize = Math.ceil((await fs.stat(filename)).size / 1024); - const minFileSize = Math.ceil((await fs.stat(minFileName)).size / 1024); + const fileSize = Math.ceil((await fsPromise.stat(filename)).size / 1024); + const minFileSize = Math.ceil((await fsPromise.stat(minFileName)).size / 1024); console.log(`File size: ${fileSize}kb`); console.log(`Minified file size: ${minFileSize}kb`); - const fileContent = await fs.readFile(filename); + const fileContent = await fsPromise.readFile(filename); const gzippedContent = zlib.gzipSync(fileContent); const gzippedSize = Math.ceil(gzippedContent.length / 1024); console.log(`Gzipped file size: ${gzippedSize}kb`); From 4a4cd4b196da5aa82706b2780aad5e152c782557 Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Thu, 18 Apr 2024 17:22:03 -0700 Subject: [PATCH 8/9] remove logs --- .../old-size-image-generator.js | 75 +++++++------------ .../size-image-generator.js | 12 --- 2 files changed, 29 insertions(+), 58 deletions(-) diff --git a/tools/sizeImageGenerator/old-size-image-generator.js b/tools/sizeImageGenerator/old-size-image-generator.js index 35a9a5aa3..ca6b3b563 100644 --- a/tools/sizeImageGenerator/old-size-image-generator.js +++ b/tools/sizeImageGenerator/old-size-image-generator.js @@ -1,21 +1,16 @@ const fsPromise = require('fs').promises; const fs = require('fs'); -const { create } = require('domain'); const zlib = require('zlib'); async function generateSizeBadge(path, fileSize) { try { const sizeBadge = `https://img.shields.io/badge/size-${fileSize}kb-blue`; - console.log(sizeBadge); - const res = await fetch(encodeURI(sizeBadge)); if (!res.ok) { throw new Error(`Failed to fetch ${sizeBadge}: ${res.status} ${res.statusText}`); } - const buffer = await res.arrayBuffer(); await fsPromise.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); - console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); } @@ -28,10 +23,8 @@ async function downloadFile(version) { if (!res.ok) { throw new Error(`Failed to fetch ${url}: ${res.status} ${res.statusText}`); } - const buffer = await res.arrayBuffer(); await fsPromise.writeFile(`./cdnFile/ai.${version}.js`, Buffer.from(buffer)); - console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); } @@ -45,46 +38,36 @@ function createDirectory(dirName) { } async function main() { - createDirectory("cdnFile"); - createDirectory("img"); - const versions = ["3.1.2", "3.1.1", "3.1.0", "3.0.9", "3.0.8", "3.0.7", - "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "2.8.18", - "2.8.17", "2.8.16", "2.8.15", "2.8.14", "2.8.13", "2.8.12", "2.8.11", - "2.8.10", "2.8.9", "2.8.8", "2.8.7", "2.8.6", "2.8.5", "2.8.4", "2.8.3", - "2.8.2", "2.8.1", "2.8.0", "2.7.4", "2.7.3", "2.7.2", "2.7.1", "2.7.0", - "2.6.5", "2.6.4", "2.6.3", "2.6.2", "2.6.1", "2.6.0", "2.5.11", "2.5.10", - "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", - "2.4.4", "2.4.3", "2.4.1", "2.3.1", "2.3.0", "2.2.2", "2.2.0", "2.1.0", - "2.0.1", "2.0.0"] + createDirectory("cdnFile"); + createDirectory("img"); + const versions = ["3.1.2", "3.1.1", "3.1.0", "3.0.9", "3.0.8", "3.0.7", + "3.0.6", "3.0.5", "3.0.4", "3.0.3", "3.0.2", "3.0.1", "3.0.0", "2.8.18", + "2.8.17", "2.8.16", "2.8.15", "2.8.14", "2.8.13", "2.8.12", "2.8.11", + "2.8.10", "2.8.9", "2.8.8", "2.8.7", "2.8.6", "2.8.5", "2.8.4", "2.8.3", + "2.8.2", "2.8.1", "2.8.0", "2.7.4", "2.7.3", "2.7.2", "2.7.1", "2.7.0", + "2.6.5", "2.6.4", "2.6.3", "2.6.2", "2.6.1", "2.6.0", "2.5.11", "2.5.10", + "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", + "2.4.4", "2.4.3", "2.4.1", "2.3.1", "2.3.0", "2.2.2", "2.2.0", "2.1.0", + "2.0.1", "2.0.0", "3", "3.gbl"] - for (let i = 0; i < versions.length; i++) { - let version = versions[i]; - await downloadFile(version); - await downloadFile(version + ".min"); - const filename = `./cdnFile/ai.${version}.js`; - const minFileName = `./cdnFile/ai.${version}.min.js`; - console.log(`File to check: ${filename}`); - try { - const fileSize = Math.ceil((await fsPromise.stat(filename)).size / 1024); - const minFileSize = Math.ceil((await fsPromise.stat(minFileName)).size / 1024); - console.log(`File size: ${fileSize}kb`); - console.log(`Minified file size: ${minFileSize}kb`); - - const fileContent = await fsPromise.readFile(filename); - const gzippedContent = zlib.gzipSync(fileContent); - const gzippedSize = Math.ceil(gzippedContent.length / 1024); - console.log(`Gzipped file size: ${gzippedSize}kb`); - - await generateSizeBadge(version + ".js", fileSize); - await generateSizeBadge(version + ".min.js", minFileSize); - await generateSizeBadge(version + ".min.js.gzip", gzippedSize); - } catch (err) { - console.error('Error:', err); - } - - + for (let i = 0; i < versions.length; i++) { + let version = versions[i]; + await downloadFile(version); + await downloadFile(version + ".min"); + const filename = `./cdnFile/ai.${version}.js`; + const minFileName = `./cdnFile/ai.${version}.min.js`; + try { + const fileSize = Math.ceil((await fsPromise.stat(filename)).size / 1024); + const minFileSize = Math.ceil((await fsPromise.stat(minFileName)).size / 1024); + const fileContent = await fsPromise.readFile(filename); + const gzippedContent = zlib.gzipSync(fileContent); + const gzippedSize = Math.ceil(gzippedContent.length / 1024); + await generateSizeBadge(version + ".js", fileSize); + await generateSizeBadge(version + ".min.js", minFileSize); + await generateSizeBadge(version + ".min.js.gzip", gzippedSize); + } catch (err) { + console.error('Error:', err); } - + } } - main(); diff --git a/tools/sizeImageGenerator/size-image-generator.js b/tools/sizeImageGenerator/size-image-generator.js index 0e414e3f1..763d7646c 100644 --- a/tools/sizeImageGenerator/size-image-generator.js +++ b/tools/sizeImageGenerator/size-image-generator.js @@ -18,16 +18,12 @@ async function getVersionFromPackageJson(packageJsonPath) { async function generateSizeBadge(path, fileSize) { try { const sizeBadge = `https://img.shields.io/badge/size-${fileSize}kb-blue`; - console.log(sizeBadge); - const res = await fetch(encodeURI(sizeBadge)); if (!res.ok) { throw new Error(`Failed to fetch ${sizeBadge}: ${res.status} ${res.statusText}`); } - const buffer = await res.arrayBuffer(); await fsPromise.writeFile(`img/ai.${path}.svg`, Buffer.from(buffer)); - console.log('File saved successfully'); } catch (err) { throw new Error(`Failed to generate size badge: ${err.message}`); } @@ -43,22 +39,15 @@ async function main() { const packageJsonPath = '../../AISKU/package.json'; try { const version = await getVersionFromPackageJson(packageJsonPath); - console.log(`Version from package.json: ${version}`); const filename = `../../AISKU/browser/es5/ai.${version}.js`; const minFileName = `../../AISKU/browser/es5/ai.${version}.min.js`; - console.log(`File to check: ${filename}`); const fileSize = Math.ceil((await fsPromise.stat(filename)).size / 1024); const minFileSize = Math.ceil((await fsPromise.stat(minFileName)).size / 1024); - - console.log(`File size: ${fileSize}kb`); - console.log(`Minified file size: ${minFileSize}kb`); - const fileContent = await fsPromise.readFile(filename); const gzippedContent = zlib.gzipSync(fileContent); const gzippedSize = Math.ceil(gzippedContent.length / 1024); - console.log(`Gzipped file size: ${gzippedSize}kb`); await generateSizeBadge(version + ".js", fileSize); await generateSizeBadge(version + ".min.js", minFileSize); @@ -68,5 +57,4 @@ async function main() { console.error('Error:', err); } } - main(); From 668f787e9d906d9f1efc741beb37a576c3f79bca Mon Sep 17 00:00:00 2001 From: siyuniu-ms Date: Fri, 19 Apr 2024 14:43:47 -0700 Subject: [PATCH 9/9] Update old-size-image-generator.js --- tools/sizeImageGenerator/old-size-image-generator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/sizeImageGenerator/old-size-image-generator.js b/tools/sizeImageGenerator/old-size-image-generator.js index ca6b3b563..ba99e09e5 100644 --- a/tools/sizeImageGenerator/old-size-image-generator.js +++ b/tools/sizeImageGenerator/old-size-image-generator.js @@ -48,7 +48,7 @@ async function main() { "2.6.5", "2.6.4", "2.6.3", "2.6.2", "2.6.1", "2.6.0", "2.5.11", "2.5.10", "2.5.9", "2.5.8", "2.5.7", "2.5.6", "2.5.5", "2.5.4", "2.5.3", "2.5.2", "2.4.4", "2.4.3", "2.4.1", "2.3.1", "2.3.0", "2.2.2", "2.2.0", "2.1.0", - "2.0.1", "2.0.0", "3", "3.gbl"] + "2.0.1", "2.0.0", "3", "3.gbl"]; for (let i = 0; i < versions.length; i++) { let version = versions[i];