CHANGELOG.md
# [4.2.0](https://github.com/ForestAdmin/lumber/compare/v4.1.10...v4.2.0) (2021-07-19)
### Features
* add deprecation warning to use forest cli instead ([#582](https://github.com/ForestAdmin/lumber/issues/582)) ([694f099](https://github.com/ForestAdmin/lumber/commit/694f099e3ec8e00a9f675d63c55369b9abba2b6e))
## [4.1.10](https://github.com/ForestAdmin/lumber/compare/v4.1.9...v4.1.10) (2021-06-23)
### Bug Fixes
* **mongoose:** wrap with quotes invalid js identifiers in sub documents properties ([#578](https://github.com/ForestAdmin/lumber/issues/578)) ([2342568](https://github.com/ForestAdmin/lumber/commit/23425685b852a881957540f66ea3a239aadd5c2e))
## [4.1.9](https://github.com/ForestAdmin/lumber/compare/v4.1.8...v4.1.9) (2021-06-17)
### Bug Fixes
* fix liana version check for lumber update command ([#574](https://github.com/ForestAdmin/lumber/issues/574)) ([497174c](https://github.com/ForestAdmin/lumber/commit/497174c47623f3b9ade73682b212e2ba03d73201))
## [4.1.8](https://github.com/ForestAdmin/lumber/compare/v4.1.7...v4.1.8) (2021-05-31)
### Bug Fixes
* express-jwt vulnerability ([#569](https://github.com/ForestAdmin/lumber/issues/569)) ([ebb5f0a](https://github.com/ForestAdmin/lumber/commit/ebb5f0a76956c1ed1eaf043448ce72893c062ed2))
## [4.1.7](https://github.com/ForestAdmin/lumber/compare/v4.1.6...v4.1.7) (2021-04-06)
### Bug Fixes
* **security:** patch xmldom dependency vulnerabilities ([#564](https://github.com/ForestAdmin/lumber/issues/564)) ([6ee5c7d](https://github.com/ForestAdmin/lumber/commit/6ee5c7d826174966f033b6204e59489100876712))
## [4.1.6](https://github.com/ForestAdmin/lumber/compare/v4.1.5...v4.1.6) (2021-04-06)
### Bug Fixes
* **security:** patch node-notifier dependency vulnerabilities ([#563](https://github.com/ForestAdmin/lumber/issues/563)) ([872a655](https://github.com/ForestAdmin/lumber/commit/872a655e293c792cf5c9ea97be1042a580c6dba3))
## [4.1.5](https://github.com/ForestAdmin/lumber/compare/v4.1.4...v4.1.5) (2021-04-06)
### Bug Fixes
* **security:** patch marked dependency vulnerabilities ([#562](https://github.com/ForestAdmin/lumber/issues/562)) ([089f473](https://github.com/ForestAdmin/lumber/commit/089f473a7fbe22eedd5821b3a01b7a23d92b4664))
## [4.1.4](https://github.com/ForestAdmin/lumber/compare/v4.1.3...v4.1.4) (2021-04-06)
### Bug Fixes
* **security:** patch axios dependency vulnerabilities ([#561](https://github.com/ForestAdmin/lumber/issues/561)) ([80e515a](https://github.com/ForestAdmin/lumber/commit/80e515aafbf130d7ac92c57b4f83c2a0d6c247d8))
## [4.1.3](https://github.com/ForestAdmin/lumber/compare/v4.1.2...v4.1.3) (2021-04-06)
### Bug Fixes
* **security:** patch ini dependency vulnerabilities ([#560](https://github.com/ForestAdmin/lumber/issues/560)) ([a7949b6](https://github.com/ForestAdmin/lumber/commit/a7949b6ec88905ba1c0bac9f48af315f4269aba7))
## [4.1.2](https://github.com/ForestAdmin/lumber/compare/v4.1.1...v4.1.2) (2021-04-06)
### Bug Fixes
* **security:** patch y18n dependency vulnerabilities ([1fd4177](https://github.com/ForestAdmin/lumber/commit/1fd41777a2a4eae0b220a9b50c728590c4aa8de4))
## [4.1.1](https://github.com/ForestAdmin/lumber/compare/v4.1.0...v4.1.1) (2021-04-01)
### Bug Fixes
* include APPLICATION_URL into the autogenerated docker-compose.yml file ([#558](https://github.com/ForestAdmin/lumber/issues/558)) ([74e9e83](https://github.com/ForestAdmin/lumber/commit/74e9e838b279aa417931384e500c36b672ec943e))
# [4.1.0](https://github.com/ForestAdmin/lumber/compare/v4.0.2...v4.1.0) (2021-03-29)
### Features
* **context:** accept all headers to transmit forest context url in each data request ([#555](https://github.com/ForestAdmin/lumber/issues/555)) ([148fb77](https://github.com/ForestAdmin/lumber/commit/148fb771bf8e03b1a7b166baaac35d6fde06bfaa))
## [4.0.2](https://github.com/ForestAdmin/lumber/compare/v4.0.1...v4.0.2) (2021-03-16)
### Bug Fixes
* **analyzer:** work around sequelize bugs on default values ([#554](https://github.com/ForestAdmin/lumber/issues/554)) ([ff90d38](https://github.com/ForestAdmin/lumber/commit/ff90d388e9a4b2c4142d93d2385a1882fc47fa53))
## [4.0.1](https://github.com/ForestAdmin/lumber/compare/v4.0.0...v4.0.1) (2021-03-01)
### Bug Fixes
* fix models import error on mongo model index ([#552](https://github.com/ForestAdmin/lumber/issues/552)) ([1df1f91](https://github.com/ForestAdmin/lumber/commit/1df1f91885dca0aa87edcf2fde72a03c0bdd4c13))
# [4.0.0](https://github.com/ForestAdmin/lumber/compare/v3.10.9...v4.0.0) (2021-02-23)
### Bug Fixes
* remove merge error ([aec7593](https://github.com/ForestAdmin/lumber/commit/aec75934045b8b0e9d608967a2f4ebea309f62aa))
### Features
* **update:** add lumber update command ([#527](https://github.com/ForestAdmin/lumber/issues/527)) ([d8f1eaf](https://github.com/ForestAdmin/lumber/commit/d8f1eafc952a74f6483bdc05661dbb2bcde59e3f))
* authenticate without entering a password ([#513](https://github.com/ForestAdmin/lumber/issues/513)) ([fe8d8c3](https://github.com/ForestAdmin/lumber/commit/fe8d8c3b0e1a45430a4b0a86a2f7e2b1a2f5d57a))
* ease multi-database setup by managing mongoose connection like sequelize ([#490](https://github.com/ForestAdmin/lumber/issues/490)) ([cf508cb](https://github.com/ForestAdmin/lumber/commit/cf508cb1f87a465c483086cec467494eb06e3df1))
### BREAKING CHANGES
* by default, the authentication process will redirect to a web page to validate a code.
# [4.0.0-beta.5](https://github.com/ForestAdmin/lumber/compare/v4.0.0-beta.4...v4.0.0-beta.5) (2021-02-22)
### Bug Fixes
* remove merge error ([aec7593](https://github.com/ForestAdmin/lumber/commit/aec75934045b8b0e9d608967a2f4ebea309f62aa))
* **view-list:** fix bad records count in view list if the record details access is forbidden ([#539](https://github.com/ForestAdmin/lumber/issues/539)) ([1f6f6c7](https://github.com/ForestAdmin/lumber/commit/1f6f6c7b491e33c7dd52d886a0ea7303d53b0bb6))
* fix tests for handle foreign key toward non primary key ([#537](https://github.com/ForestAdmin/lumber/issues/537)) ([0c2ee15](https://github.com/ForestAdmin/lumber/commit/0c2ee15bc2200de352b1af58eb5624c990c961c0))
* handle foreign key toward non primary key ([#525](https://github.com/ForestAdmin/lumber/issues/525)) ([e765af6](https://github.com/ForestAdmin/lumber/commit/e765af6e6943b4e05d800d08cb2560afd3d28ab0))
* incorrect FOREST_URL generated in docker-compose.yml ([#533](https://github.com/ForestAdmin/lumber/issues/533)) ([9d3bf95](https://github.com/ForestAdmin/lumber/commit/9d3bf951ae743082e8ad10525734b37af1643666))
* **models:** id primary keys on join tables are now considered and correctly added on generated models ([#524](https://github.com/ForestAdmin/lumber/issues/524)) ([50b25f8](https://github.com/ForestAdmin/lumber/commit/50b25f82d41d27c0b22ff2914720e470c24ad26b))
## [3.10.9](https://github.com/ForestAdmin/lumber/compare/v3.10.8...v3.10.9) (2021-02-10)
### Bug Fixes
* **view-list:** fix bad records count in view list if the record details access is forbidden ([#539](https://github.com/ForestAdmin/lumber/issues/539)) ([1f6f6c7](https://github.com/ForestAdmin/lumber/commit/1f6f6c7b491e33c7dd52d886a0ea7303d53b0bb6))
## [3.10.8](https://github.com/ForestAdmin/lumber/compare/v3.10.7...v3.10.8) (2021-01-13)
### Bug Fixes
* fix tests for handle foreign key toward non primary key ([#537](https://github.com/ForestAdmin/lumber/issues/537)) ([0c2ee15](https://github.com/ForestAdmin/lumber/commit/0c2ee15bc2200de352b1af58eb5624c990c961c0))
* handle foreign key toward non primary key ([#525](https://github.com/ForestAdmin/lumber/issues/525)) ([e765af6](https://github.com/ForestAdmin/lumber/commit/e765af6e6943b4e05d800d08cb2560afd3d28ab0))
# [4.0.0-beta.4](https://github.com/ForestAdmin/lumber/compare/v4.0.0-beta.3...v4.0.0-beta.4) (2021-01-12)
### Features
* **update:** add lumber update command ([#527](https://github.com/ForestAdmin/lumber/issues/527)) ([d8f1eaf](https://github.com/ForestAdmin/lumber/commit/d8f1eafc952a74f6483bdc05661dbb2bcde59e3f))
## [3.10.7](https://github.com/ForestAdmin/lumber/compare/v3.10.6...v3.10.7) (2021-01-07)
### Bug Fixes
* incorrect FOREST_URL generated in docker-compose.yml ([#533](https://github.com/ForestAdmin/lumber/issues/533)) ([9d3bf95](https://github.com/ForestAdmin/lumber/commit/9d3bf951ae743082e8ad10525734b37af1643666))
## [3.10.6](https://github.com/ForestAdmin/lumber/compare/v3.10.5...v3.10.6) (2021-01-06)
### Bug Fixes
* **models:** id primary keys on join tables are now considered and correctly added on generated models ([#524](https://github.com/ForestAdmin/lumber/issues/524)) ([50b25f8](https://github.com/ForestAdmin/lumber/commit/50b25f82d41d27c0b22ff2914720e470c24ad26b))
# [4.0.0-beta.3](https://github.com/ForestAdmin/lumber/compare/v4.0.0-beta.2...v4.0.0-beta.3) (2021-01-06)
### Features
* ease multi-database setup by managing mongoose connection like sequelize ([#490](https://github.com/ForestAdmin/lumber/issues/490)) ([cf508cb](https://github.com/ForestAdmin/lumber/commit/cf508cb1f87a465c483086cec467494eb06e3df1))
# [4.0.0-beta.2](https://github.com/ForestAdmin/lumber/compare/v4.0.0-beta.1...v4.0.0-beta.2) (2021-01-05)
### Bug Fixes
* **sequelize:** fix error when working with column table including parenthesis ([#520](https://github.com/ForestAdmin/lumber/issues/520)) ([79c041b](https://github.com/ForestAdmin/lumber/commit/79c041b8ca6a78db198e71a4b0ec1dbba224acbd))
## [3.10.5](https://github.com/ForestAdmin/lumber/compare/v3.10.4...v3.10.5) (2020-12-21)
### Bug Fixes
* **sequelize:** fix error when working with column table including parenthesis ([#520](https://github.com/ForestAdmin/lumber/issues/520)) ([79c041b](https://github.com/ForestAdmin/lumber/commit/79c041b8ca6a78db198e71a4b0ec1dbba224acbd))
# [4.0.0-beta.1](https://github.com/ForestAdmin/lumber/compare/v3.10.4...v4.0.0-beta.1) (2020-12-21)
### Features
* authenticate without entering a password ([#513](https://github.com/ForestAdmin/lumber/issues/513)) ([fe8d8c3](https://github.com/ForestAdmin/lumber/commit/fe8d8c3b0e1a45430a4b0a86a2f7e2b1a2f5d57a))
### BREAKING CHANGES
* by default, the authentication process will redirect to a web page to validate a code.
## [3.10.4](https://github.com/ForestAdmin/lumber/compare/v3.10.3...v3.10.4) (2020-12-01)
### Bug Fixes
* handle medium integer type ([#506](https://github.com/ForestAdmin/lumber/issues/506)) ([b145dd5](https://github.com/ForestAdmin/lumber/commit/b145dd56eadd1e7131c4ebe8a7a04d342534171c))
## [3.10.3](https://github.com/ForestAdmin/lumber/compare/v3.10.2...v3.10.3) (2020-11-27)
### Bug Fixes
* remove forest-express dependency in generated package.json ([#500](https://github.com/ForestAdmin/lumber/issues/500)) ([2a64ef8](https://github.com/ForestAdmin/lumber/commit/2a64ef8bc1dd2ac1170301e35fdabc6a79cc105e))
## [3.10.2](https://github.com/ForestAdmin/lumber/compare/v3.10.1...v3.10.2) (2020-11-26)
### Bug Fixes
* update mysql driver version ([#501](https://github.com/ForestAdmin/lumber/issues/501)) ([bf20a67](https://github.com/ForestAdmin/lumber/commit/bf20a67a263220dc378cd66e08a66045e93d8944))
## [3.10.1](https://github.com/ForestAdmin/lumber/compare/v3.10.0...v3.10.1) (2020-11-26)
### Bug Fixes
* **models:** properly set type for date only fields ([#496](https://github.com/ForestAdmin/lumber/issues/496)) ([09261d1](https://github.com/ForestAdmin/lumber/commit/09261d1cd9d7d3585d4fa32c20ac42a7f9d4ac7a))
# [3.10.0](https://github.com/ForestAdmin/lumber/compare/v3.9.1...v3.10.0) (2020-11-12)
### Features
* generate a new environment variable with the application's url ([#489](https://github.com/ForestAdmin/lumber/issues/489)) ([09c98c8](https://github.com/ForestAdmin/lumber/commit/09c98c8b59e911fc8a3eed84614746ed0fae55fa))
## [3.9.1](https://github.com/ForestAdmin/lumber/compare/v3.9.0...v3.9.1) (2020-11-09)
### Bug Fixes
* generate command could fail when analysing relations on MongoDB when having one or more views ([#485](https://github.com/ForestAdmin/lumber/issues/485)) ([517fe36](https://github.com/ForestAdmin/lumber/commit/517fe365a7a226667e0e76aed1bad74d304683a7))
# [3.9.0](https://github.com/ForestAdmin/lumber/compare/v3.8.0...v3.9.0) (2020-11-02)
### Features
* allow calls from redirections ([#484](https://github.com/ForestAdmin/lumber/issues/484)) ([adb723d](https://github.com/ForestAdmin/lumber/commit/adb723d4b6cb3742bcd594559133f2db60bd38a2))
# [3.8.0](https://github.com/ForestAdmin/lumber/compare/v3.7.2...v3.8.0) (2020-10-15)
### Features
* **security:** use env variables in docker-compose.yml ([#464](https://github.com/ForestAdmin/lumber/issues/464)) ([9674275](https://github.com/ForestAdmin/lumber/commit/96742758f518513b6c6848cce2cd5c5fc9489b9c))
## [3.7.2](https://github.com/ForestAdmin/lumber/compare/v3.7.1...v3.7.2) (2020-09-24)
### Bug Fixes
* fix rejectUnauthorized handling ([#474](https://github.com/ForestAdmin/lumber/issues/474)) ([9e91eb2](https://github.com/ForestAdmin/lumber/commit/9e91eb277b47ad9572360ab263b2e983b89480b0))
## [3.7.1](https://github.com/ForestAdmin/lumber/compare/v3.7.0...v3.7.1) (2020-09-23)
### Bug Fixes
* **generate:** fix association alias duplication ([#473](https://github.com/ForestAdmin/lumber/issues/473)) ([81766b8](https://github.com/ForestAdmin/lumber/commit/81766b8cd2a5c1b1bbc93e4bcd60b8d7902816aa))
# [3.7.0](https://github.com/ForestAdmin/lumber/compare/v3.6.11...v3.7.0) (2020-09-21)
### Features
* trust SSL certificate by default to ease users onboarding ([#472](https://github.com/ForestAdmin/lumber/issues/472)) ([2cf7e6b](https://github.com/ForestAdmin/lumber/commit/2cf7e6bcbe40e762fabf2f038e4e1188c509887f))
## [3.6.11](https://github.com/ForestAdmin/lumber/compare/v3.6.10...v3.6.11) (2020-09-17)
### Bug Fixes
* **models:** enforce string type for default value when 'NULL' ([#470](https://github.com/ForestAdmin/lumber/issues/470)) ([ae11674](https://github.com/ForestAdmin/lumber/commit/ae116742cc0d8c9c248240d4023acae585a0e2c3))
## [3.6.10](https://github.com/ForestAdmin/lumber/compare/v3.6.9...v3.6.10) (2020-09-16)
### Bug Fixes
* **models:** add missing association aliases ([#469](https://github.com/ForestAdmin/lumber/issues/469)) ([3114f84](https://github.com/ForestAdmin/lumber/commit/3114f845e70f987adf44574b3eb32fa97023f3f8))
## [3.6.9](https://github.com/ForestAdmin/lumber/compare/v3.6.8...v3.6.9) (2020-09-11)
### Bug Fixes
* **generate:** handle NOT NULL constraint ([#466](https://github.com/ForestAdmin/lumber/issues/466)) ([faace37](https://github.com/ForestAdmin/lumber/commit/faace37b023a2d0450389303f2a086cd5c544ef6))
## [3.6.8](https://github.com/ForestAdmin/lumber/compare/v3.6.7...v3.6.8) (2020-08-14)
### Bug Fixes
* postgres 12.2 support ([#461](https://github.com/ForestAdmin/lumber/issues/461)) ([8c905b2](https://github.com/ForestAdmin/lumber/commit/8c905b22a84cc3f648c3e9d49936810ae5a3f4ec))
## [3.6.7](https://github.com/ForestAdmin/lumber/compare/v3.6.6...v3.6.7) (2020-08-11)
### Bug Fixes
* **vulnerability:** remove potential vulnerability upgrading lodash dependency version ([#453](https://github.com/ForestAdmin/lumber/issues/453)) ([92d165c](https://github.com/ForestAdmin/lumber/commit/92d165c85619c04228b84174cb5b18b23f6bba95))
## [3.6.6](https://github.com/ForestAdmin/lumber/compare/v3.6.5...v3.6.6) (2020-08-03)
### Bug Fixes
* suggest to reach help in the discourse community instead of Slack ([#456](https://github.com/ForestAdmin/lumber/issues/456)) ([1bbba8c](https://github.com/ForestAdmin/lumber/commit/1bbba8c5aa4bfccde5a2be76f9824cc1b1816dc3))
## [3.6.5](https://github.com/ForestAdmin/lumber/compare/v3.6.4...v3.6.5) (2020-07-30)
### Bug Fixes
* :bug: generate agents that return JSON errors ([#455](https://github.com/ForestAdmin/lumber/issues/455)) ([79ae6e6](https://github.com/ForestAdmin/lumber/commit/79ae6e676dfbd6e146d71c10f3ddc0e143dafbe0))
## [3.6.4](https://github.com/ForestAdmin/lumber/compare/v3.6.3...v3.6.4) (2020-07-13)
### Bug Fixes
* **vulnerabilities:** bump 2 dependencies of dependencies ([#451](https://github.com/ForestAdmin/lumber/issues/451)) ([a81298a](https://github.com/ForestAdmin/lumber/commit/a81298ae0dce3be7dabac7e36cb33fb8147b3152))
## [3.6.3](https://github.com/ForestAdmin/lumber/compare/v3.6.2...v3.6.3) (2020-07-13)
### Bug Fixes
* **dumper:** fix issue where project using nodejs v14 could never connect to postgres database ([#450](https://github.com/ForestAdmin/lumber/issues/450)) ([954ad30](https://github.com/ForestAdmin/lumber/commit/954ad30fe04ecd0b3f55cbcccadc9f16b83026ac))
## [3.6.2](https://github.com/ForestAdmin/lumber/compare/v3.6.1...v3.6.2) (2020-07-08)
### Bug Fixes
* model generation inconsistencies ([#445](https://github.com/ForestAdmin/lumber/issues/445)) ([7df5fbe](https://github.com/ForestAdmin/lumber/commit/7df5fbe6e6fb008b5521ceba6762ba9600400c39))
## [3.6.1](https://github.com/ForestAdmin/lumber/compare/v3.6.0...v3.6.1) (2020-07-07)
### Bug Fixes
* **command generate:** fix generation of project with postgres on node 14.4 ([#446](https://github.com/ForestAdmin/lumber/issues/446)) ([9a307b3](https://github.com/ForestAdmin/lumber/commit/9a307b3bf1b532f19a2f06d5cdf2abd6921b01e6))
# [3.6.0](https://github.com/ForestAdmin/lumber/compare/v3.5.6...v3.6.0) (2020-05-25)
### Features
* **command-generate:** support 'JSON' field type on installation ([8cf952c](https://github.com/ForestAdmin/lumber/commit/8cf952cb4316a0d48667410bd318351c98419343))
## [3.5.6](https://github.com/ForestAdmin/lumber/compare/v3.5.5...v3.5.6) (2020-05-15)
### Bug Fixes
* **command generate:** fix an error on mssql database analysis with case sensitive collation ([#432](https://github.com/ForestAdmin/lumber/issues/432)) ([6520ab1](https://github.com/ForestAdmin/lumber/commit/6520ab1687883f8bd9bd9f2e55917c9d8f6d952c))
## [3.5.5](https://github.com/ForestAdmin/lumber/compare/v3.5.4...v3.5.5) (2020-05-12)
### Bug Fixes
* **generate:** default configuration now works for users using Linux and a local database ([#429](https://github.com/ForestAdmin/lumber/issues/429)) ([176ebcf](https://github.com/ForestAdmin/lumber/commit/176ebcfceaa54e5c7a6a4def168b16bcea39cb9c))
## [3.5.4](https://github.com/ForestAdmin/lumber/compare/v3.5.3...v3.5.4) (2020-05-11)
### Bug Fixes
* **security:** patch newly detected vulnerabilities ([#431](https://github.com/ForestAdmin/lumber/issues/431)) ([724a6a9](https://github.com/ForestAdmin/lumber/commit/724a6a9709059b65023c0453d59218595c17ee5d))
## RELEASE 3.5.3 - 2020-05-11
### Changed
- Technical - Add a Pull Requests template.
- Technical - Remove CI configuration warnings.
- Technical - Remove useless CI webhook.
- Technical - Move `to-valid-package-name` test to correct folder.
- Readme - Update the community badge for Discourse.
## RELEASE 3.5.2 - 2020-04-29
### Changed
- Technical - Introduce conventional commits.
- Technical - Make the CI lint the commit messages.
- Technical - Adapt release manager to conventional commits.
- Documentation - Update links in readme.
### Fixed
- Command Generate - Prevent files' content from being HTML escaped.
## RELEASE 3.5.1 - 2020-04-06
### Fixed
- Command Generate - Remove extraneous calls to Sequelize.literal in generated models.
- Command Generate - Fix issue where a conflict between regular fields and references alias could prevent the server from starting. 🛡
## RELEASE 3.5.0 - 2020-03-25
### Changed
- Technical - Remove 5Â unused dependencies (`expand-home-dir`, `import-from`, `jsonwebtoken`, `minimist`, `winston`).
### Fixed
- Documentation - Update documentation links to v6.
- Technical - Do not lint `test-expected` files.
- Command Generate - Prevent error when table name is a JS reserved word.
## RELEASE 3.4.0 - 2020-03-23
### Added
- Command Generate - Add support for MySQL 8.
- Initialisation - Allow asynchronous middlewares (ie. Liana.init).
- Command Generate - Add "delete a list of …" in generated route file.
### Changed
- Tests - Use MySQL 8.0 as the max supported MySQL version.
- Technical - Set the latest `forest-express` dependencies version (6.0) while generating a project.
### Fixed
- Command Generate - Fix error on project generation with database contain table with number as name.
- Command Generate - Fix allowed origin to only allow forestadmin domain and not domain finishing by forestadmin.
- Command Generate - Fix error on project generation when tables have references on table with non safe name.
- Security - Upgrade `acorn` dependencies to patch vulnerabilities.
## RELEASE 3.3.3 - 2020-01-23
### Changed
- Technical - Use handlebars for all templates.
- Technical - Remove a useless template about the removed `update` command.
- Technical - Remove a useless `gitkeep` file template.
### Fixed
- Models - Fix error in mongoose projects preventing models from being exported.
## RELEASE 3.3.2 - 2020-01-16
### Fixed
- Command Generate - Fix error on array type generation for PostgreSQL. 🛡
## RELEASE 3.3.1 - 2020-01-14
### Added
- Technical - Test on SQLServer 2017 and 2019.
- Technical - Test on postgres from 9.4 to 12.1.
### Changed
- Technical - Reduce code complexity removing all SonarJS errors.
- Technical - Refactor docker services and containers names.
### Fixed
- Command Generate - Do not generate obsolete `bin` path.
- Command Generate - Validate and fix the package name in `package.json` to prevent error on generated server startup.
- Command Generate - Fix schema retrieval request with MySQL 5.6
## RELEASE 3.3.0 - 2020-01-06
### Added
- Command Generate - Generate MongoDB nested objects and subDocuments.
### Changed
- Technical - Reorganize test utils/fixtures/expect folders.
- Technical - Set the latest `forest-express` dependencies version while generating a project.
- Technical - Reorder in alphabetical order `options` inside `db-analysis-output`.
- Command Generate - Now generate many to many relationships when we detect a table with 2 foreign keys and optionally technical timestamps.
### Fixed
- Technical - Fix test expect files extensions.
- Command Generate - Do not declare the "id" field on tables having a `BIGINT` "id" column as primary key. 🛡
## RELEASE 3.2.0 - 2019-12-31
### Added
- Readme - Add the test coverage badge.
- Technical - Add SonarJS linter for complexity issues.
### Changed
- Technical - Do not lint uncommitted files.
- Command Generate - Ensure that generated project on MongoDB use the latest `mongoose` dependency version for security reasons.
- Technical - Use Jest instead of Mocha for the test base.
- Command Generate - Use `alpine` as lighter base node Docker image for generated projects.
### Fixed
- Technical - Fix the missing dependencies in the `package.json` file of the generated project.
- Technical - Fix the NPM package description.
- Command Generate - Prevent project creation with impossible liana login (if the database contains a "sessions" table).
## RELEASE 3.1.0 - 2019-12-20
### Added
- Command Generate - Generate MongoDB HasMany.
- Technical - Add tests on MSSQL databases.
- Command Generate - Detect hasOne, hasMany and belongsToMany SQL relationships.
### Changed
- Templates - Replace unconventional `bin/www` script with `server.txt`.
- Technical - Replace `package-lock.json` by `yarn.lock`.
- Technical - Use Yarn instead of NPMÂ in the CI.
- Technical - Rename `.env.example` file.
- Technical - Upgrade ESLint rules.
- SQLite support - Remove last bits of SQLite related code.
- Technical - Improve test code to make synchronous Sequelize connection close.
- Authentication - Updated warning message when the email is not well formatted.
- Command Generate - Remove the broken `no-db` option.
- Technical - Improve tests consistency.
- Technical - Make the tests fast locally without CI test failures.
- Technical - Add more tests consistency.
- Technical - Reorganize analysis services.
- Technical - Add more tests on the dumper service.
- Technical - Add tests on the table constraints getter service.
- Command Generate - Better detection of belongsTo relationship based on foreign keys that also are primary keys.
- Technical - Use handlebars to generate models.
### Fixed
- MySQL - Handle BIT(1) boolean columns and handle the buffer<01> value returned on join queries.
- Technical - Fix unexpected test errors while running in the CI.
- Technical - Fix database connection pool issue on tests.
- Technical - Fix pre-commit hook when deleting a file.
- Custom Domain - Fix the CORS middleware to take CORS env variables into account.
- Technical - Fix bad database connection url for some PostgreSQL tests.
- Fields Detection - Fix MySQL and MSSQL boolean columns default values generated in models files.
- Command Generate - Fix indentation (from 4 to 2 spaces) in collection files.
- Command Generate - Remove an unused dependency in "forestadmin" middleware.
## RELEASE 3.0.1 - 2019-11-20
### Fixed
- Docker - Fix the docker-compose containerName when project name contains whitespaces.
- Technical - Ease the installation of docker for forest employees.
## RELEASE 3.0.0 - 2019-11-20
### Added
- Server - Add server logs on generated projects.
### Fixed
- Command Generate - Fix smart routes for models composed of multiple words.
- Technical - Drop `APPLICATION_HOST` in `.env` as it was useless.
## RELEASE 3.0.0-beta.0 - 2019-11-19
### Added
- Node version - Define supported node versions (10 and 12) in `package.json`.
- Command generate - Add comments to generated models.
- Command Generate - Generate the forest collection files.
- Command Generate - Add tests on model generation (MySQL and PostgreSQL).
- Command Generate - Add logs about what is happening.
- Technical - Refactor and add tests on prompter.
- Command Generate - Generate the forest routes to ease the use of `smart routes`.
### Changed
- Technical - Remove unused ENCRYPT env variable.
- Security - Prevent remote environments creation with HTTP protocol.
- Commands - Remove command run and install.
- Command Generate - Install Forest Admin middleware.
- Logs - Improve the wording for several existing logs.
- Command Generate - Normalize the filenames.
- Command Generate - Update version of liana.
### Fixed
- Command Login - Disable account creation.
- Command Login - Check token validity before login.
- Command Generate - Prompt for password/token just after the other prompts.
- Command Generate - Remove extra newline at the end of model file on mongoose.
- Technical - Fix tests on dumper.
## RELEASE 2.7.3 - 2019-11-07
- Technical - Fix installation issue on Windows (moving `git-hook`/`simple-git` to devDependencies).
## RELEASE 2.7.2 - 2019-11-07
### Fixed
- Technical - Try to fix installation issue on Windows (removing git hooks from npm package).
## RELEASE 2.7.1 - 2019-11-06
### Fixed
- MSSQL - Fix connection issue using the ssl option.
## RELEASE 2.7.0 - 2019-11-06
### Added
- Field Types - Support `TIMESTAMP(n)`, `SMALLINT(n)` and `BIGINT(n)` column types (MySQL)
- Command Generate - Generate MongoDB belongsTo.
### Changed
- Commands - Drop environment variables.
## RELEASE 2.6.3 - 2019-11-04
### Fixed
- Command Generate - Fix generation of project with a mongo database.
## RELEASE 2.6.2 - 2019-10-31
### Fixed
- Technical - Update `package-lock.json` (was not up to date since last release).
## RELEASE 2.6.1 - 2019-10-30
### Fixed
- Command Generate - Fix install on mssql when there is two tables with the same name in different schemas.
## RELEASE 2.6.0 - 2019-10-29
### Added
- Technical - Add EOF empty line lint rule.
- MongoDB - Enhance authentication mechanism using optional `salsprep` library.
### Changed
- Docker - Use lumber options in `Dockerfile`.
### Fixed
- Technical - Fix repository in `package.json`.
## RELEASE 2.5.2 - 2019-10-25
### Changed
- Docker - Fix lumber version in `Dockerfile`.
- Technical - Split database analysis logic in 2 separated files (MongoDB and Sequelize).
### Fixed
- Command Generate - Fixed error when analyzing MongoDB views.
- Security - Upgrade `lodash` dependencies to patch vulnerabilities.
- Security - Upgrade `eslint` dependency to patch vulnerabilities.
- Security - Use Sequelize replacements to avoid SQL injections.
- Command Generate - Fix foreign key imports using connection URL with MySQL.
- NPM Publish - Do not send local environment variables on package publish.
- NPM Publish - Remove Github templates from the published packages.
- Command Generate - Fix MySQL connection failure without SSL.
## RELEASE 2.5.1 - 2019-10-18
### Changed
- Command Generate - Give models a unique pascal-cased name when generating sequelize model files.
- Continuous Integration - Change `11.14` version of `node_js` to `lts/*` in `.travis.yml`.
- Command Update - Remove command update.
### Fixed
- MSSQL - Prevent potential bad database connection using upgrading an old version of `tedious` dependency.
- Command Generate - Catch correctly authentication error on mongodb.
- Command Generate - Catch correctly empty collections on mongodb.
## RELEASE 2.5.0 - 2019-10-15
### Added
- Command Generate - Add "Application port" parameter (`-p, --application-port`) to `lumber generate`.
- Command Generate - Add "Application host" parameter (`-H, --application-host`) to `lumber generate`.
- Command Generate - Add "SSL" parameter (`-S, --ssl`) to `lumber generate`.
- Command generate - Add "Schema" parameter (`-s, --schema`) to `lumber generate`.
- Command generate - Add parameters documentation to `lumber install`.
- Commands - Add deprecation warning for environment variables usage.
### Changed
- Generate command - Rename APP_NAME to APPLICATION_NAME for consistency. The old name remains supported.
- Technical - Change `no-multiple-empty-lines` ESLint rule. Disallow two and more consecutive empty lines.
### Fixed
- Technical - Fix dependencies in `package-lock.json`.
- Command Generate - Fix projects generation based on MySQL connections. (Regression introduced in v2.4.1).
- Command Generate - Remove schema prompt for MySQL.
## RELEASE 2.4.1 - 2019-10-11
### Added
- Onboarding - Add error handling to have feedback on forestadmin.
### Changed
- Dependencies - Remove obsolete `mysql` dependency.
### Fixed
- Command Generate - Avoid foreignKey to conflict with relationship.
- Command Generate - Fix creation of project containing whitespaces.
- Records Update - Fix `TINYINT` column update when declared as a `BOOLEAN` field in the ORM model.
- Technical - Fix Github repository language.
- Generate command - Generate field with type "TIME WITHOUT TIME ZONE".
- Command Generate - Remove schema prompt with MongoDB connection URL.
## RELEASE 2.4.0 - 2019-09-20
### Changed
- Generate command - Change default application port to prevent conflicts.
## RELEASE 2.3.15 - 2019-09-20
### Added
- Technical - A Release now also automatically publish the release note to Slack.
### Changed
- Generate command - Improve logs of non automatically handled type.
- Generate command - Remove some logs to avoid confusion.
- Install command - Remove logs about type not handled to avoid confusion.
### Fixed
- Column Types - Do not detect SQL "Point" type and convert them as "INTEGER" anymore.
- Technical - Upgrade sequelize version to avoid sql injection.
## RELEASE 2.3.14 - 2019-09-12
### Fixed
- Mongodb - Lumber now supports Mongodb v4.2.0.
## RELEASE 2.3.13 - 2019-09-11
### Fixed
- Generate command - Make the command fail immediately if the project name entered corresponds to a directory present in the current directory (instead of failing after all the prompt questions...).
- Generate command - Fix MongoDB models creation.
## RELEASE 2.3.12 - 2019-09-11
### Changed
- Technical - Remove old tests dependencies.
### Fixed
- Schema Option - Ask for the database schema option if a connectionUrl option is set.
- MongodbSrv Option - Ask for the MongodbSrv option if a connectionUrl option is set with a mongodb dialect.
- Security - Upgrade `lodash` dependencies to patch vulnerabilities.
## RELEASE 2.3.11 - 2019-09-10
### Added
- Technical - Setup a minimal tests configuration.
- Technical - Setup a minimal CI configuration.
- Readme - Add a CI badge in the README.md file.
### Fixed
- Command Generate - Fix generation of project with no database.
- Deployments - Ensure that a deployment on Heroku works well. 🛡
## RELEASE 2.3.10 - 2019-09-05
### Fixed
- Command Generate - Fix generation of targetKey.
## RELEASE 2.3.9 - 2019-08-29
### Fixed
- Command Generate - Fix install of lumber-forestadmin when using mysql with no schema.
## RELEASE 2.3.8 - 2019-08-29
### Fixed
- Command Generate - Add support for `INET` and `DOUBLE` types.
- Command Generate - Add support for `TIME` type.
## RELEASE 2.3.7 - 2019-08-28
### Fixed
- Command Generate - Fix generation of field when table is underscored and field contains digits.
## RELEASE 2.3.6 - 2019-08-27
### Fixed
- Command Generate - Fix underscored true not set when it should.
## RELEASE 2.3.5 - 2019-08-26
### Fixed
- Release - Fix previous broken release.
## RELEASE 2.3.4 - 2019-08-26
### Fixed
- Command Update - Use SSLÂ for database connections configured with SSL on `lumber update` commands.
## RELEASE 2.3.3 - 2019-08-22
### Changed
- Technical - Add `yarn.lock` to `.gitignore`
### Fixed
- Command Generate - Fix application host/port usage when using a connection url or Docker.
- Models - Prevent bad Sequelize model generation if origin table does not contain `id` column nor primary keys.
## RELEASE 2.3.2 - 2019-08-14
### Added
- Readme - Add a badge for the NPMÂ package version.
### Changed
- Technical - Factorize duplicated code.
- Command Generate - Normalize the fields name on generate inside models.
- Command Generate - Create better naming of belongsTo relationships.
- Command Generate - Improve visibility on type ENUM with one line per value.
- Readme - Improve the community section.
- Readme - Remove the Licence section as it it not the right one and it is already accessible in the Github page header.
### Fixed
- Command Generate - Fix package name.
- Command Generate - Remove trailing spaces in `.env`.
- Technical - Apply ESLint rules to `database-analyzer`.
- Command Generate - Do not duplicate `createdAt` and `updatedAt` if not named as camelCase in database.
- Command Generate - Fix generation of field with type array.
- Command Generate - Prevent internal errors for Mongoose databases having collections without name.
- Command Generate - Fix generation of relationship if foreign key is unconventional.
- Command Generate - Declare table as underscored only if all fields respect the convention.
## RELEASE 2.3.1 - 2019-08-05
### Fixed
- Command Update - Fix update with custom database schema.
- Command Install - Fix install with custom database schema.
## RELEASE 2.3.0 - 2019-08-02
### Added
- Default Values - Define fields with their default value.
- Fields - Support Float types.
### Changed
- Technical - Rename the database analyzer service.
- Technical - Rename the database connection service.
- Technical - Split the database analyzer into several services.
### Fixed
- Models - Fix models template to prevent useless newlines.
- Models - Fix missing "id" field definitions for fields that are not both of integer type and primary.
- Models - Remove some trailing spaces in generated models.
## RELEASE 2.2.4 - 2019-07-25
### Added
- Technical - Add an issue template to have better context for submitted issues.
### Fixed
- Command Generate - Fix generate on database with a custom schema.
## RELEASE 2.2.3 - 2019-07-16
### Fixed
- Docker - Fix missing port in Docker files if generated using Docker.
## RELEASE 2.2.2 - 2019-07-15
### Changed
- Build - Reduce package size removing assets folder from it (fix previous trial).
## RELEASE 2.2.1 - 2019-07-15
### Changed
- Build - Reduce package size removing assets folder from it.
## RELEASE 2.2.0 - 2019-07-15
### Changed
- Code Style - Apply code conventions.
- Command Generate - Stop asking for a port for the generated server and use "3000" as default value.
- Environment variables - Expose all existing environment variables on server creation to educate users.
- Install - Make `npm install` command silent to prevent useless logs.
- Code Style - Rename some variables in `services/db.js`.
### Fixed
- Prompt - Display consistent spacing across questions.
- Readme - Fix the readme according to the new behaviour.
- Generate - Fix custom application host and port on ForestAdmin project generation.
- Generate - Users using the connection option can now choose a SSLÂ database connection.
- MongoDB - Fix the generate command for MongoDB SRV database urls.
## RELEASE 2.1.4 - 2019-07-04
### Fixed
- Onboarding - Fix the `lumber generate` command (Regression introduced in v2.1.3).
## RELEASE 2.1.3 - 2019-07-03
### Fixed
- Command Generate - Fix dependencies `pg` when using `DATABASE_URL`.
- Technical - Add `FOREST_URL` for easier development.
## RELEASE 2.1.2 - 2019-07-02
### Fixed
- Command Generate - Fix package.json in app name contains whitespaces.
- Command Install - Fix `SSL_DATABASE` parsing.
- Command Install - Fix install with mongodb.
## RELEASE 2.1.1 - 2019-06-27
### Fixed
- Command Install - Add environment variable HOSTNAME.
## RELEASE 2.1.0 - 2019-06-26
### Fixed
- Command Generate - Upgrade sequelize version to avoid vulnerabilities.
- Command Install - Fix install with ssl.
- Command Generate - Use `SSL_DATABASE` instead of `DATABASE_SSL` for generating a project.
## RELEASE 2.0.9 - 2019-06-05
### Changed
- Welcome middleware - Change the design of the welcome plugin.
## RELEASE 2.0.6 - 2019-05-15
### Changed
- Docker - Install the lumber-cli NPM package in the container.
## RELEASE 2.0.5 - 2019-05-15
### Changed
- Docker - Remove the lumber-forestadmin stuff from the Dockerfile.
- Welcome middleware - Change the design of the welcome plugin.
## RELEASE 2.0.4 - 2019-05-13
### Changed
- Docker - Create an image to run the generate command + install the lumber-forestadmin plugin.
## RELEASE 2.0.3 - 2019-05-09
### Changed
- Command Generate - Rename all env vars to avoid the prompt.
## RELEASE 2.0.2 - 2019-05-07
### Fixed
- Command Generate - Ask for the database hostname when not using -c option.
## RELEASE 2.0.1 - 2019-05-06
### Changed
- Docker - Remove docker instruction for now.
## RELEASE 2.0.0 - 2019-05-02
### Changed
- Loose coupling - Use Lumber as a backend generator that leverages a set of plugins.
## RELEASE 1.14.3 - 2019-04-09
### Added
- Tools - Add a deploy script.
- Tools - Add Docker build files.
- Command Update - Add the new FOREST_DB_DIALECT environment variable to be able to configure project fastly.
- Command Generate - Ensure the user is logged in before executing the generate command.
### Changed
- Technical - Rename environment variable SERVER_HOST to FOREST_URL.
- Opn - Completely remove the opn NPM package.
- Dependencies - Fix vulnaribilities by upgrading the dependencies in the package.json.
- Command Generate - Make the projectName argument mandatory from the command line args.
- Command Login - Make the email argument mandatory from the command line args.
- Prompt - Improve the display of success/info/error command responses.
- Wording - Improve the readability of some prompt responses.
- Wording - Replace all existing mentions of "back office" by "admin panel" or "admin panel API".
- Improvement - Reduce the number of http requests to init the project.
### Fixed
- Command Update - Fix the ssl environment variable.
- Command Generate - Fix the connection url option.
- Command Generate - Fix the models/index.js file creation when using the -c option.
- Command Generate - Ensure project creation works when the project name already exists without being initialized.
- SSL options - Convert the value to lowercase to ensure the option is correctly parsed.
## Release 1.14.2
### Fixed
- Command Generate - Avoid to crash if there's a conflict on the project name.
## Release 1.14.2
### Fixed
- Command Generate - Avoid to crash if there's a conflict on the project name.
## Release 1.14.1
### Fixed
- Command Update - Add the 'ssl' prompt option.
## Release 1.14.0
### Fixed
- Inquirer - Upgrade inquirer to 6.2.0 for Win 10 support.
## Release 1.13.3
### Changed
- MongoDB - Limit the mapReduce to 100 items to prevent very long query.
- MongoDB - Force the right collection name to use in the models' definition.
## Release 1.13.2
### Added
- MongoDB - Support SRV connection string.
- MongoDB - Catch the CMD_NOT_ALLOWED: mapreduce error throw by MongoDB Atlas' free plan.
## Release 1.13.1
### Changed
- SQLite Support - Remove the SQLite support because node-sqlite3 breaks on each new Node version.
## Release 1.13.0
- Deploy - Change the documentation link.
- MongoDB Support - Support MongoDB database.
## Release 1.12.0
### Added
- SQLite Support - Re-enable the support of SQLite.
### Changed
- Error handling - Catch properly the error when DATABASE_URL does not exist.
## Release 1.11.1
### Changed
- Dependency - Upgrade dotenv.
### Fixed
- Command Update - Improve the regexp to detect model and existing fields.
## Release 1.11.0
### Changed
- On-boarding - Improve the on-boarding experience.
## Release 1.10.3
### Fixed
- Command Update - Fix `lumber update` command execution.
## Release 1.10.0
### Changed
- MySQL & PostgreSQL - Detect enum type for model generation.
- Technical - Use the "official" domain for the default server host.
## Release 1.9.0
### Changed
- Security - Set a stronger password policy.
### Fixed
- Dependency - Add the package expand-home-dir.
### Added
- SQLite Support - Support SQLite databases.
- Field Types - Support 'TIMESTAMP' column type (MySQL).
- MSSQL Support - Support Lumber generation on a MSSQL database hosted on Windows Azure.
- MSSQL Support - Support new database types (MONEY, NTEXT, NVARCHAR).
- Connection errors - Display the error stack trace to help users understand why the connection to the database failed.
### Fixed
- MSSQL Support - BIT types are now detected as Boolean instead of Number.
- Warnings - Remove a potential console deprecation warning.