Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorhami committed Sep 12, 2023
1 parent 06f78f0 commit 143d78e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Unused normalize.css file
-->
## [2.27.3]

### Changed

- Fixes a rare condition with UMD where we assume rg4js is initialised but it is not, causing an infinite loop.



## [2.27.2]
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.2",
"version": "2.27.3",
"homepage": "http://raygun.com",
"authors": [
"Mindscape <[email protected]>"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2",
"version": "2.27.3",
"homepage": "https://github.com/MindscapeHQ/raygun4js",
"author": {
"name": "MindscapeHQ",
Expand Down
2 changes: 1 addition & 1 deletion raygun4js.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>raygun4js</id>
<version>2.27.2</version>
<version>2.27.3</version>
<title>Raygun4js</title>
<authors>Raygun Limited</authors>
<owners>Raygun Limited</owners>
Expand Down
14 changes: 14 additions & 0 deletions tests/specs/v2/UMDInfiniteLoopTest.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
var webdriverio = require('webdriverio');




/**
* What does this test do?
* When using the UMD module, if raygun events are fired (e.g. rg4js('send', ...))
* before raygun is fully loaded they are stored in an object on the window.
* When Raygun loads these are then processed.
* However a bug was found where we were assuming raygun was loaded when
* `document.readyState === complete` but it is not loaded until slightly
* after when the `load` event is fired. This means that if a rayugn event
* is processed in this gap an infinite loop can be caused.
* This test ensures graceful handling of this situation
*/
describe("UMD Infinite loop test", function() {
beforeEach(async function() {
/**
Expand Down

0 comments on commit 143d78e

Please sign in to comment.