Skip to content

Commit

Permalink
release: 4.0.11 [skip ci]
Browse files Browse the repository at this point in the history
### [4.0.11](v4.0.10...v4.0.11) (2024-09-18)

#### 🪄 Fixes

* **src:** stop Next.js from attempting to statically generate routes under test ([a461e81](a461e81)) <sup>closes [#1076](https://github.com/Xunnamius/next-test-api-route-handler/issues/1076)</sup>
  • Loading branch information
Xunnamius committed Sep 18, 2024
1 parent a461e81 commit c9432ad
Show file tree
Hide file tree
Showing 12 changed files with 610 additions and 566 deletions.
1,089 changes: 549 additions & 540 deletions CHANGELOG.md

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
- [FetchReturnType](type-aliases/FetchReturnType.md)
- [Promisable](type-aliases/Promisable.md)

## Variables

- [$isPatched](variables/$isPatched.md)
- [$originalGlobalFetch](variables/$originalGlobalFetch.md)

## Functions

- [testApiHandler](functions/testApiHandler.md)
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:272](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L272)
[index.ts:284](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L284)
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:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)
[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)

***

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

#### Defined in

[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)
[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)
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:145](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L145)
[index.ts:157](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L157)

***

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

[index.ts:154](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L154)
[index.ts:166](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L166)

***

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

#### Defined in

[index.ts:164](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L164)
[index.ts:176](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L176)

***

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

#### Defined in

[index.ts:174](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L174)
[index.ts:186](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L186)

***

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

#### Defined in

[index.ts:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)
[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)

***

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

#### Defined in

[index.ts:187](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L187)
[index.ts:199](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L199)

***

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

#### Defined in

[index.ts:200](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L200)
[index.ts:212](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L212)

***

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

#### Defined in

[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)
[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)

***

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

#### Defined in

[index.ts:205](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L205)
[index.ts:217](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L217)
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:223](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L223)
[index.ts:235](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L235)

***

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

#### Defined in

[index.ts:222](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L222)
[index.ts:234](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L234)

***

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

#### Defined in

[index.ts:233](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L233)
[index.ts:245](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L245)

***

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

#### Defined in

[index.ts:243](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L243)
[index.ts:255](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L255)

***

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

#### Defined in

[index.ts:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)
[index.ts:134](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L134)

***

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

#### Defined in

[index.ts:254](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L254)
[index.ts:266](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L266)

***

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

#### Defined in

[index.ts:259](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L259)
[index.ts:271](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L271)

***

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

#### Defined in

[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)
[index.ts:140](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L140)

***

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

#### Defined in

[index.ts:264](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L264)
[index.ts:276](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L276)
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:99](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L99)
[index.ts:111](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L111)
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:94](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L94)
[index.ts:106](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L106)
15 changes: 15 additions & 0 deletions docs/variables/$isPatched.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[**next-test-api-route-handler**](../README.md)**Docs**

***

[next-test-api-route-handler](../README.md) / $isPatched

# Variable: $isPatched

> `const` **$isPatched**: *typeof* [`$isPatched`]($isPatched.md)
**`Internal`**

## Defined in

[index.ts:68](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/src/index.ts#L68)
15 changes: 15 additions & 0 deletions docs/variables/$originalGlobalFetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[**next-test-api-route-handler**](../README.md)**Docs**

***

[next-test-api-route-handler](../README.md) / $originalGlobalFetch

# Variable: $originalGlobalFetch

> `const` **$originalGlobalFetch**: *typeof* [`$originalGlobalFetch`]($originalGlobalFetch.md)
**`Internal`**

## Defined in

[index.ts:63](https://github.com/Xunnamius/next-test-api-route-handler/blob/a461e8108624c221c70702d1068092a640a5bae5/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.10",
"version": "4.0.11",
"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 c9432ad

Please sign in to comment.