Skip to content

Commit

Permalink
feat(prompt): Remove ambiguous exports
Browse files Browse the repository at this point in the history
BREAKING CHANGE: The ambiguous 'confirm', 'select', and 'input' exports have been removed. Please use the renamed exports 'promptConfirmation', 'promptSelectOne', and 'promptTextInput' (respectively).
  • Loading branch information
evocateur committed Dec 11, 2020
1 parent 4acff59 commit 42ab453
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
6 changes: 0 additions & 6 deletions commands/__mocks__/@lerna/prompt.js
Expand Up @@ -19,10 +19,6 @@ exports.promptConfirmation = mockConfirm;
exports.promptSelectOne = mockSelect;
exports.promptTextInput = mockInput;

exports.confirm = mockConfirm;
exports.select = mockSelect;
exports.input = mockInput;

const semverIndex = new Map(
[
"patch",
Expand All @@ -39,5 +35,3 @@ const semverIndex = new Map(
mockSelect.chooseBump = (keyword) => {
choiceIndices.push(semverIndex.get(keyword));
};

exports.mockChoices = mockSelect.chooseBump;
7 changes: 0 additions & 7 deletions core/prompt/index.js
Expand Up @@ -7,13 +7,6 @@ exports.promptConfirmation = promptConfirmation;
exports.promptSelectOne = promptSelectOne;
exports.promptTextInput = promptTextInput;

/** @deprecated */
exports.confirm = exports.promptConfirmation;
/** @deprecated */
exports.select = exports.promptSelectOne;
/** @deprecated */
exports.input = exports.promptTextInput;

/**
* Prompt for confirmation
* @param {string} message
Expand Down

0 comments on commit 42ab453

Please sign in to comment.