Releases: rhyek/nestjs-endpoints
Releases · rhyek/nestjs-endpoints
1.5.1
1.5.0
Features
- Replaced
nestjs-zod
with zod-openapi. The main benefit is output schemas will now emit OpenApi schemas and consequently TypeScript definitions for endpoint payloads that considerZodEffects
.
Example:
const schema = z.object({
age: z.number().default(30),
});
The above schema when used in input
will still mark age
as optional, but when used in output
it will not.
type ExampleInput = {
age?: number;
};
type ExampleOutput = {
age: number;
};
1.4.0
Features
- Provide
rawInput
to handlers with input schemas. This is the request body parsed by NestJS, but before zod.
1.3.1
Bugfixes
- Support OPTIONS HTTP method
- Use my fork of @nestjs/zod until this is merged: BenLorantfy/nestjs-zod#151
1.3.0
1.2.1
readme
1.2.0
Features
- Integrated orval setup for axios and react-query clients using
setupCodegen
. No longer necessary for users to set this up themselves.
1.1.0
Breaking Changes
- Replaced
EndpointsRouterModule.forRoot()
withEndpointsRouterModule.register()
- Removed
EndpointsModule
decorator
Features
- Added support for multiple router registrations in different modules
- Each registration will have its own
rootDirectory
andbaseBath
1.0.7
Merge pull request #13 from rhyek/fix/relative-path-for-setup fix relative path for setup
1.0.6
Merge pull request #12 from rhyek/handleemptyfiles handle empty files