Skip to content

Releases: JamieCurnow/expree

v2.1.0

08 Dec 15:24

Choose a tag to compare

  • Merge pull request #5 from JamieCurnow/chore/update-types 1542f2e
  • clean up yarn lock - move to npm 606dc32
  • update dependencies 66fd310

v2.0.3...v2.1.0

[Maybe breaking changes]

This shouldn't break anything and the API hasn't changed at all, but we have updated some packages and types which may stop your project from building downstream. Make sure you update express and any other types packages that are related in your project.

Also, check out this PR which you may need to wait on if you use @types/express at all:
DefinitelyTyped/DefinitelyTyped#63532

If you get an error passing your express app into the createRoutes() function, the suggestion is to typecast it as any or unknown until the above PR is merged in.

const app = express()
createReoutes(app as any, { // your options })

Cleanup - remove log

11 Aug 16:44

Choose a tag to compare

v2.0.2...v2.0.3

exporting CreateRoutesOption type

11 Aug 16:05

Choose a tag to compare

Chore - exporting the CreateRoutesOption type

11 Aug 16:03

Choose a tag to compare

v2.0.0! Zod validation and Swagger docs 🥳🎊

26 Jul 12:46

Choose a tag to compare

#[Breaking changes]
We're now using Zod for validation instead of Joi. Joi is no longer supported - update your validation function to now return a Zod validation object for the body/params/etc.

validate: (zod) => ({
  body: zod.object({ something: zod.boolean() })
})

Swagger

See docs in README.

Commits

  • update the tests 3c1d78d
  • put version back to use auto versioning from np da9528c
  • add to docs, update type descriptions, expose zod out of the swaggerZod function. 304a458
  • Merge pull request #4 from JamieCurnow/2-implement-swagger-docs-object-using-swagger-zod 0e3043d
  • Added openapi extended zod to the validate method Added examples to validate method Added route meta info to the swaggerZod function c0346ba
  • Zod swagger docs now working 😎 New swaggerZod metod exposed to routes with the definition ready to register routes and schemas to 83e4faf
  • Merge pull request #3 from JamieCurnow/1-implement-zod-for-validation edf5169
  • Implemented zod vaildation for routes Removed express-validation + joi packages a86b1c5

v1.0.1...v2.0.0

Contributors:

Ben Short @kensington133
Jamie Curnow @JamieCurnow

Version 1 stable [BREAKING CHANGES]

22 Apr 16:43

Choose a tag to compare

Check the readme for updated docs! The main breaking change is in the createRoutes function options.

  • updating test script so it finished 26fa6e0
  • npm ignore tests 8479516
  • version 1 stable. Many things updated and enhanced and some docs and tests 384a5e5
  • Create FUNDING.yml bd4ebc4

v0.1.6...v1.0.1

Started windows compatibility

29 Jul 09:21

Choose a tag to compare

Dynamic routes can now be defined by creating a file starting with an _ eg: /routes/user/_id.ts. Files starting with : still work for now.

Breaking change:

In previous versions, files starting with _ were ignored and not added to the express app as a route. From this version, these files will be added as dynamic routes.

  • build 9ded327
  • added ability to use underscore as dynamic routes to be compatible on windows. b7df762
  • post build commit abb1d34

v0.0.9...v0.1.0

Updates and minor bugfix

18 Jun 12:45

Choose a tag to compare

  • updating express and fixing a bug with dynamic route priority c769060

v0.0.7...v0.0.8

v0.0.5

19 Nov 15:26

Choose a tag to compare

  • fixing issue with different return types a248e50

v0.0.4...v0.0.5

v0.0.4

19 Nov 12:39

Choose a tag to compare