foal

Full-featured Node.js framework 🚀

MIT License

Downloads
33.1K
Stars
1.9K
Committers
64
foal -

Published by LoicPoullain over 2 years ago

Features

  • Add Websocket/Socket.io support (issue: #481) (PR: #901)
  • Allow to pass a custom redis client to the RedisStore (PR: #1032)
  • Allow to pass a custom MongoDB client to the MongDBStore (PR: #1032)
  • Allow to pass a custom TypeORM connection to the TypeORMStore (PR: #1032)
  • Support ServerSideEncryption for AWS S3 (issue: #1013) (PR: #1040)

Dependencies

foal -

Published by LoicPoullain almost 3 years ago

Fixes

  • Fix colors dependency version which causes bad output on Windows terminal (PR: #1023)

Contributors

@kingdun3284

foal -

Published by LoicPoullain almost 3 years ago

Bug fix

  • Fix bug introduced in v2.7.0 on HttpResponse["body"] (issue: #1009) (PR: #1010)
foal -

Published by LoicPoullain almost 3 years ago

Features

  • foal g hook and foal g entity support sub-directories (issue: #993) (PR: #994)
  • Support signed cookies (issue: #992) (PR: #996)
  • Make HttpResponse generic to type the body property (PR: #978)
  • Allow to use FOAL_ENV (instead of NODE_ENV) to define the environment name (issue: #1004) (PR: #1007)
  • Add a afterPreMiddlewares option to createApp (issue: #980) (PR: #1003)

Contributors

@MCluck90
@kingdun3284

foal -

Published by LoicPoullain about 3 years ago

Features

  • Support the array value of the AJV coerceTypes option (issue: #961).
  • Support more strict CSP for Swagger page (issue: #969) (PR: #970)
  • [Bug] [CLI] Support empty angular.json for connect cmd (issue: #982) (PR: #990)

Dependencies

foal -

Published by LoicPoullain over 3 years ago

Features

  • [CLI] npm run develop watches config files (issue: #945) (PR:#947)
  • createOpenApiDocument accepts an optional serviceManager (issue: #949) (PR: #950)
foal -

Published by LoicPoullain over 3 years ago

Features

  • Support Ajv $data option (issue: #920) (PR: #923)
  • [CLI] Simplify default create-user script (PR: #927)
  • [Bug] Fix renderError error (issue: #930) (PR: #931)
  • Add cache option to Disk.createHttpResponse (issue: #401) (PR: #938)

Contributors

@ZakRabe

foal -

Published by LoicPoullain over 3 years ago

Features

  • Support .env.local files for configuration (issue: #877) (PR: #899)
  • Support GraphiQL (issue: #439) (PR: #906).
  • Allow to access the service manager in fetchUser and add Prisma docs (issue: #856) (PR: #909).
  • Add streamToBuffer and convertBase64urlToBase64 functions (PR: #910)
  • [Social] Fix state bad URL characters (issue: #754) (PR: #911)

Dependencies

Contributors

  • @ognjenjevremovic
foal -

Published by LoicPoullain over 3 years ago

Bug fixes

  • [Social] Fix state bad URL characters (issue: #754) (PR: #912)
foal -

Published by LoicPoullain over 3 years ago

Features

  • [CLI] Prettify createapp and add spinner (PR: #875)
  • [CLI] Support sub-paths in generate rest-api (issue: #862) (PR: #878)
  • Know if the user is authenticated on the client side when using cookies (issue: #843) (PR: #886).
  • Prettify server output (PR: #885)

Dependencies

foal -

Published by LoicPoullain over 3 years ago

Fixes

  • [CLI] Ignore SQLite SHM and WAL files in .gitignore (files generated by better-sqlite3 since v2.1.1).
foal -

Published by LoicPoullain over 3 years ago

Features

Apologies for adding a new feature here (this does not strictly follow version semantic rules), but it was needed in order to fix a bug.

  • Support better-sqlite3 (issue: #870) (PR: #872)

Bug fixes

  • The 500 debug page has no scrollbar anymore.
  • Generating new projects with sqlite3 pkg was causing some errors depending on the version of python installed on the host. This kind of errors already happened in the past. To fix this, new projects use better-sqlite3 under the hood. The framework behavior (migrations, permissions, etc) is identical as if sqlite3 library were used. (PR: #872)
foal -

Published by LoicPoullain over 3 years ago

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 -

Published by LoicPoullain almost 4 years ago

Features / Fixes

Contributors

@JuanVqz

foal -

Published by LoicPoullain almost 4 years ago

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 ✅

  • PR: #802

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

Generated projects (foal createapp)

foal -

Published by LoicPoullain almost 4 years ago

  • Deprecate some components to prepare the migration to version 2.
foal -

Published by LoicPoullain almost 4 years ago

Features

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

Contributors

@jeredmasters

foal -

Published by LoicPoullain about 4 years ago

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

foal -

Published by LoicPoullain over 4 years ago

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 -

Published by LoicPoullain over 4 years ago

Not published. See v1.11.0.

Package Rankings
Top 1.86% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
backers
Related Projects