diff --git a/README.md b/README.md index 58519ef8..56ca52f6 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,20 @@ # Sentry middleware for Hono +## Information + +Sentry Middleware `@honojs/sentry` is renamed to `@hono/sentry`. +`@honojs/sentry` is not maintained, please use `@hono/sentry`. +Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/sentry`. + +--- + Sentry middleware for [Hono](https://github.com/honojs/hono). This middleware sends captured exceptions to the specified Sentry data source name via [toucan-js](https://github.com/robertcepa/toucan-js). ## Usage ```ts -import { sentry } from '@honojs/sentry' +import { sentry } from '@hono/sentry' import { Hono } from 'hono' const app = new Hono() @@ -21,7 +29,7 @@ export default app ```ts import { serve } from 'https://deno.land/std/http/server.ts' -import { sentry } from 'https://deno.land/x/hono_sentry/mod.ts' +import { sentry } from 'npm:@hono/sentry' import { Hono } from 'https://deno.land/x/hono/mod.ts' const app = new Hono() diff --git a/deno_dist/README.md b/deno_dist/README.md index 58519ef8..56ca52f6 100644 --- a/deno_dist/README.md +++ b/deno_dist/README.md @@ -1,12 +1,20 @@ # Sentry middleware for Hono +## Information + +Sentry Middleware `@honojs/sentry` is renamed to `@hono/sentry`. +`@honojs/sentry` is not maintained, please use `@hono/sentry`. +Also, for Deno, you can use import with `npm:` prefix like `npm:@hono/sentry`. + +--- + Sentry middleware for [Hono](https://github.com/honojs/hono). This middleware sends captured exceptions to the specified Sentry data source name via [toucan-js](https://github.com/robertcepa/toucan-js). ## Usage ```ts -import { sentry } from '@honojs/sentry' +import { sentry } from '@hono/sentry' import { Hono } from 'hono' const app = new Hono() @@ -21,7 +29,7 @@ export default app ```ts import { serve } from 'https://deno.land/std/http/server.ts' -import { sentry } from 'https://deno.land/x/hono_sentry/mod.ts' +import { sentry } from 'npm:@hono/sentry' import { Hono } from 'https://deno.land/x/hono/mod.ts' const app = new Hono() diff --git a/package.json b/package.json index 82a2daa2..b133c639 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,9 @@ "private": false, "repository": { "type": "git", - "url": "https://github.com/honojs/sentry.git" + "url": "https://github.com/honojs/middleware.git" }, - "homepage": "https://github.com/honojs/sentry", + "homepage": "https://github.com/honojs/middleware", "author": "Samuel Lippert (https://github.com/sam-lippert)", "publishConfig": { "registry": "https://registry.npmjs.org", @@ -61,4 +61,4 @@ "ts-jest": "^28.0.5", "typescript": "^4.7.4" } -} +} \ No newline at end of file