Skip to content

Releases: FoalTS/foal

v0.6.0-beta.0

21 Aug 11:17
Compare
Choose a tag to compare
v0.6.0-beta.0 Pre-release
Pre-release

Goal: Create complex REST API.

  • Rename ISerializer to IResourceCollection and EntitySerializer to EntityResourceCollection(#170).
  • Change IResourceCollection interface (#172).
  • [@foal/cli] Make User entity and scripts/create-users consistent (#176).
  • [REST] Support postgres and sqlite (#173).
  • [REST] Support PermissionDenied and ValidationError in EntityCollections (#173).
  • [REST] Add allowedOperations, loadedRelations and middlewaresin EntityResourceCollection (#173).
  • [REST] Use params.fields in EntityResourceCollection to restrict the returned representations (#173).
  • [REST] Let the client create several resources within one request (#173).

v0.6.0-alpha.4

13 Aug 18:56
Compare
Choose a tag to compare
v0.6.0-alpha.4 Pre-release
Pre-release

Goal: having an authentication and authorization system that work.

  • Infer response type from isHttpResponseXXX(#160).
  • [@foal/cli] Add Authenticate hook in generated apps (#164).
  • Add url-encoded parsing and add more tests (#165).
  • Add the createController util (#166).
  • Fix the LoginController bug "get" of undefined (#166).
  • [@foal/cli] Generate controller specs (empty controllers) (#166).
  • Support custom session store (#167).
  • [@foal/cli] Generated apps now use by default an sqlite3 session store to not loose the user authentication when reloading the server (#167).
  • Add e2e tests for authentication and authorization (#168).
  • Add redirect URL to PermissionRequired.

v0.6.0-alpha.3

06 Aug 06:43
Compare
Choose a tag to compare
v0.6.0-alpha.3 Pre-release
Pre-release
  • [@foal/cli] Remove chai from created apps. (#155).
  • [@foal/cli] Give a default User path in generated authenticator files.
  • [@foal/cli] Generate Login controllers (#157).
  • Add redirect option in LoginRequired.
  • [@foal/cli] Add HookDecorator to hook template.
  • Add ValidateQuery hook (#158).
  • Remove bootstrap from @foal/cli (#159).

v0.6.0-alpha.2

04 Aug 18:16
Compare
Choose a tag to compare
v0.6.0-alpha.2 Pre-release
Pre-release
  • parsePassword now expects a string instead of an object (#145).
  • Add src/app/sub-modules and sub-modules/ paths to foal g module (#147).
  • Export all entities in sub-modules (#147).
  • Remove restrictBodyAndQueryToAuthenticated as it is now useless (#148).
  • Do not modify/set the value of process.env.NODE_ENV (#149).
  • Make the app return 403 'Bad csrf token' when the csrf token is incorrect or missing (bug) (#150).
  • By default auto create database schema on every application launch (#151).
  • Fix commands npm run migration:generate and npm run migration:run (#152).

v0.6.0-alpha.1

30 Jul 17:21
Compare
Choose a tag to compare
v0.6.0-alpha.1 Pre-release
Pre-release
  • Remove route controller factory.

  • Remove methodNotAllowed pre-hook.

  • Remove onSuccessKeepFields (#134).

  • Add the csrf token in a meta tag in index.html (#135).

  • Remove yeoman generators and move all the generations into the cli package (#135).

  • Rename restrictAccessToAuthenticated to LoginRequired (#139).

  • Support graphql loading.

  • Remove Abstract prefix from EmailAuthenticator.

  • Move validate to @foal/core and remove @foal/ajv package.

  • Remove combinePostHooks and combinePreHooks (#140).

  • Remove handlers and convert controllers to classes (with http method decorators and DI) (#140).

  • Convert pre and post hooks in Hook decorators (#140).

  • Make standard start by a capital letter (#140).

  • Convert modules to classes implementing IModule (#140).

  • Reorganize @foal/core code structure (internal) (#140).

  • Split test command into several commands (internal) (#140).

  • Simplify ctx by using the express request object (#140).

  • Remove PostContext (#140).

  • Remove body-parser dep (#140).

  • Support that hook functions may return other values that HttpResponse (#140).

  • Remove afterThatLog post-hook (#140).

  • Rename models to entities (consistency with typeorm) (#140).

  • Rename IModelService and ModelService to ISerializer and EntitySerializer (#140).

  • Add Permission and Group entities (#140).

  • Add getPath, getHookFunction and getHttpMethod utils (#140).

  • Allow to inject the ServiceManager inside a service or controller.

  • Simplify authentication (controller mostly) (#140).

  • Add PermissionRequired and remove restrictAccessToAdmin (#140).

  • Add "remove additionalProperties" feature (#140).

  • Move templates/ to controllers/ dir (#140).

  • Remove csrfToken from state (#140).

  • [@foal/cli] Do not restart the server on error (#140).

  • [@foal/cli] Add smart detection folder with foal generate (#140).

  • Rename Validate to ValidateBody.

  • Add test coverage on @foal/core.

v0.5.0-alpha.4

13 Jun 14:18
Compare
Choose a tag to compare
v0.5.0-alpha.4 Pre-release
Pre-release

Fix typo.

v0.5.0-alpha.2

13 Jun 14:10
Compare
Choose a tag to compare
v0.5.0-alpha.2 Pre-release
Pre-release
  • @foal/cli: Prevent image loading when requiring html templates.

v0.5.0-alpha.1.0

13 Jun 13:45
Compare
Choose a tag to compare
v0.5.0-alpha.1.0 Pre-release
Pre-release
v0.5.0-alpha.1.0

v0.4.0-beta.4

13 May 13:55
Compare
Choose a tag to compare
v0.4.0-beta.4 Pre-release
Pre-release
  • Rename validateEmailCredentialsFormat to validateEmailAndPasswordCredentialsFormat. (#101).

v0.4.0-beta.3

06 May 17:31
Compare
Choose a tag to compare
v0.4.0-beta.3 Pre-release
Pre-release
  • Remove ObjectType.
  • Add Microsoft SQL Server support (#92).
  • Add validateLocalCredentialsFormat (#93).
  • Rename LocalAuthenticator to EmailAndPasswordAuthenticator (#94, #97).
  • Convert ServiceControllerFactory to an interface (#96).
  • Make authentication simpler and add a UserModelService (#97).