Releases: FoalTS/foal
Releases Β· FoalTS/foal
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
v1.4.0
There is no version v1.4.0. Please refer to version 1.5.0
v1.3.1
v1.3.0
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 tocreateapp
(PR: #554). - [CLI] Stop
createapp my-app
if the directorymy-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
- @foal/cli
- @foal/core
- @foal/ejs
- @foal/jwks-rsa
- @foal/jwt
- @foal/mongodb
- @foal/mongoose
- @types/[email protected]
- @foal/swagger