next-api-decorators

Collection of decorators to create typed Next.js API routes, with easy request validation and transformation.

MIT License

Downloads
14.3K
Stars
415
Committers
11

Bot releases are visible (Hide)

next-api-decorators - v1.2.0

Published by github-actions[bot] over 3 years ago

1.2.0 (2021-03-04)

Features

  • decorators: pipes for body, query string overloads (dbb4ff0)
  • pipes: parse date pipe (59e71a1)
  • add options for pipes (89cfa26)
  • enum validation pipe (2c0c431)
  • pipes: rename "name" parameter to hold metadata (563b1bf)
next-api-decorators - v1.2.0-beta.5

Published by github-actions[bot] over 3 years ago

1.2.0-beta.5 (2021-03-04)

next-api-decorators - v1.2.0-beta.4

Published by github-actions[bot] over 3 years ago

1.2.0-beta.4 (2021-03-04)

Features

next-api-decorators - v1.1.7

Published by github-actions[bot] over 3 years ago

1.1.7 (2021-03-03)

next-api-decorators - v1.2.0-beta.3

Published by github-actions[bot] over 3 years ago

1.2.0-beta.3 (2021-02-27)

Features

  • decorators: pipes for body, query string overloads (dbb4ff0)
  • enum validation pipe (2c0c431)
  • pipes: rename "name" parameter to hold metadata (563b1bf)
next-api-decorators - v1.2.0-beta.2

Published by github-actions[bot] over 3 years ago

1.2.0-beta.2 (2021-02-12)

Bug Fixes

  • order of method decorators (ac62af5)
next-api-decorators - v1.1.6

Published by github-actions[bot] over 3 years ago

1.1.6 (2021-02-12)

Bug Fixes

  • order of method decorators (ac62af5)
next-api-decorators - v1.2.0-beta.1

Published by github-actions[bot] over 3 years ago

1.2.0-beta.1 (2021-02-12)

Features

next-api-decorators - v1.1.5

Published by github-actions[bot] over 3 years ago

1.1.5 (2021-02-12)

next-api-decorators - v1.1.4

Published by github-actions[bot] over 3 years ago

1.1.4 (2021-02-12)

next-api-decorators - v1.1.4-beta.1

Published by github-actions[bot] over 3 years ago

1.1.4-beta.1 (2021-02-11)

next-api-decorators - v1.1.3

Published by github-actions[bot] over 3 years ago

1.1.3 (2021-02-11)

Bug Fixes

  • handle manual res when not returning & remove console.error (6c91d48)
next-api-decorators - v1.1.3-beta.1

Published by github-actions[bot] over 3 years ago

1.1.3-beta.1 (2021-02-11)

next-api-decorators - v1.1.2

Published by github-actions[bot] over 3 years ago

1.1.2 (2021-02-11)

next-api-decorators - v1.1.1

Published by github-actions[bot] over 3 years ago

1.1.1 (2021-02-11)

next-api-decorators - v1.1.0

Published by github-actions[bot] over 3 years ago

1.1.0 (2021-02-11)

Features

  • decorators for request and response objects (b9bd55e)
  • handle manual response (182b088)
next-api-decorators - v1.0.0

Published by github-actions[bot] over 3 years ago

1.0.0 (2021-02-11)

Bug Fixes

  • handle empty response (4f63de0)
  • internals: sort parameter decorators by their index (7ef9483)

Features

  • releases: 🚀 added/updated semantic-release config (#12) (092db89)
  • github action for tests (bf68c88)
  • use class-validator to validate DTOs (34413c4)
  • decorators: add pipes parameter to Query decorator (4fddec4)
  • exceptions: add BadRequestException (303b202)
  • internals: handle pipes for Query decorators (e5829ee)
  • pipes: add tests for boolean and number pipes (887abf2)
  • pipes: throw in built-in pipes (a03e502)
  • test: decorator tests (cee1049)
  • test: e2e test (0ca4362)
  • add and config jest (706d3dd)
  • add jest (21fd740)
  • add prepublishOnly script for npm (cb3f50d)
  • enable decorators in tsconfig (9eb9c97)
  • first commit (10c6545)