Skip to content

Commit a6dcd4c

Browse files
committed
release: 4.0.10 [skip ci]
### [4.0.10](v4.0.9...v4.0.10) (2024-09-18) #### 🪄 Fixes * **src:** pass empty `apiContext` to work around `multiZoneDraftMode` check ([c061b91](c061b91))
1 parent 37c35c3 commit a6dcd4c

File tree

9 files changed

+573
-565
lines changed

9 files changed

+573
-565
lines changed

CHANGELOG.md

Lines changed: 547 additions & 539 deletions
Large diffs are not rendered by default.

docs/functions/testApiHandler.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ in a Next-like testing environment.
2626

2727
## Defined in
2828

29-
[index.ts:273](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L273)
29+
[index.ts:272](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L272)

docs/interfaces/NtarhInit.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ false
4040

4141
#### Defined in
4242

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

4545
***
4646

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

6565
#### Defined in
6666

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

docs/interfaces/NtarhInitAppRouter.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ for details.
6060
6161
#### Defined in
6262

63-
[index.ts:146](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L146)
63+
[index.ts:145](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L145)
6464

6565
***
6666

@@ -70,7 +70,7 @@ for details.
7070
7171
#### Defined in
7272

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

7575
***
7676

@@ -88,7 +88,7 @@ once.
8888

8989
#### Defined in
9090

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

9393
***
9494

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

115115
#### Defined in
116116

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

119119
***
120120

@@ -143,7 +143,7 @@ false
143143

144144
#### Defined in
145145

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

148148
***
149149

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

170170
#### Defined in
171171

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

174174
***
175175

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

197197
#### Defined in
198198

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

201201
***
202202

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

225225
#### Defined in
226226

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

229229
***
230230

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

238238
#### Defined in
239239

240-
[index.ts:206](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L206)
240+
[index.ts:205](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L205)

docs/interfaces/NtarhInitPagesRouter.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The parameters expected by `testApiHandler` when using `pagesHandler`.
2424
2525
#### Defined in
2626

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

2929
***
3030

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

4343
#### Defined in
4444

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

4747
***
4848

@@ -60,7 +60,7 @@ once.
6060

6161
#### Defined in
6262

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

6565
***
6666

@@ -86,7 +86,7 @@ is handled automatically.
8686

8787
#### Defined in
8888

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

9191
***
9292

@@ -115,7 +115,7 @@ false
115115

116116
#### Defined in
117117

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

120120
***
121121

@@ -139,7 +139,7 @@ lowercase.**
139139

140140
#### Defined in
141141

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

144144
***
145145

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

161161
#### Defined in
162162

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

165165
***
166166

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

189189
#### Defined in
190190

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

193193
***
194194

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

202202
#### Defined in
203203

204-
[index.ts:265](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L265)
204+
[index.ts:264](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L264)

docs/type-aliases/FetchReturnType.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
## Defined in
1818

19-
[index.ts:100](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L100)
19+
[index.ts:99](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L99)

docs/type-aliases/Promisable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
## Defined in
1818

19-
[index.ts:95](https://github.com/Xunnamius/next-test-api-route-handler/blob/89d2409a8fbc9ba840b27d51fe118ce111e6c10f/src/index.ts#L95)
19+
[index.ts:94](https://github.com/Xunnamius/next-test-api-route-handler/blob/37c35c31591639add2ada76a3899ced1163c4aeb/src/index.ts#L94)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "next-test-api-route-handler",
3-
"version": "4.0.9",
3+
"version": "4.0.10",
44
"description": "Confidently unit and integration test your Next.js API routes/handlers in an isolated Next.js-like environment",
55
"keywords": [
66
"api",

0 commit comments

Comments
 (0)