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: v0.7.15
Choose a base ref
...
head repository: unjs/h3
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.7.16
Choose a head ref
  • 6 commits
  • 5 files changed
  • 4 contributors

Commits on Aug 23, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    dff2211 View commit details
  2. chore(deps): update pnpm to v7.9.3 (#165)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fb75418 View commit details
  3. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    984a42b View commit details
  4. chore(deps): update pnpm to v7.9.4 (#167)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Aug 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e08ce8b View commit details
  5. chore: add json coverage reporter

    pi0 committed Aug 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    7efa857 View commit details
  6. chore(release): 0.7.16

    pi0 committed Aug 23, 2022

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ab9c292 View commit details
Showing with 14 additions and 6 deletions.
  1. +8 −0 CHANGELOG.md
  2. +2 −2 package.json
  3. +1 −1 src/router.ts
  4. +2 −2 src/types.ts
  5. +1 −1 vite.config.ts
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,14 @@

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.

### [0.7.16](https://github.com/unjs/h3/compare/v0.7.15...v0.7.16) (2022-08-23)


### Bug Fixes

* `context` type for `CompatibilityRequestProps` ([#164](https://github.com/unjs/h3/issues/164)) ([984a42b](https://github.com/unjs/h3/commit/984a42b99d6204b40b942861d72592b53139b4d6))
* added missing patch router method ([#166](https://github.com/unjs/h3/issues/166)) ([dff2211](https://github.com/unjs/h3/commit/dff22112d89c8f556301172ae8ee2720b036dae9))

### [0.7.15](https://github.com/unjs/h3/compare/v0.7.14...v0.7.15) (2022-08-10)


4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "h3",
"version": "0.7.15",
"version": "0.7.16",
"description": "Tiny JavaScript Server",
"repository": "unjs/h3",
"license": "MIT",
@@ -54,5 +54,5 @@
"unbuild": "latest",
"vitest": "latest"
},
"packageManager": "pnpm@7.9.0"
"packageManager": "pnpm@7.9.4"
}
2 changes: 1 addition & 1 deletion src/router.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import { eventHandler, EventHandler, toEventHandler } from './event'
import type { CompatibilityEventHandler } from './event'

export type RouterMethod = Lowercase<HTTPMethod>
const RouterMethods: RouterMethod[] = ['connect', 'delete', 'get', 'head', 'options', 'post', 'put', 'trace']
const RouterMethods: RouterMethod[] = ['connect', 'delete', 'get', 'head', 'options', 'post', 'put', 'trace', 'patch']

export type RouterUse = (path: string, handler: CompatibilityEventHandler, method?: RouterMethod | RouterMethod[]) => Router
export type AddRouteShortcuts = Record<RouterMethod, RouterUse>
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import type http from 'http'
import type { H3Event } from './event'
import type { H3Event, H3EventContext } from './event'

interface CompatibilityRequestProps {
event: H3Event
context: Record<string, any>
context: H3EventContext
/** Only available with connect and press */
originalUrl?: string
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
coverage: {
reporter: ['text', 'clover']
reporter: ['text', 'clover', 'json']
}
}
})