Skip to content

Releases: FoalTS/foal

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)

v1.8.0

01 May 07:39
Compare
Choose a tag to compare

Features

  • Allow to inject interfaces and generic classes (such as TypeORM entities) (issues: #598, #627) (PR: #675).
  • ServiceManager.set returns itself (PR: #675).
  • Support service initialization (boot method) (issues: #628) (PR: #678)
  • Base64-encoding option for JWT secrets (issues: #523) (PR: #677)
  • UserWithPermissions extends BaseEntity (issue: #656) (PR: #682)
  • UserWithPermissions has a static method to get all users with a given permission (issue: #637) (PR: #682)
  • Fix recurring bugs with the types of @types/express (issue: #683) (PR: #685).

Dependencies

v1.7.1

08 Apr 09:52
Compare
Choose a tag to compare
  • Fix multipart fields validation (#672)

v1.7.0

07 Apr 14:14
Compare
Choose a tag to compare

Features

  • [Config] Ajv: support the option allErrors (issue: #633) (PR: #642)
  • [Config] Add an option not to log errors (issue: #612) (PR: #644)
  • [Storage] Add isFileDoesNotExist function (#657).
  • Enhance Config to support type and value checking. More detailed errors (issue: #496) (PR: #641)
  • Validate multipart/formdata requests to facilitate file uploads (issue: #560) (PR: #651)

Dependencies

v1.6.0

12 Feb 09:26
Compare
Choose a tag to compare

Features

  • Support local and Cloud storage (fs and AWS S3) (issues: #604, #421) (PR: #611)
  • Allow to inject custom instances into the DI system (PR: #599)
  • Fix foal generate controller β€”register bug (issue: #606) (PR: #619)
  • [CLI] Clean the build directory before building the files (issue: #607) (PR: #621)
  • [Internal] Update GraphQL version and modify tsconfig (issue: #614) (PR: #623, #624)
  • Better stream error handling (PR: #611)

Deprecation

The function createHttpResponseFile is deprecated. Prefer to use Disk.createHttpResponse instead: https://foalts.gitbook.io/docs/topic-guides/file-system/upload-and-download-files#file-downloads

How to upgrade

npm update @foal/core # and all the other packages you use

Additionally, you can update your package.json like this.

Contributors

@jeredmasters

Dependencies

v1.5.0

10 Jan 09:00
Compare
Choose a tag to compare

Features

  • [Social auth] Add Github and LinkedIn providers (issue: #125) (PR: #591)
  • [CLI] Set default CSRF protection for sessions in the configuration (PR: #594).
  • Support the 'none' option for SameSite cookie attribute (PR: #594).
  • Be able to customize the global exception handler (issue: #370) (PR: #595)
  • Be able to increase the request body size limit (issue: #596) (PR: #597)
  • [Internal] Compile Foal's packages with the option noImplicitAny: true (PR: #600)
  • Remove type-graphql dependency introduced by mistake in v1.3.1 (PR: #608)
  • [CLI] Remove wrong npm naming control (PR: #610)

Dependencies

v1.4.0

10 Jan 08:59
Compare
Choose a tag to compare

There is no version v1.4.0. Please refer to version 1.5.0

v1.3.1

05 Dec 08:29
Compare
Choose a tag to compare
  • [Social Auth] [Bug] Improve social errors (issue: #582) (PR: #584)

v1.3.0

03 Dec 14:37
Compare
Choose a tag to compare

Features

  • Migrate to TypeScript version 3 (PR: #557) (breaking change).
  • Fix the unknown issue when building @foal/typestack (PR: #557).
  • Accept null as GraphQL query variables (PR: #553).
  • [CLI] Add --no-git and --no-install options to createapp (PR: #554).
  • [CLI] Stop createapp my-app if the directory my-app already exists (PR: #554).
  • [CLI] Fix bug: the CLI help is displayed unexpectedly (PR: #554).
  • [CLI] Generate new projects with ESLint instead of TSLint (issue: #555) (PR: #561) (big thanks to @fer22f)
  • [Social Auth] Add Facebook and Google providers (issue: #125) (PR: #563)
  • Upgrade sub-dependencies (PR: #578).

Breaking change

Due to a compatibility issue with class-transformer, Foal TS does not support TypeScript 2 anymore. Version 3.5 or higher is recommended.

Contributors

@firesharker
@fer22f

Dependencies