Skip to content

Commit

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

#### 🪄 Fixes

* **src:** pass empty `apiContext` to work around `multiZoneDraftMode` check ([c061b91](c061b91))
  • Loading branch information
Xunnamius committed Sep 18, 2024
1 parent 37c35c3 commit a6dcd4c
Show file tree
Hide file tree
Showing 9 changed files with 573 additions and 565 deletions.
1,086 changes: 547 additions & 539 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:273](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L273)
[index.ts:272](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L272)
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:123](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L123)
[index.ts:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)

***

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

#### Defined in

[index.ts:129](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L129)
[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)
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:146](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L146)
[index.ts:145](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L145)

***

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

[index.ts:155](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L155)
[index.ts:154](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L154)

***

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

#### Defined in

[index.ts:165](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L165)
[index.ts:164](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L164)

***

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

#### Defined in

[index.ts:175](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L175)
[index.ts:174](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L174)

***

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

#### Defined in

[index.ts:123](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L123)
[index.ts:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)

***

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

#### Defined in

[index.ts:188](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L188)
[index.ts:187](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L187)

***

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

#### Defined in

[index.ts:201](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L201)
[index.ts:200](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L200)

***

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

#### Defined in

[index.ts:129](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L129)
[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)

***

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

#### Defined in

[index.ts:206](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L206)
[index.ts:205](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L205)
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:224](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L224)
[index.ts:223](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L223)

***

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

#### Defined in

[index.ts:223](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L223)
[index.ts:222](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L222)

***

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

#### Defined in

[index.ts:234](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L234)
[index.ts:233](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L233)

***

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

#### Defined in

[index.ts:244](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L244)
[index.ts:243](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L243)

***

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

#### Defined in

[index.ts:123](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L123)
[index.ts:122](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L122)

***

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

#### Defined in

[index.ts:255](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L255)
[index.ts:254](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L254)

***

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

#### Defined in

[index.ts:260](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L260)
[index.ts:259](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L259)

***

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

#### Defined in

[index.ts:129](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L129)
[index.ts:128](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L128)

***

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

#### Defined in

[index.ts:265](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L265)
[index.ts:264](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L264)
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:100](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L100)
[index.ts:99](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L99)
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:95](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L95)
[index.ts:94](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L94)
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.9",
"version": "4.0.10",
"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 a6dcd4c

Please sign in to comment.