Closed lambdalisue closed 10 months ago
The changes across the codebase reflect a significant refactoring effort, focusing on simplifying function signatures, updating dependencies, and enhancing type safety. Deprecated functionalities have been removed, and there's a shift towards using promises and type guards. The updates also include performance logging enhancements and a move towards stricter version control in imports.
File Path | Change Summary |
---|---|
autoload/denops/plugin.vim |
Simplified function signatures for denops#plugin#... functions, removed s:options and s:trace . |
denops/@denops-private/cli.ts |
Updated imports, replaced parse with parseArgs , added ensure and isMeta , and changed logging from console.log to console.warn . |
denops/@denops-private/error.ts |
Updated is function import to a newer version. |
denops/@denops-private/host/... |
Updated imports, modified method signatures and return types, added type guards, and removed deprecated functions. |
denops/@denops-private/impl.ts |
Added ensure and is , introduced isBatchReturn , and modified functions to return promises or direct results. |
denops/@denops-private/impl_test.ts |
Updated dependency versions and added new test step for denops.redraw() . |
denops/@denops-private/service.ts |
Updated dependencies, modified constructor and methods to remove deprecated parameters, and introduced disposePlugin . |
denops/@denops-private/util.ts |
Added new module with isMeta predicate function and updated imports. |
denops/@denops-private/version.ts |
Updated path and semver module versions. |
denops/@denops-private/worker/script.ts |
Replaced imports, removed deprecated parameters, added emit function, and updated event listener validation. |
doc/denops.txt |
Removed g:denops#trace , added denops#plugin#discover() , and updated function signatures. |
autoload/denops/_internal/server/... |
Changed s:connect function behavior and added conditional '--quiet' flag in proc.vim . |
🐇✨ In the code's burrow, deep and wide, Refactoring flows like the tide. Simplified calls, types aligned, A rabbit's touch, modernized and refined. 🌟 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
886bfa0
) 92.59% compared to head (7917a57
) 96.42%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Make it happen!
Summary by CodeRabbit
New Features
denops#plugin#discover()
function to automatically discover and register plugins.Enhancements
denops#plugin#register()
function by simplifying its signature.denops#plugin#reload()
function to improve performance and reliability.Bug Fixes
Refactor
Documentation
g:denops#trace
variable and the addition of new plugin discovery functionality.Chores