Skip to content

Releases: rhyek/nestjs-endpoints

1.5.1

29 Jun 04:45
Compare
Choose a tag to compare

Testing

  • Added more tests

1.5.0

22 Jun 19:54
1d2eea9
Compare
Choose a tag to compare

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 consider ZodEffects.

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

14 Jun 01:19
d6858ca
Compare
Choose a tag to compare

Features

  • Provide rawInput to handlers with input schemas. This is the request body parsed by NestJS, but before zod.

1.3.1

27 May 04:15
376bffe
Compare
Choose a tag to compare

Bugfixes

1.3.0

12 Apr 22:39
f9a4967
Compare
Choose a tag to compare

Features

  • Added support for traditional controller imports + explicit HTTP paths
  • Can now call invoke() on endpoint instances. Useful for integration testing. Example.

1.2.1

06 Apr 07:46
Compare
Choose a tag to compare
readme

1.2.0

06 Apr 04:53
Compare
Choose a tag to compare

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

29 Mar 23:32
3b28b78
Compare
Choose a tag to compare

Breaking Changes

  • Replaced EndpointsRouterModule.forRoot() with EndpointsRouterModule.register()
  • Removed EndpointsModule decorator

Features

  • Added support for multiple router registrations in different modules
  • Each registration will have its own rootDirectory and baseBath

1.0.7

08 Mar 18:44
5229b64
Compare
Choose a tag to compare
Merge pull request #13 from rhyek/fix/relative-path-for-setup

fix relative path for setup

1.0.6

03 Mar 19:25
eb1f157
Compare
Choose a tag to compare
Merge pull request #12 from rhyek/handleemptyfiles

handle empty files