From 72264dabbfff85a5c61a72d847883c107e102d0c Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 1 May 2024 07:52:37 +0200 Subject: [PATCH 01/10] refactor: #158 configure no-unreachable eslint rule --- eslint.config.mjs | 1 - test/raygun_express_test.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 6be2841..2def443 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -30,7 +30,6 @@ export default tseslint.config( // Required to import JS modules "@typescript-eslint/no-var-requires": "off", // TODO: Remove ignored rules and fix the code - "no-unreachable": "off", "no-useless-catch": "off", } } diff --git a/test/raygun_express_test.js b/test/raygun_express_test.js index e53f700..147382b 100644 --- a/test/raygun_express_test.js +++ b/test/raygun_express_test.js @@ -12,7 +12,6 @@ test("reporting express errors", async function (t) { app.get("/", (req, res) => { throw new Error("surprise error!"); - res.send("response!"); }); app.use(raygunClient.expressHandler); @@ -102,7 +101,6 @@ test("exceptions are propagated by middleware", async function (t) { app.get("/", (req, res) => { throw new Error("surprise error!"); - res.send("response!"); }); function testErrorHandler(err, req, res, next) { From 9869c36d23d3ba438214330b30443e9175501701 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 1 May 2024 07:58:41 +0200 Subject: [PATCH 02/10] refactor: #158 remove no-useless-catch eslint rule --- eslint.config.mjs | 2 -- test/raygun_express_test.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/eslint.config.mjs b/eslint.config.mjs index 2def443..2043070 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -29,8 +29,6 @@ export default tseslint.config( ], // Required to import JS modules "@typescript-eslint/no-var-requires": "off", - // TODO: Remove ignored rules and fix the code - "no-useless-catch": "off", } } ); \ No newline at end of file diff --git a/test/raygun_express_test.js b/test/raygun_express_test.js index 147382b..38a9e3a 100644 --- a/test/raygun_express_test.js +++ b/test/raygun_express_test.js @@ -42,8 +42,6 @@ test("batch reporting errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); } @@ -68,8 +66,6 @@ test("batch transport discards massive errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); } From 265a0e574b1c242e9f609328d01071ee152c7f1b Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 1 May 2024 08:42:18 +0200 Subject: [PATCH 03/10] set version 0.14.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9463271..9f8a2cc 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "raygun", "description": "Raygun.io package for Node, written in TypeScript", - "version": "0.13.2", + "version": "0.14.0", "homepage": "https://github.com/MindscapeHQ/raygun4node", "author": { "name": "MindscapeHQ", From 71a3a8e60be0be664f4923baaf4dcd04db30ec57 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Wed, 1 May 2024 08:54:54 +0200 Subject: [PATCH 04/10] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a42fee..be83f3c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.14.0 +- Upgrade dependencies +- Support for Node v20 + ## 0.13.2 - Fix batch transport keeping process alive - Fix batch transport stalling on huge errors From b6023b41cfea71fe3161e9e5e836a50d3a2f0693 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 07:37:27 +0200 Subject: [PATCH 05/10] Update package.json Co-authored-by: Sumitra Manga <36393794+sumitramanga@users.noreply.github.com> --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9f8a2cc..bd6f98f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "raygun", - "description": "Raygun.io package for Node, written in TypeScript", + "description": "Raygun package for Node.js, written in TypeScript", "version": "0.14.0", "homepage": "https://github.com/MindscapeHQ/raygun4node", "author": { From bbc8121fc078d8a0666bf4e1949a0d3ba51fa10d Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 07:45:17 +0200 Subject: [PATCH 06/10] add Error reporting to keywords --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bd6f98f..e47b75d 100644 --- a/package.json +++ b/package.json @@ -68,5 +68,8 @@ "stack-trace": "0.0.10", "uuid": "^9.0.1" }, - "keywords": [] + "keywords": [ + "error", + "reporting" + ] } From 309e5af79db230396646aa6c3b8547529df5f29d Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 07:46:48 +0200 Subject: [PATCH 07/10] update license copyright year --- LICENSE-MIT | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE-MIT b/LICENSE-MIT index cddede7..9b8e82c 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright (c) 2016 Raygun Limited +Copyright (c) 2024 Raygun Limited Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation From ec8b6fde4f5c9a9fef79e291c27826fc6b98f976 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 07:48:13 +0200 Subject: [PATCH 08/10] updated URL --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 178d01f..8be77b0 100644 --- a/README.md +++ b/README.md @@ -438,7 +438,7 @@ curl All requests use the same authentication methods as the upload call (Basic Authentication and Token Authentication). ### Examples -View a screencast on creating an app with Node.js and Express.js, then hooking up the error handling and sending them at [http://raygun.io/blog/2013/07/video-nodejs-error-handling-with-raygun/](http://raygun.io/blog/2013/07/video-nodejs-error-handling-with-raygun/) +View a screencast on creating an app with Node.js and Express.js, then hooking up the error handling and sending them at [https://raygun.com/blog/2013/07/video-nodejs-error-handling-with-raygun/](https://raygun.com/blog/2013/07/video-nodejs-error-handling-with-raygun/) ### Debug Logging You can enable logging of debug information from the Raygun client by setting the environment variable `DEBUG=raygun`. The client will then log information about transporting and storing errors, including timing information. From c3a727367b1b25e45ea43171c229d8774550bd3c Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 08:22:07 +0200 Subject: [PATCH 09/10] added more keywords --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index e47b75d..55156c3 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,11 @@ "uuid": "^9.0.1" }, "keywords": [ + "APM", + "crash", "error", - "reporting" + "raygun", + "reporting", + "tracking" ] } From 964960b526b14454280ca15ad71ba3a24517aad5 Mon Sep 17 00:00:00 2001 From: Miguel Beltran Date: Thu, 2 May 2024 08:26:49 +0200 Subject: [PATCH 10/10] moar keywords --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 55156c3..7445370 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,9 @@ "keywords": [ "APM", "crash", + "debug", "error", + "logging", "raygun", "reporting", "tracking"