chore!: upgrade @oclif/core to v4 and update plugin development docs #648
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #647
This pull request includes multiple updates to dependencies, code refactoring, and test improvements. The most significant changes involve upgrading the
@oclif/core
dependency to version 4, replacing deprecated methods, and improving test assertions for better compatibility and readability.Dependency Updates:
@oclif/core
from version^1.16.0
to^4.3.3
inpackage.json
to use the latest features and improvements.Code Refactoring:
oclifFlags
withFlags
from the updated@oclif/core
package insrc/commands/debugger/logs/list.js
and updated flag definitions to useFlags.string
instead ofoclifFlags.string
oroclifFlags.enum
.flags.enum
toflags.string
for several flag definitions insrc/commands/phone-numbers/update.js
to align with the updated@oclif/core
API.compact
import from@oclif/core/lib/config/util
and replaced its usage with a direct.filter(Boolean)
call insrc/services/twilio-help/twilio-command-help.js
.Test Improvements:
test/hooks/init/buy-phone-number.test.js
andtest/hooks/init/twilio-api.test.js
to use optional chaining (?.
) and fallback values for better compatibility with undefined properties.trimRight
method withtrimEnd
in test filestest/services/twilio-help/twilio-help-doc.test.js
andtest/services/twilio-help/twilio-help.test.js
for consistency and modern syntax.Checklist
If you have questions, please file a support ticket, or create a GitHub Issue in this repository.