Skip to content

Commit c0d8808

Browse files
authored
Merge pull request #38 from MindscapeHQ/js/update-raygun4php-dependency
Update Raygun4PHP dependency
2 parents 28cbfcb + 35dcad5 commit c0d8808

File tree

11 files changed

+40
-19
lines changed

11 files changed

+40
-19
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ As of 2.0.0, errors that fail to send to Raygun will be logged to the standard W
6767

6868
Changelog
6969
---------
70+
- 2.0.1: Bump Raygun4PHP dependency to v2.3.1 to improve support for PHP version 8.2
7071
- 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
7172
- 1.9.3: Updated User Tracking to Customers.
7273
- 1.9.2: Update Pulse to Real User Monitoring (RUM)

raygun4wp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: Raygun
44
Plugin URI: http://github.com/mindscapehq/raygun4wordpress
55
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.
6-
Version: 2.0.0.0
6+
Version: 2.0.1.0
77
Requires at least: 5.3
88
Requires PHP: 7.4
99
Author: Raygun

readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mindscapehq
33
Tags: crash reporting, error monitoring, user experience monitoring, core web vitals, raygun, error reporting, error tracking, bug tracking, real user monitoring, exception, JavaScript, PHP
44
Requires at least: 5.3
55
Tested up to: 6.1.1
6-
Stable tag: 2.0.0.0
6+
Stable tag: 2.0.1.0
77
Requires PHP: 7.4
88
License: MIT
99
License URI: http://opensource.org/licenses/MIT
@@ -74,6 +74,9 @@ Finally, if you so desire, you should be able to visit the root network site, ac
7474

7575
== Changelog ==
7676

77+
= 2.0.1.0 =
78+
* Bump Raygun4PHP dependency to v2.3.1 to improve support for PHP version 8.2
79+
7780
= 2.0.0.0 =
7881
* Switch to Composer for dependency management
7982
* Bump Raygun4PHP dependency to v2.3.0

vendor/composer/autoload_psr4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
'Raygun4php\\Tests\\' => array($vendorDir . '/mindscape/raygun4php/tests'),
1111
'Raygun4php\\' => array($vendorDir . '/mindscape/raygun4php/src/Raygun4php'),
1212
'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'),
13-
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src', $vendorDir . '/psr/http-factory/src'),
13+
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
1414
'Psr\\Http\\Client\\' => array($vendorDir . '/psr/http-client/src'),
1515
'Monolog\\' => array($vendorDir . '/monolog/monolog/src/Monolog'),
1616
'GuzzleHttp\\Psr7\\' => array($vendorDir . '/guzzlehttp/psr7/src'),

vendor/composer/autoload_static.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class ComposerStaticInit33571e35834a0e12729a0f8e938f5a42
5757
),
5858
'Psr\\Http\\Message\\' =>
5959
array (
60-
0 => __DIR__ . '/..' . '/psr/http-message/src',
61-
1 => __DIR__ . '/..' . '/psr/http-factory/src',
60+
0 => __DIR__ . '/..' . '/psr/http-factory/src',
61+
1 => __DIR__ . '/..' . '/psr/http-message/src',
6262
),
6363
'Psr\\Http\\Client\\' =>
6464
array (

vendor/composer/installed.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -342,17 +342,17 @@
342342
},
343343
{
344344
"name": "mindscape/raygun4php",
345-
"version": "v2.3.0",
346-
"version_normalized": "2.3.0.0",
345+
"version": "v2.3.1",
346+
"version_normalized": "2.3.1.0",
347347
"source": {
348348
"type": "git",
349349
"url": "https://github.com/MindscapeHQ/raygun4php.git",
350-
"reference": "a479ce6be7f31f224893055884afc7b8153191fd"
350+
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0"
351351
},
352352
"dist": {
353353
"type": "zip",
354-
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/a479ce6be7f31f224893055884afc7b8153191fd",
355-
"reference": "a479ce6be7f31f224893055884afc7b8153191fd",
354+
"url": "https://api.github.com/repos/MindscapeHQ/raygun4php/zipball/f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
355+
"reference": "f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0",
356356
"shasum": ""
357357
},
358358
"require": {
@@ -369,7 +369,7 @@
369369
"suggest": {
370370
"ext-curl": "*"
371371
},
372-
"time": "2022-09-07T04:14:24+00:00",
372+
"time": "2023-02-22T02:17:58+00:00",
373373
"type": "library",
374374
"extra": {
375375
"branch-alias": {
@@ -404,7 +404,7 @@
404404
],
405405
"support": {
406406
"issues": "https://github.com/MindscapeHQ/raygun4php/issues",
407-
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.0"
407+
"source": "https://github.com/MindscapeHQ/raygun4php/tree/v2.3.1"
408408
},
409409
"install-path": "../mindscape/raygun4php"
410410
},

vendor/composer/installed.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => 'raygun/raygun4wordpress',
44
'pretty_version' => 'dev-master',
55
'version' => 'dev-master',
6-
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
6+
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
77
'type' => 'wordpress-plugin',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -38,9 +38,9 @@
3838
'dev_requirement' => false,
3939
),
4040
'mindscape/raygun4php' => array(
41-
'pretty_version' => 'v2.3.0',
42-
'version' => '2.3.0.0',
43-
'reference' => 'a479ce6be7f31f224893055884afc7b8153191fd',
41+
'pretty_version' => 'v2.3.1',
42+
'version' => '2.3.1.0',
43+
'reference' => 'f2943cc244ddf7bbf6b3a291ee4ae033ab1e1bf0',
4444
'type' => 'library',
4545
'install_path' => __DIR__ . '/../mindscape/raygun4php',
4646
'aliases' => array(),
@@ -127,7 +127,7 @@
127127
'raygun/raygun4wordpress' => array(
128128
'pretty_version' => 'dev-master',
129129
'version' => 'dev-master',
130-
'reference' => '37a73c1bcc2b368c2392a87323780ad1c9266967',
130+
'reference' => '28cbfcbef7909c16f5a3e2a4e2f954fd4ecfce9c',
131131
'type' => 'wordpress-plugin',
132132
'install_path' => __DIR__ . '/../../',
133133
'aliases' => array(),

vendor/mindscape/raygun4php/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ function ($errno, $errstr, $errfile, $errline) use ($raygunClient) {
342342
See the [Error Control Operators section on PHP.net](http://php.net/manual/en/language.operators.errorcontrol.php) for more information.
343343

344344
## Changelog
345+
- 2.3.1: Use iconv to convert from ISO-8859-1 instead of utf8_encode
346+
- 2.3.0: Support newer versions of psr/log
345347
- 2.2.1: SetUser method now supports numeric data types for 'user' parameter
346348
- 2.2.0: Capture the file and line number where the exception itself is thrown
347349
- 2.1.1: Fix namespace in Uuid library to prevent composer errors with mixed case package names

vendor/mindscape/raygun4php/src/Raygun4php/RaygunClientMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class RaygunClientMessage
1111
public function __construct()
1212
{
1313
$this->Name = "Raygun4php";
14-
$this->Version = "2.2.1";
14+
$this->Version = "2.3.1";
1515
$this->ClientUrl = "https://github.com/MindscapeHQ/raygun4php";
1616
}
1717
}

vendor/mindscape/raygun4php/src/Raygun4php/RaygunRequestMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct()
4242
$utf8_convert_server = function ($value) use (&$utf8_convert_server) {
4343
return is_array($value) ?
4444
array_map($utf8_convert_server, $value) :
45-
iconv('UTF-8', 'UTF-8', utf8_encode($value));
45+
iconv('ISO-8859-1', 'UTF-8', $value);
4646
};
4747

4848
$this->Form = array_map($utf8_convert, $_POST);

vendor/mindscape/raygun4php/tests/RaygunClientTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,19 @@ public function testValidateMessageJsonInTransportObj()
277277
$schemaValidator->validate($data, $this->jsonSchema);
278278
$this->assertTrue($schemaValidator->isValid());
279279
}
280+
281+
/**
282+
* @backupGlobals enabled
283+
*/
284+
public function testServerUtf8Conversion()
285+
{
286+
$_SERVER = [
287+
'a' => 'hello',
288+
'b' => "\xc0\xde",
289+
];
290+
$requestMessage = new RaygunRequestMessage();
291+
292+
$this->assertSame('hello', $requestMessage->Data['a']);
293+
$this->assertSame('ÀÞ', $requestMessage->Data['b']);
294+
}
280295
}

0 commit comments

Comments
 (0)