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 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 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. diff --git a/eslint.config.mjs b/eslint.config.mjs index 6be2841..2043070 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -29,9 +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-unreachable": "off", - "no-useless-catch": "off", } } ); \ No newline at end of file diff --git a/package.json b/package.json index 9463271..7445370 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", + "description": "Raygun package for Node.js, written in TypeScript", + "version": "0.14.0", "homepage": "https://github.com/MindscapeHQ/raygun4node", "author": { "name": "MindscapeHQ", @@ -68,5 +68,14 @@ "stack-trace": "0.0.10", "uuid": "^9.0.1" }, - "keywords": [] + "keywords": [ + "APM", + "crash", + "debug", + "error", + "logging", + "raygun", + "reporting", + "tracking" + ] } diff --git a/test/raygun_express_test.js b/test/raygun_express_test.js index e53f700..38a9e3a 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); @@ -43,8 +42,6 @@ test("batch reporting errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); } @@ -69,8 +66,6 @@ test("batch transport discards massive errors", async function (t) { try { await nextBatchRequest({ maxWait: 2000 }); - } catch (e) { - throw e; } finally { stop(); } @@ -102,7 +97,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) {