Skip to content

Commit

Permalink
chore: no longer release under namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed Jul 25, 2024
1 parent 8b3ef3e commit fa4a76b
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @namesmt/hono-adapter-aws-lambda ![TypeScript heart icon](https://img.shields.io/badge/♡-%23007ACC.svg?logo=typescript&logoColor=white)
# hono-adapter-aws-lambda ![TypeScript heart icon](https://img.shields.io/badge/♡-%23007ACC.svg?logo=typescript&logoColor=white)

[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![Codecov][codecov-src]][codecov-href]
[![Bundlejs][bundlejs-src]][bundlejs-href]
[![jsDocs.io][jsDocs-src]][jsDocs-href]

**@namesmt/hono-adapter-aws-lambda** is a fork of [hono](https://hono.dev/)'s `aws-lambda` adapter, experimenting and adding some extra features
**hono-adapter-aws-lambda** is a fork of [hono](https://hono.dev/)'s `aws-lambda` adapter, experimenting and adding some extra features

## Features & Roadmap
- [x] add router support for trigger events.
Expand All @@ -20,20 +20,20 @@
### Install package:
```sh
# pnpm (recommended)
pnpm install @namesmt/hono-adapter-aws-lambda
pnpm install hono-adapter-aws-lambda
```

### Import:
```ts
// ESM
import { handle, streamHandle } from '@namesmt/hono-adapter-aws-lambda'
import { handle, streamHandle } from 'hono-adapter-aws-lambda'
```

### Examples:
Fast example of accepting an S3 trigger event
```ts
import type { S3Event } from 'aws-lambda' // You need to install `@types/aws-lambda`
import { createTriggerFactory, handle, streamHandle } from '@namesmt/hono-adapter-aws-lambda'
import { createTriggerFactory, handle, streamHandle } from 'hono-adapter-aws-lambda'

interface Bindings {
event: { Records: Array<{ eventName: string }> }
Expand All @@ -51,15 +51,15 @@ See some more examples in the test file: [test/index.test.ts](test/index.test.ts

<!-- Badges -->

[npm-version-src]: https://img.shields.io/npm/v/@namesmt/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[npm-version-href]: https://npmjs.com/package/@namesmt/hono-adapter-aws-lambda
[npm-downloads-src]: https://img.shields.io/npm/dm/@namesmt/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[npm-downloads-href]: https://npmjs.com/package/@namesmt/hono-adapter-aws-lambda
[npm-version-src]: https://img.shields.io/npm/v/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[npm-version-href]: https://npmjs.com/package/hono-adapter-aws-lambda
[npm-downloads-src]: https://img.shields.io/npm/dm/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[npm-downloads-href]: https://npmjs.com/package/hono-adapter-aws-lambda
[codecov-src]: https://img.shields.io/codecov/c/gh/namesmt/hono-adapter-aws-lambda/main?labelColor=18181B&color=F0DB4F
[codecov-href]: https://codecov.io/gh/namesmt/hono-adapter-aws-lambda
[license-src]: https://img.shields.io/github/license/namesmt/hono-adapter-aws-lambda.svg?labelColor=18181B&color=F0DB4F
[license-href]: https://github.com/namesmt/hono-adapter-aws-lambda/blob/main/LICENSE
[bundlejs-src]: https://img.shields.io/bundlejs/size/@namesmt/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[bundlejs-href]: https://bundlejs.com/?q=@namesmt/hono-adapter-aws-lambda
[bundlejs-src]: https://img.shields.io/bundlejs/size/hono-adapter-aws-lambda?labelColor=18181B&color=F0DB4F
[bundlejs-href]: https://bundlejs.com/?q=hono-adapter-aws-lambda
[jsDocs-src]: https://img.shields.io/badge/Check_out-jsDocs.io---?labelColor=18181B&color=F0DB4F
[jsDocs-href]: https://www.jsdocs.io/package/@namesmt/hono-adapter-aws-lambda
[jsDocs-href]: https://www.jsdocs.io/package/hono-adapter-aws-lambda
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@namesmt/hono-adapter-aws-lambda",
"name": "hono-adapter-aws-lambda",
"type": "module",
"version": "0.2.6",
"packageManager": "pnpm@9.5.0",
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "nodemon -w '../src/**/*.ts' -w 'main.ts' -e .ts -x vite"
},
"devDependencies": {
"@namesmt/hono-adapter-aws-lambda": "workspace:^",
"hono-adapter-aws-lambda": "workspace:^",
"nodemon": "^3.1.4",
"vite": "^5.3.4",
"vite-plugin-inspect": "^0.8.5"
Expand Down
2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { defineConfig } from 'vite'
import Inspect from 'vite-plugin-inspect'
import * as rootPackage from '@namesmt/hono-adapter-aws-lambda'
import * as rootPackage from 'hono-adapter-aws-lambda'

// eslint-disable-next-line no-console
console.log({ rootPackage: JSON.stringify(rootPackage) })
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fa4a76b

Please sign in to comment.