Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: unjs/h3
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.8.0-rc.2
Choose a base ref
...
head repository: unjs/h3
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.8.0-rc.3
Choose a head ref
  • 13 commits
  • 46 files changed
  • 5 contributors

Commits on Aug 2, 2023

  1. Copy the full SHA
    0434358 View commit details
  2. chore: update dependencies

    pi0 committed Aug 2, 2023
    Copy the full SHA
    21a2c6c View commit details
  3. chore: update playground

    pi0 committed Aug 2, 2023
    Copy the full SHA
    7cb2de6 View commit details
  4. style: format with prettier v3

    pi0 committed Aug 2, 2023
    Copy the full SHA
    da225b9 View commit details
  5. chore: update listhen

    pi0 committed Aug 2, 2023
    Copy the full SHA
    7fc1d8b View commit details

Commits on Aug 7, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    5f8b322 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b3427f5 View commit details
  3. feat: object-syntax event handlers (#485)

    Co-authored-by: Pooya Parsa <pooya@pi0.io>
    danielroe and pi0 authored Aug 7, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7e95702 View commit details
  4. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6c14ff9 View commit details
  5. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3b64c18 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f3394ee View commit details
  7. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b96aa69 View commit details
  8. chore(release): v1.8.0-rc.3

    pi0 committed Aug 7, 2023
    Copy the full SHA
    67055fb View commit details
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ignore-workspace-root-check=true
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,44 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## v1.8.0-rc.3

[compare changes](https://github.com/unjs/h3/compare/v1.8.0-rc.2...v1.8.0-rc.3)

### 🚀 Enhancements

- Object-syntax event handlers ([#485](https://github.com/unjs/h3/pull/485))
- **event:** Add default stringify with method and url for better dx ([#493](https://github.com/unjs/h3/pull/493))
- Support react pipeable streams ([#494](https://github.com/unjs/h3/pull/494))

### 🩹 Fixes

- **app:** Use response.body instead of initial returned val ([0434358](https://github.com/unjs/h3/commit/0434358))
- Make request and response types explicit ([#489](https://github.com/unjs/h3/pull/489))
- **web:** Use `null` for null body responses ([#495](https://github.com/unjs/h3/pull/495))

### 📖 Documentation

- Fix `deleteCookie` description ([#487](https://github.com/unjs/h3/pull/487))

### 🏡 Chore

- Update dependencies ([21a2c6c](https://github.com/unjs/h3/commit/21a2c6c))
- Update playground ([7cb2de6](https://github.com/unjs/h3/commit/7cb2de6))
- Update listhen ([7fc1d8b](https://github.com/unjs/h3/commit/7fc1d8b))
- Add valibot to community packages ([#491](https://github.com/unjs/h3/pull/491))

### 🎨 Styles

- Format with prettier v3 ([da225b9](https://github.com/unjs/h3/commit/da225b9))

### ❤️ Contributors

- Pooya Parsa ([@pi0](http://github.com/pi0))
- Daniel Roe <daniel@roe.dev>
- Michel EDIGHOFFER <edimitchel@gmail.com>
- Conner ([@Intevel](http://github.com/Intevel))

## v1.8.0-rc.2

[compare changes](https://github.com/unjs/h3/compare/v1.8.0-rc.1...v1.8.0-rc.2)
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -308,7 +308,10 @@ PRs are welcome to add your packages.
- [h3-zod](https://github.com/wobsoriano/h3-zod)
- `useValidatedBody(event, schema)`
- `useValidatedQuery(event, schema)`

- [h3-valibot](https://github.com/intevel/h3-valibot)
- `useValidateBody(event, schema)`
- `useValidateParams(event, schema)`

## License

MIT
24 changes: 13 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "h3",
"version": "1.8.0-rc.2",
"version": "1.8.0-rc.3",
"description": "Tiny JavaScript Server",
"repository": "unjs/h3",
"license": "MIT",
@@ -24,7 +24,7 @@
"dev": "vitest",
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test playground",
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test playground -w",
"play": "listhen ./playground/app.ts",
"play": "listhen -w ./playground/app.ts",
"profile": "0x -o -D .profile -P 'autocannon -c 100 -p 10 -d 40 http://localhost:$PORT' ./playground/server.cjs",
"release": "pnpm test && pnpm build && changelogen --release && pnpm publish && git push --follow-tags",
"release-rc": "pnpm test && pnpm build && changelogen --release --prerelease rc --push --publish --publishTag rc",
@@ -34,34 +34,36 @@
"dependencies": {
"cookie-es": "^1.0.0",
"defu": "^6.1.2",
"destr": "^2.0.0",
"destr": "^2.0.1",
"iron-webcrypto": "^0.8.0",
"radix3": "^1.0.1",
"ufo": "^1.1.2",
"ufo": "^1.2.0",
"uncrypto": "^0.1.3",
"unenv": "^1.6.1"
},
"devDependencies": {
"0x": "^5.5.0",
"0x": "^5.6.0",
"@types/express": "^4.17.17",
"@types/node": "^20.4.2",
"@types/node": "^20.4.6",
"@types/supertest": "^2.0.12",
"@vitest/coverage-v8": "^0.33.0",
"@vitest/coverage-v8": "^0.34.1",
"autocannon": "^7.11.0",
"changelogen": "^0.5.4",
"connect": "^3.7.0",
"eslint": "^8.45.0",
"eslint": "^8.46.0",
"eslint-config-unjs": "^0.2.1",
"express": "^4.18.2",
"get-port": "^7.0.0",
"jiti": "^1.19.1",
"listhen": "^1.1.2",
"listhen": "^1.2.2",
"node-fetch-native": "^1.2.0",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"supertest": "^6.3.3",
"typescript": "^5.1.6",
"unbuild": "^1.2.1",
"vitest": "^0.33.0",
"vitest": "^0.34.1",
"zod": "^3.21.4"
},
"packageManager": "pnpm@8.6.9"
15 changes: 8 additions & 7 deletions playground/app.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { createApp, defineEventHandler, toNodeListener } from "h3";
import { createApp, createRouter, eventHandler } from "h3";

const app = createApp({ debug: true });
export const app = createApp();

app.use(
const router = createRouter();
app.use(router);

router.get(
"/",
defineEventHandler((event) => {
eventHandler((event) => {
return { path: event.path, message: "Hello World!" };
})
}),
);

export default toNodeListener(app);
4 changes: 2 additions & 2 deletions playground/package.json
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@
"dev": "listhen -w ./app.ts"
},
"dependencies": {
"h3": "^1.7.1",
"listhen": "^1.1.2"
"h3": "^1.8.0-rc.2",
"listhen": "^1.2.2"
}
}
Loading