Skip to content

Commit

Permalink
release: 4.0.12 [skip ci]
Browse files Browse the repository at this point in the history
### [4.0.12](v4.0.11...v4.0.12) (2024-10-17)

#### ⚙️ Build system

* Prepare compatibility layer for next@15 ([a73f21e](a73f21e))
  • Loading branch information
Xunnamius committed Oct 17, 2024
1 parent 3ef95f3 commit 06757ec
Show file tree
Hide file tree
Showing 11 changed files with 582 additions and 574 deletions.
1,100 changes: 554 additions & 546 deletions CHANGELOG.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/functions/testApiHandler.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ in a Next-like testing environment.

## Defined in

[index.ts:284](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L284)
[index.ts:297](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L297)
4 changes: 2 additions & 2 deletions docs/interfaces/NtarhInit.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ false

#### Defined in

[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)
[index.ts:141](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L141)

***

Expand All @@ -64,4 +64,4 @@ one destructured parameter: `fetch`, which is equivalent to

#### Defined in

[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)
[index.ts:147](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L147)
18 changes: 9 additions & 9 deletions docs/interfaces/NtarhInitAppRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ for details.
#### Defined in

[index.ts:157](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L157)
[index.ts:164](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L164)

***

Expand All @@ -70,7 +70,7 @@ for details.
#### Defined in

[index.ts:166](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L166)
[index.ts:179](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L179)

***

Expand All @@ -88,7 +88,7 @@ once.

#### Defined in

[index.ts:176](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L176)
[index.ts:189](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L189)

***

Expand All @@ -114,7 +114,7 @@ is handled by `Request` automatically.

#### Defined in

[index.ts:186](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L186)
[index.ts:199](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L199)

***

Expand Down Expand Up @@ -143,7 +143,7 @@ false

#### Defined in

[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)
[index.ts:141](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L141)

***

Expand All @@ -169,7 +169,7 @@ NextRequest(returnedRequest, { ... })`.

#### Defined in

[index.ts:199](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L199)
[index.ts:212](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L212)

***

Expand All @@ -196,7 +196,7 @@ unhandled exception occurs _and_ `rejectOnHandlerError` is `true`.

#### Defined in

[index.ts:212](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L212)
[index.ts:225](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L225)

***

Expand Down Expand Up @@ -224,7 +224,7 @@ one destructured parameter: `fetch`, which is equivalent to

#### Defined in

[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)
[index.ts:147](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L147)

***

Expand All @@ -237,4 +237,4 @@ NextRequest('your-url', request)`

#### Defined in

[index.ts:217](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L217)
[index.ts:230](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L230)
18 changes: 9 additions & 9 deletions docs/interfaces/NtarhInitPagesRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The parameters expected by `testApiHandler` when using `pagesHandler`.
#### Defined in

[index.ts:235](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L235)
[index.ts:248](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L248)

***

Expand All @@ -42,7 +42,7 @@ will have a typed result.

#### Defined in

[index.ts:234](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L234)
[index.ts:247](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L247)

***

Expand All @@ -60,7 +60,7 @@ once.

#### Defined in

[index.ts:245](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L245)
[index.ts:258](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L258)

***

Expand All @@ -86,7 +86,7 @@ is handled automatically.

#### Defined in

[index.ts:255](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L255)
[index.ts:268](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L268)

***

Expand Down Expand Up @@ -115,7 +115,7 @@ false

#### Defined in

[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)
[index.ts:141](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L141)

***

Expand All @@ -139,7 +139,7 @@ lowercase.**

#### Defined in

[index.ts:266](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L266)
[index.ts:279](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L279)

***

Expand All @@ -160,7 +160,7 @@ to edit the response _before_ it's injected into the handler.

#### Defined in

[index.ts:271](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L271)
[index.ts:284](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L284)

***

Expand Down Expand Up @@ -188,7 +188,7 @@ one destructured parameter: `fetch`, which is equivalent to

#### Defined in

[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)
[index.ts:147](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L147)

***

Expand All @@ -201,4 +201,4 @@ one destructured parameter: `fetch`, which is equivalent to

#### Defined in

[index.ts:276](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L276)
[index.ts:289](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L289)
2 changes: 1 addition & 1 deletion docs/type-aliases/FetchReturnType.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

## Defined in

[index.ts:111](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L111)
[index.ts:118](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L118)
2 changes: 1 addition & 1 deletion docs/type-aliases/Promisable.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@

## Defined in

[index.ts:106](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L106)
[index.ts:113](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L113)
2 changes: 1 addition & 1 deletion docs/variables/$isPatched.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

## Defined in

[index.ts:68](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L68)
[index.ts:68](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L68)
2 changes: 1 addition & 1 deletion docs/variables/$originalGlobalFetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

## Defined in

[index.ts:63](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L63)
[index.ts:63](https://github.com/Xunnamius/next-test-api-route-handler/blob/3ef95f397021fadbf81b84daebcae192d5538bf2/src/index.ts#L63)
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-test-api-route-handler",
"version": "4.0.11",
"version": "4.0.12",
"description": "Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment",
"keywords": [
"api",
Expand Down

0 comments on commit 06757ec

Please sign in to comment.