Skip to content

Commit

Permalink
Roll back2 27 1 (#503)
Browse files Browse the repository at this point in the history
* Revert "Custom timings showing on pages that arent-related (#500)"

This reverts commit 65a6098.

* bump bump

* Update CHANGELOG.md
  • Loading branch information
darcythomas authored Sep 12, 2023
1 parent 7031911 commit e9ea6ce
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
node-version: 20.x
- uses: browser-actions/setup-chrome@latest
with:
chrome-version: stable
chrome-version: latest
- run: npm ci
- run: npx grunt
- run: npm test
Binary file removed 128x128-transparent.png
Binary file not shown.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
-->


## [2.27.2]

### Changed

- Rolls back the previous change


## [2.27.1]

### Changed

- Fixes a rare condition where 'Custom timings' are showing on pages that aren't related



## 2023-08-28 Update

[2nd phase of deprecations]
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "raygun4js",
"version": "2.27.1",
"version": "2.27.2",
"homepage": "http://raygun.com",
"authors": [
"Mindscape <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
],
"title": "Raygun4js",
"description": "Raygun.com plugin for JavaScript",
"version": "2.27.1",
"version": "2.27.2",
"homepage": "https://github.com/MindscapeHQ/raygun4js",
"author": {
"name": "MindscapeHQ",
Expand Down
6 changes: 2 additions & 4 deletions raygun4js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>raygun4js</id>
<version>2.27.1</version>
<version>2.27.2</version>
<title>Raygun4js</title>
<authors>Raygun Limited</authors>
<owners>Raygun Limited</owners>
<PackageIcon>128x128-transparent.png</PackageIcon>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<RepositoryUrl>https://github.com/MindscapeHQ/raygun4js</RepositoryUrl>
<licenseUrl>https://raw2.github.com/MindscapeHQ/raygun4js/master/LICENSE</licenseUrl>
<projectUrl>http://raygun.com/raygun-providers/javascript</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>Official Raygun JavaScript module - automatic client-side error tracking and Real User Monitoring for your web project</summary>
Expand Down
9 changes: 4 additions & 5 deletions src/raygun.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,14 @@ var raygunFactory = function (window, $, undefined) {
}
},

trackEvent: function (type, options, parentResource) {
trackEvent: function (type, options) {
if (_providerState !== ProviderStates.READY) {
parentResource = _rum.parentResource;
_trackEventQueue.push({ type: type, options: options, parentResource: parentResource });
_trackEventQueue.push({ type: type, options: options });
return;
}

if (Raygun.RealUserMonitoring !== undefined && _rum) {
parentResource = parentResource || _rum.parentResource;
var parentResource = _rum.parentResource;
if (type === 'pageView' && options.path) {
_rum.virtualPageLoaded(options.path);
} else if (type === 'customTiming') {
Expand Down Expand Up @@ -557,7 +556,7 @@ var raygunFactory = function (window, $, undefined) {
_processExceptionQueue = [];

for (i = 0; i < _trackEventQueue.length; i++) {
_publicRaygunFunctions.trackEvent(_trackEventQueue[i].type, _trackEventQueue[i].options , _trackEventQueue[i].parentResource || null);
_publicRaygunFunctions.trackEvent(_trackEventQueue[i].type, _trackEventQueue[i].options);
}

_trackEventQueue = [];
Expand Down

0 comments on commit e9ea6ce

Please sign in to comment.