Releases: FoalTS/foal
Releases · FoalTS/foal
v1.11.1
v1.11.0
Features
Key features
- [Sessions] Allow to specify the store name in the configuration (issue: #725) (PR: #729, #759)
Doc: https://github.com/FoalTS/foal/blob/master/docs/authentication-and-access-control/session-tokens.md#specify-the-name-of-the-session-store-in-the-configuration - Support abstract services (issue: #758) (PR: #759).
Doc: https://github.com/FoalTS/foal/blob/master/docs/architecture/services-and-dependency-injection.md#abstract-services - Extend
ValidateBody
from TypeStack to access the controller properties (issue: #752) (PR: #755).
Doc: https://github.com/FoalTS/foal/blob/master/docs/validation-and-sanitization.md#usage-with-a-hook
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
Dependencies
- @foal/swagger
v1.10.0
Not published. See v1.11.0.
v1.9.0
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 infoal g rest-api
(issue: #366) (PR: #716)
Contributors
v1.8.1
v1.8.0
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
extendsBaseEntity
(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
- @foal/jwks-rsa
- @foal/redis
v1.7.1
v1.7.0
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
- @foal/aws-s3
- @foal/cli
- @foal/core
- @foal/graphql
- @foal/jwks-rsa
v1.6.0
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
Dependencies
- @foal/cli
- @foal/core
- @foal/graphql
- @foal/mongodb
- @foal/swagger
v1.5.0
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 forSameSite
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
- @foal/mongodb