Skip to content

Releases: FoalTS/foal

v2.1.0

03 Feb 13:05
Compare
Choose a tag to compare

Features

  • Pretiffy the welcome and the "500 error" pages (PR: #833)
  • CLI exits with code 1 when a command fails (PR: #848)
  • Hide unhelpful sqlite3 warnings when using createapp with npm (issue: #667) (PR: #854)
  • Add @All decorator to customize 404 errors when a route has no handler (issue: #750) (PR: #857)
  • Add CSRF option in UseSessions to override the configuration (issue: #859) (PR: #867)

Dependencies

  • @foal/aws-s3
    • aws-sdk@2.834
  • @foal/cli
    • commander@7.0
  • @foal/jwks-rsa
    • jwks-rsa@1.12
  • @foal/swagger
    • swagger-ui-dist@3.41

v1.12.1

03 Dec 08:48
Compare
Choose a tag to compare

Features / Fixes

  • Fix deprecation warnings in foal g rest-api (PR: #834)

Contributors

@JuanVqz

v2.0.0

27 Nov 16:16
Compare
Choose a tag to compare

How to upgrade to v2.0

https://github.com/FoalTS/foal/blob/v2-0-0/docs/upgrade-to-v2/index.md
OR (if dead link)
https://github.com/FoalTS/foal/blob/master/docs/upgrade-to-v2/index.md

Features

General issue: #658

1. Developper experience (CLI) ✅

  • Simplify commands for scripts and migrations (issue: #494) (PR: #684).

2. Authentication with sessions ✅

Summary: #799.

  • Simplify logout (issue: #726) (PR: #659)
  • Remove the need for a secret (issue: #727) (PR: #742)
  • Do not let TypeORMStore auto-update the database schema (issue: #766) (PR: #767)
  • Allow to query all sessions of a user (issue: #510) (PR: #780)
  • Allow to query all connected users (issue: #778) (PR: #780)
  • Allow to force the disconnection of a user (issue: #779) (PR: #780)
  • Support flash sessions (issue: #521) (PR: #781)
  • Allow to regenerate the session ID for security reasons (issue: #728) (PR: #792).
  • Make it easier to implement a custom session store and maintain it (issue: #794) (PR: #792).
  • Cleanup regularly expired sessions in MongoStore and TypeORMStore (issue: #793) (PR: #792).
  • Make it easier to use templates and to authenticate anonymous users (issue: #795) (PR: #792).
  • [MongoStore] Use sessionID instead of _id to prevent errors on hex vs base64 (issue: #797) (PR: #800)
  • [V2][Sessions] Remove the need of setSessionCookie in login (issue: #796) (PR: #801)
  • Make it easy/fast to use CSRF tokens with sessions (SPA & regular apps) (issue: #798) (PR: #802)
  • Do not save sessions if an error is thrown in a controller or a hook (PR: #823).

3. Schema references in validation hooks ✅

  • Allow to use OpenAPI schema references (issue: #552) (PR: #734)

4. Service initialization ✅

  • Initialize services by default (PR: #733)

5. Accessing file metadata during uploading ✅

  • [File upload] Access file size, mime type, encoding and original file name (issue: #673) (PR: #730)

6. Safer configuration ✅

  • Replace Config.get with Config.get2 (issue: #496) (PR: #732)

7. Improve the naming of JWT settings ✅

8. Remove support of Mongoose ✅

  • Remove support of Mongoose (PR: #741)

9. Improve the configuration system ✅

  • Use new configuration system (issues: #497, #805) (PR: #806)

10. Simplify the management of custom errors thrown in controllers and hooks ✅

  • Simplify the management of custom errors thrown in controllers and hooks (issue: #638) (PR: #807)

11. Cleanup ✅

  • Drop NodeJS 8 support and test NodeJS 12 (PR: #699).
  • Remove outdated and useless security headers.
  • Remove the objects ObjectDoesNotExist, PermissionDenied (PR: #718)
  • PR: #804

Dependencies

Packages

  • @foal/cli
    • commander@6.2
  • @foal/jwks-rsa
    • jwks-rsa@1.10
  • @foal/swagger
    • swagger-ui-dist@3.35
  • @foal/typestack
    • class-transformer@0.3 (peer dependency)

Generated projects (foal createapp)

  • sqlite3@5.0
  • @types/mocha@7.0.2
  • @types/node@10.17.24
  • concurrently@5.3
  • mocha@8.2
  • supertest@6.0
  • typescript@4.0

v1.12.0

26 Nov 07:28
Compare
Choose a tag to compare
  • Deprecate some components to prepare the migration to version 2.

v1.11.2

11 Nov 16:11
Compare
Choose a tag to compare

Features

  • [OpenAPI] Fix incorrect path validation error (issue: #821) (PR: #822)

Contributors

@jeredmasters

v1.11.1

13 Aug 19:51
Compare
Choose a tag to compare

Features and fixes

  • Fix timeouts in CI which cause some tests to fail.
  • Fix the "overriding" class bug in @ValidateBody (typestack) (issue: #785) (PR: #786)

Contributors

@AleksandrSl

v1.11.0

17 Jul 08:01
Compare
Choose a tag to compare

Features

Key features

Small things

  • Remove some useless npm and yarn warnings on install (issue: #695) (PR: #761)
  • [CLI] Catch rejected promises in shell scripts (issue: #671) (PR: #762)

Contributors

@AleksandrSl

Dependencies

  • @foal/swagger
    • swagger-ui-dist@3.28

v1.10.0

17 Jul 08:01
Compare
Choose a tag to compare

Not published. See v1.11.0.

v1.9.0

28 May 06:50
Compare
Choose a tag to compare

Features

  • Make JWTRequired and TokenRequired work with TypeORM and MongoDB (fetchMongoDBUser) (issue: #548) (PR: #701)
  • Request body and path parameters are now also passed as third and second arguments to the controller methods (issue: #507) (PR: #705)
  • Add HttpResponseTooManyRequests (issue: #664) (PR: #709)
  • Support custom type for ctx.state (issue: #711) (PR: #717)
  • [Bug] Make forceDownload option work on all browsers (PR: #722)

CLI

This version also takes care of closing a lot of pending issues.

  • [CLI] [Internal] Refactor the CLI to add new features in the future (issue: #577) (PR: #712)
  • [CLI] [Bug] Fix error displayed when running foal g vscode-config (issue: #694) (PR: #714).
  • [CLI] Support subdirectories in g service|controller (ex: foal g controller api/products --register) (issue: #368) (PR: #714)
  • [CLI] [Bug fix] Frontend projects attached to Foal with foal connect on Windows now can build on unix systems (issue: #562) (PR: #703)
  • [CLI] [Bug fix] Fix yarn installation failure on Node 8 (issue: #706) (PR: #705)
  • [CLI] [Bug fix] Scripts generated in a Mongoose project uses Mongoose (issue: #362) (PR: #715)
  • [CLI] Support --auth flag in foal g rest-api (issue: #366) (PR: #716)

Contributors

@matt-harvey
@kingdun3284
@AminTaghikhani

v1.8.1

01 May 16:47
Compare
Choose a tag to compare

Features

This patch fixes type issues introduced in v1.8.0

  • Remove mongoose types (issue: #687) (PR: #688).
  • Remove "@types/express-serve-static-core" and define own Request interface (issue: #686) (PR: #690)