aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-core/functional/init.lua
Commit message (Collapse)AuthorAgeFilesLines
* refactor!: change Package APIWilliam Boman2025-02-191-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the following public APIs: **(_breaking_) Events on the `Package` class** The `uninstall:success` event on the `Package` class now receives an `InstallReceipt` as argument, instead of an `InstallHandle`. This receipt is an in-memory representation of what was uninstalled. There's also a new `uninstall:failed` event for situations where uninstallation for some reason fails. Note: this also applies to the registry events (i.e. `package:uninstall:success` and `package:uninstall:failed`). --- **(_breaking_) `Package:uninstall()` is now asynchronous and receives two new arguments, similarly to `Package:install()`** While package uninstallations remain synchronous under the hood, the public API has been changed from synchronous -> asynchronous. Users of this method are recommended to provide a callback in situations where code needs to execute after uninstallation fully completes. --- **(_breaking_) `Package:get_install_path()` has been removed. --- **`Package:install()` now takes an optional callback** This callback allows consumers to be informed whether installation was successful or not without having to go through a different, low-level, API. See below for a comparison between the old and new APIs: ```lua -- before local handle = pkg:install() handle:once("closed", function () -- ... end) -- after pkg:install({}, function (success, result) -- ... end) ```
* fix: fix usage of deprecated Neovim APIs (#1703)William Boman2024-05-111-0/+1
|
* refactor(expr): remove redundant core filters and always stringify reduced ↵William Boman2023-04-181-0/+1
| | | | | value (#1227) The removed filters are not used by mason-registry and are too Lua-specific in nature.
* refactor: only schedule in a.scheduler() when in fast event (#1170)William Boman2023-04-021-0/+21
| | | Explicitly schedule via `a.wait(vim.schedule)` instead.
* feat: add github registry source capabilities (#1091)William Boman2023-03-121-0/+2
|
* feat(functional): add list.index_by (#882)William Boman2023-01-101-0/+1
|
* feat(functional): add split_every and default_to (#835)William Boman2023-01-021-0/+2
|
* feat(functional): add strip_{prefix,suffix} (#803)William Boman2022-12-261-1/+4
|
* feat(functional): add trim_start and assoc (#779)William Boman2022-12-201-0/+2
|
* feat(functional): add list.reduce (#772)William Boman2022-12-191-0/+1
|
* feat(functional): add some more functions (#755)William Boman2022-12-101-0/+8
|
* feat(functional): add more functions (#741)William Boman2022-12-081-0/+9
|
* feat: add provider interface (#601)William Boman2022-10-301-0/+3
|
* feat(api/command): add --debug flag to :MasonInstall (#576)William Boman2022-10-191-0/+1
|
* refactor(platform): more functional approach to parsing (#479)William Boman2022-09-291-0/+1
|
* refactor: introduce selene, harden type defs, and use proper EmmyLua syntax ↵William Boman2022-08-151-9/+9
| | | | (#296)
* feat: minimize modules required by .setup(), lazily require functional ↵William Boman2022-07-221-9/+19
| | | | modules (#113)
* fix(mason-lspconfig): deduplicate :LspInstall completion items (#88)William Boman2022-07-171-0/+1
|
* refactor: add mason-schemas and mason-core modules (#29)William Boman2022-07-081-0/+112
* refactor: add mason-schemas and move generated filetype map to mason-lspconfig * refactor: add mason-core module