From c14ae5fa83efc5c21bff8986e69a3c599b5f286b Mon Sep 17 00:00:00 2001 From: Darcy Date: Tue, 1 Aug 2023 11:56:38 +1200 Subject: [PATCH] Update endpoint from .io to .com (#492) * Update endpoint from .io to .com * Update url used in tests * Tidy names and urls * bump version --------- Co-authored-by: Jeremy --- CHANGELOG.md | 9 +++++++++ V1Documentation.md | 4 ++-- bower.json | 8 ++++---- package-lock.json | 4 ++-- package.json | 2 +- raygun4js.nuspec | 14 +++++++------- src/raygun.js | 2 +- tests/specs/v1/eventsXhr.js | 2 +- tests/specs/v1/payloadManualSendTests.js | 2 +- tests/specs/v1/payloadUnhandledErrorTests.js | 2 +- tests/specs/v2/eventsXhr.js | 2 +- tests/specs/v2/onBeforeSendRUM.js | 2 +- tests/specs/v2/payloadManualSendTests.js | 2 +- tests/specs/v2/payloadSyntaxError.js | 2 +- tests/specs/v2/payloadUnhandledErrorTests.js | 2 +- tests/specs/v2/rg4jsLoaderTests.js | 2 +- 16 files changed, 35 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e5e1566d..89547ce8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Fixed + +- Replaced old company name +- Documentation points to 'new' url + +### Changed + +- Updated the Raygun url to send events to preferred ingestion endpoint + ## v2.26.1 - 2023-07-12 ### Fixed diff --git a/V1Documentation.md b/V1Documentation.md index e3cac971..12fe9d11 100644 --- a/V1Documentation.md +++ b/V1Documentation.md @@ -476,7 +476,7 @@ Raygun.setFilterScope('customData'); // Just filter the custom data (default) Raygun4JS now features source maps support through the transmission of column numbers for errors, where available. This is confirmed to work in recent version of Chrome, Safari and Opera, and IE 10 and 11. See the [Raygun souce maps documentation][sourcemaps] for more information. -[sourcemaps]: https://raygun.io/docs/workflow/source-maps +[sourcemaps]: https://raygun.com/docs/workflow/source-maps ### Offline saving @@ -549,7 +549,7 @@ Due to browser API and security limitations, in cases where the message is 'Scri For more information, check out this blog post on [CORS requirements for Script Errors]. -[CORS requirements for Script Errors]: https://raygun.io/blog/2015/05/fix-script-error-and-get-the-most-data-possible-from-cross-domain-js-errors/ +[CORS requirements for Script Errors]: https://raygun.com/blog/2015/05/fix-script-error-and-get-the-most-data-possible-from-cross-domain-js-errors/ ## AngularJS diff --git a/bower.json b/bower.json index a8787f18..3225a8a1 100644 --- a/bower.json +++ b/bower.json @@ -1,15 +1,15 @@ { "name": "raygun4js", - "version": "2.26.1", - "homepage": "http://raygun.io", + "version": "2.26.2", + "homepage": "http://raygun.com", "authors": [ - "Mindscape " + "Mindscape " ], "repository": { "type": "git", "url": "git://github.com/MindscapeHQ/raygun4js.git" }, - "description": "Official Raygun.io automatic error tracking plugin for JavaScript", + "description": "Official Raygun.com automatic error tracking plugin for JavaScript", "main": "dist/raygun.js", "keywords": [ "error", diff --git a/package-lock.json b/package-lock.json index 3e9fa552..f85e2385 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "raygun4js", - "version": "2.26.1", + "version": "2.26.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "raygun4js", - "version": "2.26.1", + "version": "2.26.2", "license": "SEE LICENSE IN https://github.com/MindscapeHQ/raygun4js/blob/master/LICENSE", "devDependencies": { "@wdio/cli": "^8.11.2", diff --git a/package.json b/package.json index 8d2b54f6..17949e5a 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ ], "title": "Raygun4js", "description": "Raygun.com plugin for JavaScript", - "version": "2.26.1", + "version": "2.26.2", "homepage": "https://github.com/MindscapeHQ/raygun4js", "author": { "name": "MindscapeHQ", diff --git a/raygun4js.nuspec b/raygun4js.nuspec index ff92d2dd..768938f3 100644 --- a/raygun4js.nuspec +++ b/raygun4js.nuspec @@ -2,17 +2,17 @@ raygun4js - 2.26.1 + 2.26.2 Raygun4js - Mindscape Limited - Mindscape Limited + Raygun Limited + Raygun Limited https://raw2.github.com/MindscapeHQ/raygun4js/master/LICENSE - http://raygun.io/raygun-providers/javascript + http://raygun.com/raygun-providers/javascript false - Official Raygun JavaScript module - automatic client-side error tracking for your web project - Raygun4js is a tiny library that you can easily add to your website or web application, which will then let your site automatically transmit all Errors to your Raygun.io dashboard, where you can see the stack trace, environment data, custom data and more. Installation is painless, and configuring your site to transmit errors takes just a couple of minutes. + Official Raygun JavaScript module - automatic client-side error tracking and Real User Monitoring for your web project + Raygun4js is a tiny library that you can easily add to your website or web application, which will then let your site automatically transmit all Errors to your Raygun.com dashboard, where you can see the stack trace, environment data, custom data and more. Installation is painless, and configuring your site to transmit errors takes just a couple of minutes. en-US - raygun error tracking reporting logging + raygun error tracking reporting logging monitoring diff --git a/src/raygun.js b/src/raygun.js index 678a8d46..c030a919 100644 --- a/src/raygun.js +++ b/src/raygun.js @@ -56,7 +56,7 @@ var raygunFactory = function(window, $, undefined) { _groupingKeyCallback, _beforeXHRCallback, _afterSendCallback, - _raygunApiUrl = 'https://api.raygun.io', + _raygunApiUrl = 'https://api.raygun.com', _excludedHostnames = null, _excludedUserAgents = null, _filterScope = 'customData', diff --git a/tests/specs/v1/eventsXhr.js b/tests/specs/v1/eventsXhr.js index 18249eb2..6eab2cc9 100644 --- a/tests/specs/v1/eventsXhr.js +++ b/tests/specs/v1/eventsXhr.js @@ -2,7 +2,7 @@ var _ = require('underscore'); var common = require('../common'); -var _eventsEndpoint = 'https://api.raygun.io/events'; +var _eventsEndpoint = 'https://api.raygun.com/events'; describe("XHR functional tests for /events with V1", function() { diff --git a/tests/specs/v1/payloadManualSendTests.js b/tests/specs/v1/payloadManualSendTests.js index 0585b79a..bf8bd805 100644 --- a/tests/specs/v1/payloadManualSendTests.js +++ b/tests/specs/v1/payloadManualSendTests.js @@ -3,7 +3,7 @@ var _ = require('underscore'); var common = require('../common'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Payload functional validation tests for V1 manual send", function() { diff --git a/tests/specs/v1/payloadUnhandledErrorTests.js b/tests/specs/v1/payloadUnhandledErrorTests.js index 35f5855a..f3d3e933 100644 --- a/tests/specs/v1/payloadUnhandledErrorTests.js +++ b/tests/specs/v1/payloadUnhandledErrorTests.js @@ -1,7 +1,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Payload functional validation tests for V1 automatic unhandled error sending", function() { diff --git a/tests/specs/v2/eventsXhr.js b/tests/specs/v2/eventsXhr.js index bbc98d46..3a0f57de 100644 --- a/tests/specs/v2/eventsXhr.js +++ b/tests/specs/v2/eventsXhr.js @@ -1,7 +1,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); -var _eventsEndpoint = 'https://api.raygun.io/events'; +var _eventsEndpoint = 'https://api.raygun.com/events'; describe("XHR functional tests for /events with V2", function() { diff --git a/tests/specs/v2/onBeforeSendRUM.js b/tests/specs/v2/onBeforeSendRUM.js index af9ac75c..cd0a63cf 100644 --- a/tests/specs/v2/onBeforeSendRUM.js +++ b/tests/specs/v2/onBeforeSendRUM.js @@ -1,7 +1,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); -var _eventsEndpoint = 'https://api.raygun.io/events'; +var _eventsEndpoint = 'https://api.raygun.com/events'; describe('onBeforeSendRUM callback', function() { it('lets you modify the payload before sending', async function() { diff --git a/tests/specs/v2/payloadManualSendTests.js b/tests/specs/v2/payloadManualSendTests.js index 60d068e2..26b9887c 100644 --- a/tests/specs/v2/payloadManualSendTests.js +++ b/tests/specs/v2/payloadManualSendTests.js @@ -3,7 +3,7 @@ var _ = require('underscore'); var common = require('../common'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Payload functional validation tests for V2 manual send", function() { diff --git a/tests/specs/v2/payloadSyntaxError.js b/tests/specs/v2/payloadSyntaxError.js index 5cc9e038..fb6048b9 100644 --- a/tests/specs/v2/payloadSyntaxError.js +++ b/tests/specs/v2/payloadSyntaxError.js @@ -1,7 +1,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Payload functional validation tests for V2 syntax error caught with the Snippet", function() { diff --git a/tests/specs/v2/payloadUnhandledErrorTests.js b/tests/specs/v2/payloadUnhandledErrorTests.js index 5864b298..5b21359c 100644 --- a/tests/specs/v2/payloadUnhandledErrorTests.js +++ b/tests/specs/v2/payloadUnhandledErrorTests.js @@ -2,7 +2,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); var common = require('../common'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Payload functional validation tests for v2 automatic unhandled error sending", function() { diff --git a/tests/specs/v2/rg4jsLoaderTests.js b/tests/specs/v2/rg4jsLoaderTests.js index 62600a72..9949c3fb 100644 --- a/tests/specs/v2/rg4jsLoaderTests.js +++ b/tests/specs/v2/rg4jsLoaderTests.js @@ -1,7 +1,7 @@ var webdriverio = require('webdriverio'); var _ = require('underscore'); -var _entriesEndpoint = 'https://api.raygun.io/entries'; +var _entriesEndpoint = 'https://api.raygun.com/entries'; describe("Functional tests for rg4js() calls to ensure they are executed by the loader", function() {