Skip to content

Releases: FoalTS/foal

v0.4.0-alpha.3

14 Jan 15:05
Compare
Choose a tag to compare
v0.4.0-alpha.3 Pre-release
Pre-release
  • Add handle-errors in @foal/express (#53).
  • Add escape and escapeHTML utils (#60).
  • Add @foal/ajv for schema validation (#59).
  • Add details to HttpError and use them in handleErrors (#59).
  • Allow null value for Route.serviceMethodName in controller factories (#61).
  • Add more unit tests (#64, #62)
  • In rest PATCH, DELETE, PUT / and POST /:id throw now an MethodNotAllowedError (#62)
  • @foal/sequelize is now supported by MySQL (#65).

Small breaking changes

  • Rename Middleware to ReducedMiddleware. (#56)
  • Rename PreMiddleware and PostMiddleware to a same type Middleware. (#56)
  • Rename serviceMethodBinder to middleware. (#56)
  • Rename LowLevelRoute to ReducedRoute (consistency with ReducedMiddleware). (#56)

v0.4.0-alpha.2

28 Dec 13:45
Compare
Choose a tag to compare
v0.4.0-alpha.2 Pre-release
Pre-release
  • Add getPreMiddleware and getPostMiddleware utils in @foal/core (#41).
  • Add more docs (#43).
  • Add more tests (#43).
  • Add new pre-hook afterThatRemoveField(name: string) (#43).
  • Add createEmptyContext util in @foal/core (#47).
  • Make service declaration optional in modules (#48).

v0.4.0-alpha.0

24 Dec 14:13
Compare
Choose a tag to compare
v0.4.0-alpha.0 Pre-release
Pre-release

Note: v0.3.0 was a POC and was not ready for prod. That's why breaking changes are permitted here.

  • Add useful access control hooks in a new package: @foal/common (#22).
  • Add authentication and authorization example in @foal/examples (#22)
  • Add post-hooks (#30)
  • Introduce view controller binder with ViewService (#34)
  • Add @foal/ejs to render ejs templates (#34)
  • Having a PR in https://github.com/FoalTS/generator-foal to support v4 (FoalTS/generator-foal#17)
  • Remove the in progress and replace them with alpha version

Breaking changes

  • Convert SequelizeService to a generic class (#15).
  • Redefine contexts (#19, #22).
  • Rename Injector to ServiceManager with some of its attributes (#27).
  • Rename module.preHooks to module.hooks (#30).
  • FoalTS requires node version >= 8 (#35)
  • Rename update and patch to replace and modify (#37).
  • Controllers are not any more a sub-category of services(#37).
  • The controller binders become the controllers(#37).
  • RestController is replaced by PartialCRUDService, CRUDService, CreateService, ReadService, UpdateService, DeleteService(#37).
  • module.controllerBindings|imports become module.controllers|modules(#37).
  • Split @foal/core into @foal/core and @foal/common(#37).

v0.3.0

01 Nov 16:27
Compare
Choose a tag to compare
  • Remove express and contextual decorators
  • Add pre-hooks
  • Remove express from @foal/core and add the new package @foal/express