# Nodecaf CLI Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [v0.6.5] - 2024-09-12

### Added
- option to choose docker image variant used on init command

### Changed
- value description of `--config` option from init comand to better reflect available choices
- `.gitattributes` generated by init command to include a LF rule for generated binary files

## [v0.6.4] - 2023-11-08

### Fixed
- error "cannot find module" when running `init command`

## [v0.6.3] - 2023-09-11

### Changed
- `init` generated binary file to use newer `app.run()` interface

### Added
- new reload option to `run` that actually works even inside docker containers
- proper exception when trying to `run` an unsupported nodecaf version below 0.13.2
- default npm scripts to `init generated package.json
- nodecaf `version` seleciton to `init` command

### Fixed
- normally unused 'conf' variable from `init` generated main file shutdown function

## [v0.6.2] - 2022-06-08

### Changed
- internal behavior changed to use `app.run()` from the guest app

## [v0.6.1] - 2022-06-07

### Added
- `-v, --version` option to output currently installed CLI version

### Fixed
- program name shown in help output

### Changed
- support to nodecaf versions 0.13.x
- `init` to generate routes pattern instead of api builder

## [v0.6.0] - 2021-03-19

### Changed
- support to nodecaf versions 0.12.x

### Removed
- openapi feature

## [v0.5.0] - 2021-03-19

### Added
- `--mongo` to `init` for installing mongo dependency and generating init code
- `--redis` for `init` installing redis dependency and generating init code

### Fixed
- `init` file generation to write CRLF instead of LF

### Changed
- `init --conf` to install config dependencies of the given format

### Removed
- `init --conf` behavior of generating default config file and code

## [v0.4.2] - 2021-01-25

### Removed
- support for config reload

## [v0.4.1] - 2020-11-28

### Added
- support to Nodecaf v0.11.x interface

## [v0.4.0] - 2020-08-10

### Added
- support to Nodecaf v0.10.x interface

### Removed
- support to Nodecaf apps of v0.9.x and below

## [v0.3.0] - 2020-05-21

### Added

- automatic dependencies installation to `init` instead of asking the user to run `npm i`
- detailed output of the `init` process and generated/changed files
- generation of recommended `Dockerfile` to `init`
- generation of recommended `.eslintrc.yml` to `init`
- automatic initialization of a git repo to `init`
- generation of bare bones `.gitignore` and `.gitattributes` to `init`
- `--bare` option to skip generation of git files, Dockerfile and non-essential files
- automatic package.json generation on `init` instead of requiring it to exist

### Changed

- init command to require app name as the first positional argument
- init command to not exit when any target file already exists
- init command to reference conf file `--conf` in `main.js` using the new "default conf" pattern

### Fixed

- bug where package.json would loose all spacing upon `init`

### Removed

- init command `--name` flag in favor of required argument

## [v0.2.4] - 2020-04-27

### Fixed

- bug on help ocmmand inherited from dependency
- bug inherited from run module where run command wouldn't find correct app path

## [v0.2.3] - 2020-04-17

### Fixed

- bug on run command inherited from nodecaf run module

## [v0.2.2] - 2020-04-17

### Changed

- way commands are loaded internally for better performance

## [v0.2.1] - 2020-04-16

### Added

- bin flag to generate run bin file

### Changed

- init conf options to generate default instead of bin conf
- run command to use new nodecaf run module

## [v0.2.0] - 2020-04-08

### Added

- `run` command coming from main `nodecaf` repo to be used through command line
- `--delay` option on run command to wait milliseconds before starting the app

### Removed

- `run.js` binaries from files generated by `init` command
- `--no-optional` flag from installation line output on `init` command

## [v0.1.0] - 2019-07-26

- First officially published version.

[v0.1.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.1.0
[v0.2.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.2.0
[v0.2.1]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.2.1
[v0.2.2]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.2.2
[v0.2.3]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.2.3
[v0.2.4]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.2.4
[v0.3.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.3.0
[v0.4.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.4.0
[v0.4.1]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.4.1
[v0.4.2]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.4.2
[v0.5.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.5.0
[v0.6.0]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.0
[v0.6.1]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.1
[v0.6.2]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.2
[v0.6.3]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.3
[v0.6.4]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.4
[v0.6.5]: https://gitlab.com/GCSBOSS/nodecaf-cli/-/tags/v0.6.5
