Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Denops v7 #344

Merged
merged 99 commits into from
Jul 27, 2024
Merged

🎉 Denops v7 #344

merged 99 commits into from
Jul 27, 2024

Commits on Jul 27, 2024

  1. 💥 Upgrade supported versions

    - Deno: 1.38.x -> 1.45.x
    - Vim: 9.0.2189 -> 9.1.0448
    - Neovim: 0.9.4 -> 0.10.0
    lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    b63030b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d56dd09 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5992145 View commit details
    Browse the repository at this point in the history
  4. 📝 Remove deno.land badges

    No JavaScript/TypeScript documentation is required for denops itself.
    lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    7c4c342 View commit details
    Browse the repository at this point in the history
  5. 🌿 Add test utilities

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    19fdc98 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    29baee9 View commit details
    Browse the repository at this point in the history
  7. 🌿 run test task with LANG=C environment

    Test failed because error message not matched.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    d154581 View commit details
    Browse the repository at this point in the history
  8. 🌿 improve verbose messages on error

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    0a22d0b View commit details
    Browse the repository at this point in the history
  9. 🌿 add server tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    e8b9630 View commit details
    Browse the repository at this point in the history
  10. 🌿 add useSharedServer test helper

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    34fd84f View commit details
    Browse the repository at this point in the history
  11. 🌿 add plugin/denops.vim tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    f175d89 View commit details
    Browse the repository at this point in the history
  12. 🌿 exclude .coverage/

    `deno fmt` formats json files in `.coverage/`.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    4e1aabc View commit details
    Browse the repository at this point in the history
  13. 🌿 use using s = stub(...)

    Instead `const s = stub(...); try { ... } finally { s.restore(); }`.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    c5e44c6 View commit details
    Browse the repository at this point in the history
  14. 🌿 split test steps of Host.notify()

    - Separate `notify() does not throws ...`.
    - Add `console.error` stub testing for `Neovim.notify()`.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    1df9d5e View commit details
    Browse the repository at this point in the history
  15. 🌿 increased default test timeout to 30 seconds

    Some flaky failures are avoided.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    98e4a98 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    9c07ac3 View commit details
    Browse the repository at this point in the history
  17. 🌿 fix flaky timing tests refs #354

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    61afa34 View commit details
    Browse the repository at this point in the history
  18. 🌿 add DENOPS_TEST_TIMEOUT environment

    We can extend the timeout in slow environments.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    0b970ba View commit details
    Browse the repository at this point in the history
  19. 🌿 add cli tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    8bf1744 View commit details
    Browse the repository at this point in the history
  20. 👍 specify version to @std/cli

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    f2bdf72 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    a90a3dd View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    eece2a1 View commit details
    Browse the repository at this point in the history
  23. 👍 use workerio@4.0.1

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    eecadec View commit details
    Browse the repository at this point in the history
  24. 👍 only import for cache

    There is no need to exports.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    5b5ee96 View commit details
    Browse the repository at this point in the history
  25. 💪 wrap logics into main() function

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    ed3a0e2 View commit details
    Browse the repository at this point in the history
  26. 🌿 add tests for worker

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    460fc3e View commit details
    Browse the repository at this point in the history
  27. 🌿 remove unnecessary verbose

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    6a2506c View commit details
    Browse the repository at this point in the history
  28. 👍 terminate worker gracefully

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    b43cba9 View commit details
    Browse the repository at this point in the history
  29. 🌿 prevent error in test helper

    - Prevent error when aborting the process.
    - Wait for the stdout cancelled.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    48682fc View commit details
    Browse the repository at this point in the history
  30. 👍 satisfies Service as HostService

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    658ecda View commit details
    Browse the repository at this point in the history
  31. 💪 define argument parsers in module scope

    - Improve performance.
    - Type satisfies.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    4a4002a View commit details
    Browse the repository at this point in the history
  32. 👍 change Host#notify() to async

    `Host#notify()` should return a Promise as it may cause an unhandled-rejection.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    9082561 View commit details
    Browse the repository at this point in the history
  33. 👍 console.* patch fallback to true console output

    Patches in `console.*` fallback to true console output. It does not
    throw an exception if the call to Host fails.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    9ff52f3 View commit details
    Browse the repository at this point in the history
  34. 🌿 remove duplicate test step

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    b32f784 View commit details
    Browse the repository at this point in the history
  35. 💪 use PromiseWithResolvers<...>

    Because minimum version of Deno is changed to 1.44.x.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    0079a63 View commit details
    Browse the repository at this point in the history
  36. 💪 refactor map reference

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    49b9ceb View commit details
    Browse the repository at this point in the history
  37. 👍 gracefully close service

    - The Service is closed when The worker is terminated.
    - The worker is teminated when The Service is closed.
    - `denops.dispatch()` (but `service.dispatch()`) rejects with a service
      closed error if the service is closed before the plugin loaded.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    1c088c0 View commit details
    Browse the repository at this point in the history
  38. undefined instead void 0

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    88cf743 View commit details
    Browse the repository at this point in the history
  39. 🌿 fix flaky tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    f6a5d74 View commit details
    Browse the repository at this point in the history
  40. 🌿 improve useSharedServer helper

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    80eb0bf View commit details
    Browse the repository at this point in the history
  41. 🌿 improve with* helpers

    - Change helper argument to record.
    - Add `stdout` and `stderr` helper properties.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    3243b1c View commit details
    Browse the repository at this point in the history
  42. 👍 change denops#server#start and ...#stop to asynchronous

    - Add new `denops-variable`:
      - `g:denops#server#close_timeout`
    - Add new state for `denops#server#status()`:
      - `closing`
      - `closed`
    - Change behavior `denops-function`:
      - `denops#server#start()` can now be called even when status is
        `closing`. In that case, the status will become `stopped` and then
        restart asynchronously.
      - `denops#server#stop()` is changed to asynchronously. It waits for
        the server to close gracefully, and force terminate if timeouted.
      - `denops#server#restart()` is changed to asynchronously. Perform the
        stop and start steps above.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    d3da45e View commit details
    Browse the repository at this point in the history
  43. 💪 use internal DenopsSystem* events

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    a732c4b View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    5a6f45f View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    c419ca7 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    9c5978b View commit details
    Browse the repository at this point in the history
  47. 👍 fix restart behavior

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    3ee8a2e View commit details
    Browse the repository at this point in the history
  48. 👍 fix reconnect behavior

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    3c4a84f View commit details
    Browse the repository at this point in the history
  49. 🌿 fix flaky tests a bit

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    e5e697b View commit details
    Browse the repository at this point in the history
  50. 🌿 improve plugin/denops.vim tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    a876bb8 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    f4bec25 View commit details
    Browse the repository at this point in the history
  52. 🌿 add nvim to test target

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    6a7f4c8 View commit details
    Browse the repository at this point in the history
  53. 🌿 improve Service tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    7822e5d View commit details
    Browse the repository at this point in the history
  54. 🌿 move test directories

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    05a71b5 View commit details
    Browse the repository at this point in the history
  55. 🌿 add tests for denops#plugin#*

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    7c1d419 View commit details
    Browse the repository at this point in the history
  56. 🐛 prevent error on denops#plugin#check_type()

    If `denops#plugin#is_loaded()` is called for a plugin that is not loaded,
    specifying an empty path will cause the `deno check` to fail.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    81f267e View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    87e4cdc View commit details
    Browse the repository at this point in the history
  58. 👍 Add plugin unload features

    Plugin API:
    
    - `Entrypoint` can now return `AsyncDisposable`.
      - It is called by `denops#plugin#unload()`.
      - It is called when the server closing.
        - When `denops#server#close()` is called.
        - When `denops#server#stop()` is called.
        - When the channel is closed.
        - When the server process trapped `SIGINT`.
    
    Vim API:
    
    - Add new `denops-function`:
      - `denops#plugin#unload({plugin})`
    - Add new events:
      - `DenopsPluginUnloadPre:{plugin}`
      - `DenopsPluginUnloadPost:{plugin}`
      - `DenopsPluginUnloadFail:{plugin}`
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    d3d5eb9 View commit details
    Browse the repository at this point in the history
  59. 🌿 add script rewrite reload test

    This breaks `--watch` option.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    7c79693 View commit details
    Browse the repository at this point in the history
  60. 🌿 improve test coverage

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    93a4669 View commit details
    Browse the repository at this point in the history
  61. 👍 fix Service.waitLoaded() never resolved

    It is never resolved if it is called between `load()` and `unload()`.
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    6fdb1cf View commit details
    Browse the repository at this point in the history
  62. 👍 do not use Partial

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    8070bd5 View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    00b0b02 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    b83586b View commit details
    Browse the repository at this point in the history
  65. 👍 remove unused module

    Refs #349
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    d9c16e8 View commit details
    Browse the repository at this point in the history
  66. 📦 Update @denops/core

    lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    35c5758 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    416255d View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    e19b574 View commit details
    Browse the repository at this point in the history
  69. 🌿 improve DenopsImpl tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    583a7bd View commit details
    Browse the repository at this point in the history
  70. 🌿 add getVersionOr() tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    a211913 View commit details
    Browse the repository at this point in the history
  71. 🌿 improve Vim and Neovim tests

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    56e71b5 View commit details
    Browse the repository at this point in the history
  72. 💪 clarify error handling blocks

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    8e1b292 View commit details
    Browse the repository at this point in the history
  73. Configuration menu
    Copy the full SHA
    4880b90 View commit details
    Browse the repository at this point in the history
  74. 📝 improve denops#plugin#* docs

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    9b27654 View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    7c49bb8 View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    21c56d2 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    43f4fab View commit details
    Browse the repository at this point in the history
  78. 🐛 fix plugin state

    Fixes #387
    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    655faf9 View commit details
    Browse the repository at this point in the history
  79. Configuration menu
    Copy the full SHA
    2bd32a7 View commit details
    Browse the repository at this point in the history
  80. Configuration menu
    Copy the full SHA
    ae5b002 View commit details
    Browse the repository at this point in the history
  81. Configuration menu
    Copy the full SHA
    56da553 View commit details
    Browse the repository at this point in the history
  82. Configuration menu
    Copy the full SHA
    7d2ef71 View commit details
    Browse the repository at this point in the history
  83. 💥 discover only valid name plugins

    Milly authored and lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    0db258f View commit details
    Browse the repository at this point in the history
  84. Configuration menu
    Copy the full SHA
    5f43628 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    488d330 View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    30505f1 View commit details
    Browse the repository at this point in the history
  87. ☕ Refine update task

    lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    40550fc View commit details
    Browse the repository at this point in the history
  88. Configuration menu
    Copy the full SHA
    04f546d View commit details
    Browse the repository at this point in the history
  89. Configuration menu
    Copy the full SHA
    25e01b3 View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    2f9f523 View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    180d8cd View commit details
    Browse the repository at this point in the history
  92. Configuration menu
    Copy the full SHA
    74f8650 View commit details
    Browse the repository at this point in the history
  93. Configuration menu
    Copy the full SHA
    ddc8956 View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    c5b3864 View commit details
    Browse the repository at this point in the history
  95. Configuration menu
    Copy the full SHA
    21dcf24 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    211ed2d View commit details
    Browse the repository at this point in the history
  97. Configuration menu
    Copy the full SHA
    41e3d12 View commit details
    Browse the repository at this point in the history
  98. Configuration menu
    Copy the full SHA
    0a78e35 View commit details
    Browse the repository at this point in the history
  99. 🌿 Fix error message in test

    @std/async/deadline changes it's internal implementation and the error
    has changed from `DeadlineError` to `DOMException` with `Signal timed
    out` error originated from `AbortSignal.timeout()`.
    lambdalisue committed Jul 27, 2024
    Configuration menu
    Copy the full SHA
    6eb990e View commit details
    Browse the repository at this point in the history