From 3eab34b03450e9b2ae7b5b55c718cc28631c775c Mon Sep 17 00:00:00 2001 From: Samuel Holt Date: Tue, 15 Jun 2021 10:44:21 +1200 Subject: [PATCH 1/2] Bump version, update changelog --- CHANGELOG.md | 3 +++ Gruntfile.js | 61 ++++++++++++++++++++++++++++++++++++++++++++---- bower.json | 2 +- package.json | 2 +- raygun4js.nuspec | 2 +- 5 files changed, 63 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c3d5b73..478036fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +* v2.22.4 +- Add a new script bundle that doesn't include the web-vitals vendor script + * v2.22.3 - Fixes an issue where the heartbeat was not clearing the `xhrStatusMap` array due to `this` referring to the window object diff --git a/Gruntfile.js b/Gruntfile.js index 7073cba2..26353cc5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -22,9 +22,61 @@ module.exports = function(grunt) { }, dist: { files: { - 'dist/raygun.js': ['tracekit/tracekit.js', 'src/raygun.tracekit.jquery.js', 'src/polyfills.js', 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', 'src/raygun.utilities/index.js', 'src/raygun.network-tracking.js', 'src/raygun.breadcrumbs.js', 'src/raygun.rum/core-web-vitals.js', 'src/raygun.js', 'src/raygun.rum/vendor/web-vitals.vendor.js', 'src/raygun.rum/index.js', 'src/raygun.loader.js'], - 'dist/raygun.vanilla.js': ['tracekit/tracekit.js', 'src/polyfills.js', 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', 'src/raygun.utilities/index.js', 'src/raygun.network-tracking.js', 'src/raygun.breadcrumbs.js', 'src/raygun.rum/core-web-vitals.js', 'src/raygun.js', 'src/raygun.rum/vendor/web-vitals.vendor.js', 'src/raygun.rum/index.js', 'src/raygun.loader.js'], - 'dist/raygun.umd.js': ['src/umd.intro.js', 'tracekit/tracekit.js', 'src/polyfills.js', 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', 'src/raygun.tracekit.jquery.js', 'src/raygun.utilities/index.js', 'src/raygun.network-tracking.js', 'src/raygun.breadcrumbs.js', 'src/raygun.rum/core-web-vitals.js', 'src/raygun.js', 'src/raygun.rum/vendor/web-vitals.vendor.js', 'src/raygun.rum/index.js', 'src/raygun.loader.js', 'src/umd.outro.js'] + 'dist/raygun.js': [ + 'tracekit/tracekit.js', + 'src/raygun.tracekit.jquery.js', + 'src/polyfills.js', + 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', + 'src/raygun.utilities/index.js', + 'src/raygun.network-tracking.js', + 'src/raygun.breadcrumbs.js', + 'src/raygun.rum/core-web-vitals.js', + 'src/raygun.js', + 'src/raygun.rum/vendor/web-vitals.vendor.js', + 'src/raygun.rum/index.js', + 'src/raygun.loader.js' + ], + 'dist/raygun.vanilla.js': [ + 'tracekit/tracekit.js', + 'src/polyfills.js', + 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', + 'src/raygun.utilities/index.js', + 'src/raygun.network-tracking.js', + 'src/raygun.breadcrumbs.js', + 'src/raygun.rum/core-web-vitals.js', + 'src/raygun.js', + 'src/raygun.rum/vendor/web-vitals.vendor.js', + 'src/raygun.rum/index.js', + 'src/raygun.loader.js' + ], + 'dist/raygun.umd.js': [ + 'src/umd.intro.js', + 'tracekit/tracekit.js', + 'src/polyfills.js', + 'src/raygun.rum/vendor/web-vitals-polyfills.vendor.js', + 'src/raygun.tracekit.jquery.js', + 'src/raygun.utilities/index.js', + 'src/raygun.network-tracking.js', + 'src/raygun.breadcrumbs.js', + 'src/raygun.rum/core-web-vitals.js', + 'src/raygun.js', + 'src/raygun.rum/vendor/web-vitals.vendor.js', + 'src/raygun.rum/index.js', + 'src/raygun.loader.js', + 'src/umd.outro.js' + ], + 'dist/raygun.nowebvitals.js': [ + 'tracekit/tracekit.js', + 'src/raygun.tracekit.jquery.js', + 'src/polyfills.js', + 'src/raygun.utilities/index.js', + 'src/raygun.network-tracking.js', + 'src/raygun.breadcrumbs.js', + 'src/raygun.rum/core-web-vitals.js', + 'src/raygun.js', + 'src/raygun.rum/index.js', + 'src/raygun.loader.js' + ], } } }, @@ -37,7 +89,8 @@ module.exports = function(grunt) { files: { 'dist/raygun.min.js': ['dist/raygun.js'], 'dist/raygun.vanilla.min.js': ['dist/raygun.vanilla.js'], - 'dist/raygun.umd.min.js': ['dist/raygun.umd.js'] + 'dist/raygun.umd.min.js': ['dist/raygun.umd.js'], + 'dist/raygun.nowebvitals.min.js': ['dist/raygun.nowebvitals.js'], } }, snippet:{ diff --git a/bower.json b/bower.json index 9de42f57..07b47588 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "raygun4js", - "version": "2.22.0", + "version": "2.22.4", "homepage": "http://raygun.io", "authors": [ "Mindscape " diff --git a/package.json b/package.json index a328921e..42639a89 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "title": "Raygun4js", "description": "Raygun.com plugin for JavaScript", - "version": "2.22.3", + "version": "2.22.4", "homepage": "https://github.com/MindscapeHQ/raygun4js", "author": { "name": "MindscapeHQ", diff --git a/raygun4js.nuspec b/raygun4js.nuspec index f3cdca4b..cb3b027d 100644 --- a/raygun4js.nuspec +++ b/raygun4js.nuspec @@ -2,7 +2,7 @@ raygun4js - 2.22.0 + 2.22.4 Raygun4js Mindscape Limited Mindscape Limited From 10f071090ded0ed843f26c83bfbc195970ea4281 Mon Sep 17 00:00:00 2001 From: Samuel Holt Date: Tue, 15 Jun 2021 11:29:15 +1200 Subject: [PATCH 2/2] Add links to the nowebvitals scripts and a brief explanation in the readme --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2ab4f2b0..9550dd6c 100644 --- a/README.md +++ b/README.md @@ -97,10 +97,14 @@ Download the [production version][min] or the [development version][max]. You ca the jQuery hooks if you are not using jQuery or you wish to provide your own hooks. Get this as a [production version][min.vanilla] or [development version][max.vanilla]. +The standard bundle includes the [web-vitals](https://github.com/GoogleChrome/web-vitals) base and polyfill scripts for automatically tracking Core Web Vitals metrics. If you prefer to add these yourself, there is a separate bundle that does not include the vendor scripts. This is available as a [production version][min.nowebvitals] or [development version][max.nowebvitals]. + [min]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.min.js [max]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.js [min.vanilla]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.vanilla.min.js [max.vanilla]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.vanilla.js +[min.nowebvitals]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.nowebvitals.min.js +[max.nowebvitals]: https://raw.github.com/MindscapeHQ/raygun4js/master/dist/raygun.nowebvitals.js ## Usage