Releases: FoalTS/foal
v0.6.0-beta.0
Goal: Create complex REST API.
- Rename
ISerializer
toIResourceCollection
andEntitySerializer
toEntityResourceCollection
(#170). - Change
IResourceCollection
interface (#172). - [@foal/cli] Make
User
entity andscripts/create-users
consistent (#176). - [REST] Support postgres and sqlite (#173).
- [REST] Support
PermissionDenied
andValidationError
inEntityCollection
s (#173). - [REST] Add
allowedOperations
,loadedRelations
andmiddlewares
inEntityResourceCollection
(#173). - [REST] Use
params.fields
inEntityResourceCollection
to restrict the returned representations (#173). - [REST] Let the client create several resources within one request (#173).
v0.6.0-alpha.4
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
- [@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
-
parsePassword
now expects a string instead of an object (#145). - Add
src/app/sub-modules
andsub-modules/
paths tofoal 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
andnpm run migration:run
(#152).
v0.6.0-alpha.1
-
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
toLoginRequired
(#139). -
Support graphql loading.
-
Remove Abstract prefix from EmailAuthenticator.
-
Move validate to @foal/core and remove @foal/ajv package.
-
Remove
combinePostHooks
andcombinePreHooks
(#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 expressrequest
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
andModelService
toISerializer
andEntitySerializer
(#140). -
Add
Permission
andGroup
entities (#140). -
Add
getPath
,getHookFunction
andgetHttpMethod
utils (#140). -
Allow to inject the ServiceManager inside a service or controller.
-
Simplify authentication (controller mostly) (#140).
-
Add
PermissionRequired
and removerestrictAccessToAdmin
(#140). -
Add "remove additionalProperties" feature (#140).
-
Move
templates/
tocontrollers/
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
Fix typo.
v0.5.0-alpha.2
-
@foal/cli
: Prevent image loading when requiring html templates.
v0.5.0-alpha.1.0
v0.5.0-alpha.1.0
v0.4.0-beta.4
- Rename
validateEmailCredentialsFormat
tovalidateEmailAndPasswordCredentialsFormat
. (#101).