Skip to content

Commit

Permalink
Merge pull request #38 from MindscapeHQ/js/update-raygun4php-dependency
Browse files Browse the repository at this point in the history
Update Raygun4PHP dependency
  • Loading branch information
redJ4y authored Feb 23, 2023
2 parents 28cbfcb + 35dcad5 commit c0d8808
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 19 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ As of 2.0.0, errors that fail to send to Raygun will be logged to the standard W

Changelog
---------
- 2.0.1: Bump Raygun4PHP dependency to v2.3.1 to improve support for PHP version 8.2
- 2.0.0: Switch to Composer for dependency management; Bump Raygun4PHP dependency to v2.3.0; Use new async sending guzzle (adds support for async on Windows); Switch Raygun4JS dependency to grab latest CDN distribution; Add error type tagging; Log errors that fail to send to Raygun; Add setting to disable tracking on admin pages; Rename Mindscape namespace to Raygun (src); Improve RaygunClientManager such that setting changes take effect immediately; Correct relationship between error handler and shutdown handler; Miscellaneous bug fixes, code improvements, UI and documentation updates
- 1.9.3: Updated User Tracking to Customers.
- 1.9.2: Update Pulse to Real User Monitoring (RUM)
Expand Down
2 changes: 1 addition & 1 deletion raygun4wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Raygun
Plugin URI: http://github.com/mindscapehq/raygun4wordpress
Description: Exceptional error, performance, user tracking and more with Raygun.com. This service integrates Raygun Crash Reporting which lets you monitor your site's health with beautiful graphs and comprehensive reports, so you are always aware of any points of failure. With Raygun's Real User Monitoring you can monitor the performance of every individual user session, so you can discover and fix fundamental bottlenecks that affect your end user experience. This plugin has a simple one-minute, no-code-required installation.
Version: 2.0.0.0
Version: 2.0.1.0
Requires at least: 5.3
Requires PHP: 7.4
Author: Raygun
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: mindscapehq
Tags: crash reporting, error monitoring, user experience monitoring, core web vitals, raygun, error reporting, error tracking, bug tracking, real user monitoring, exception, JavaScript, PHP
Requires at least: 5.3
Tested up to: 6.1.1
Stable tag: 2.0.0.0
Stable tag: 2.0.1.0
Requires PHP: 7.4
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -74,6 +74,9 @@ Finally, if you so desire, you should be able to visit the root network site, ac

== Changelog ==

= 2.0.1.0 =
* Bump Raygun4PHP dependency to v2.3.1 to improve support for PHP version 8.2

= 2.0.0.0 =
* Switch to Composer for dependency management
* Bump Raygun4PHP dependency to v2.3.0
Expand Down
2 changes: 1 addition & 1 deletion vendor/composer/autoload_psr4.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'Raygun4php\\Tests\\' => array($vendorDir . '/mindscape/raygun4php/tests'),
'Raygun4php\\' => array($vendorDir . '/mindscape/raygun4php/src/Raygun4php'),
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),
Expand Down
4 changes: 2 additions & 2 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ class ComposerStaticInit33571e35834a0e12729a0f8e938f5a42
),
'Psr\\Http\\Message\\' =>
array (
0 => __DIR__ . '/..' . '/psr/http-message/src',
1 => __DIR__ . '/..' . '/psr/http-factory/src',
0 => __DIR__ . '/..' . '/psr/http-factory/src',
1 => __DIR__ . '/..' . '/psr/http-message/src',
),
'Psr\\Http\\Client\\' =>
array (
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,17 @@
},
{
"name": "mindscape/raygun4php",
"version": "v2.3.0",
"version_normalized": "2.3.0.0",
"version": "v2.3.1",
"version_normalized": "2.3.1.0",
"source": {
"type": "git",
"url": "https://github.com/MindscapeHQ/raygun4php.git",
"reference": "a479ce6be7f31f224893055884afc7b8153191fd"
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/a479ce6be7f31f224893055884afc7b8153191fd",
"reference": "a479ce6be7f31f224893055884afc7b8153191fd",
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
"shasum": ""
},
"require": {
Expand All @@ -369,7 +369,7 @@
"suggest": {
"ext-curl": "*"
},
"time": "2022-09-07T04:14:24+00:00",
"time": "2023-02-22T02:17:58+00:00",
"type": "library",
"extra": {
"branch-alias": {
Expand Down Expand Up @@ -404,7 +404,7 @@
],
"support": {
"issues": "https://github.com/MindscapeHQ/raygun4php/issues",
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.0"
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.1"
},
"install-path": "../mindscape/raygun4php"
},
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => 'raygun/raygun4wordpress',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down Expand Up @@ -38,9 +38,9 @@
'dev_requirement' => false,
),
'mindscape/raygun4php' => array(
'pretty_version' => 'v2.3.0',
'version' => '2.3.0.0',
'reference' => 'a479ce6be7f31f224893055884afc7b8153191fd',
'pretty_version' => 'v2.3.1',
'version' => '2.3.1.0',
'reference' => 'f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0',
'type' => 'library',
'install_path' => __DIR__ . '/../mindscape/raygun4php',
'aliases' => array(),
Expand Down Expand Up @@ -127,7 +127,7 @@
'raygun/raygun4wordpress' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
'type' => 'wordpress-plugin',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand Down
2 changes: 2 additions & 0 deletions vendor/mindscape/raygun4php/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ function ($errno, $errstr, $errfile, $errline) use ($raygunClient) {
See the [Error Control Operators section on PHP.net](http://php.net/manual/en/language.operators.errorcontrol.php) for more information.

## Changelog
- 2.3.1: Use iconv to convert from ISO-8859-1 instead of utf8_encode
- 2.3.0: Support newer versions of psr/log
- 2.2.1: SetUser method now supports numeric data types for 'user' parameter
- 2.2.0: Capture the file and line number where the exception itself is thrown
- 2.1.1: Fix namespace in Uuid library to prevent composer errors with mixed case package names
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class RaygunClientMessage
public function __construct()
{
$this->Name = "Raygun4php";
$this->Version = "2.2.1";
$this->Version = "2.3.1";
$this->ClientUrl = "https://github.com/MindscapeHQ/raygun4php";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct()
$utf8_convert_server = function ($value) use (&$utf8_convert_server) {
return is_array($value) ?
array_map($utf8_convert_server, $value) :
iconv('UTF-8', 'UTF-8', utf8_encode($value));
iconv('ISO-8859-1', 'UTF-8', $value);
};

$this->Form = array_map($utf8_convert, $_POST);
Expand Down
15 changes: 15 additions & 0 deletions vendor/mindscape/raygun4php/tests/RaygunClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,19 @@ public function testValidateMessageJsonInTransportObj()
$schemaValidator->validate($data, $this->jsonSchema);
$this->assertTrue($schemaValidator->isValid());
}

/**
* @backupGlobals enabled
*/
public function testServerUtf8Conversion()
{
$_SERVER = [
'a' => 'hello',
'b' => "\xc0\xde",
];
$requestMessage = new RaygunRequestMessage();

$this->assertSame('hello', $requestMessage->Data['a']);
$this->assertSame('ÀÞ', $requestMessage->Data['b']);
}
}

0 comments on commit c0d8808

Please sign in to comment.