Skip to content

Commit

Permalink
Deprecate bedrock-cli.exit event.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlehn committed Oct 6, 2023
1 parent fd5109c commit f231f49
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
### Added
- Add documentation for `bedrock.stop` and `bedrock.exit` events.

### Changed
- Deprecate undocumented `bedrock-cli.exit` event. Use `bedrock.exit`. If there
is use case for this specific event, please file an issue.

## 6.0.1 - 2022-04-29

### Fixed
Expand Down
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,7 @@ async function _exit(code) {
if(BEDROCK_STARTED) {
await events.emit('bedrock.stop');
}
// FIXME: deprecated in v6.x, remove in v7+
await events.emit('bedrock-cli.exit');
await events.emit('bedrock.exit');
}
Expand Down

0 comments on commit f231f49

Please sign in to comment.