diff --git a/CHANGELOG.md b/CHANGELOG.md index bbc9445..e53caf5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,12 @@ All notable changes to this project will be documented in this file. We follow the [Semantic Versioning 2.0.0](http://semver.org/) format. +### 3.4.0 - 2023-10-24 + +### Added + +- Add support for strongly-typed response content-type headers. + ### 3.3.0 - 2023-10-23 ### Added diff --git a/apps/example/public/openapi.json b/apps/example/public/openapi.json index 0b4980c..fd09bc7 100644 --- a/apps/example/public/openapi.json +++ b/apps/example/public/openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Next REST Framework", "description": "This is an autogenerated documentation by Next REST Framework.", - "version": "v3.3.0" + "version": "v3.4.0" }, "paths": { "/api/api-routes/todos": { diff --git a/docs/docs/getting-started.md b/docs/docs/getting-started.md index d4e00a6..ddcad8c 100644 --- a/docs/docs/getting-started.md +++ b/docs/docs/getting-started.md @@ -133,7 +133,7 @@ const handler = routeHandler({ export { handler as GET, handler as POST }; ``` -The `TypedNextResponse` ensures that the response status codes are type-checked. You can still use the regular `NextResponse` if you prefer to have less type-safety. +The `TypedNextResponse` ensures that the response status codes and content-type headers are type-checked. You can still use the regular `NextResponse` if you prefer to have less type-safety. #### Pages Router: diff --git a/packages/next-rest-framework/README.md b/packages/next-rest-framework/README.md index 0cc3c00..3667746 100644 --- a/packages/next-rest-framework/README.md +++ b/packages/next-rest-framework/README.md @@ -204,7 +204,7 @@ const handler = routeHandler({ export { handler as GET, handler as POST }; ``` -The `TypedNextResponse` ensures that the response status codes are type-checked. You can still use the regular `NextResponse` if you prefer to have less type-safety. +The `TypedNextResponse` ensures that the response status codes and content-type headers are type-checked. You can still use the regular `NextResponse` if you prefer to have less type-safety. #### Pages Router: diff --git a/packages/next-rest-framework/package.json b/packages/next-rest-framework/package.json index 00414ba..baf0f17 100644 --- a/packages/next-rest-framework/package.json +++ b/packages/next-rest-framework/package.json @@ -1,6 +1,6 @@ { "name": "next-rest-framework", - "version": "3.3.0", + "version": "3.4.0", "description": "Next REST Framework - write type-safe, self-documenting REST APIs in Next.js", "keywords": [ "nextjs",