<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mason/lua/mason-core/installer/context, branch v2.2.0</title>
<subtitle>[no description]</subtitle>
<id>http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/installer/context?h=v2.2.0</id>
<link rel='self' href='http://git.sudomsg.com/mirror/mason/atom/lua/mason-core/installer/context?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/'/>
<updated>2026-01-07T14:46:58Z</updated>
<entry>
<title>feat: add support for removal of packages from a registry (#2052)</title>
<updated>2026-01-07T14:46:58Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2026-01-07T14:46:58Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=69862d6c8dbe215489c3e48e624ff25f44437e55'/>
<id>urn:sha1:69862d6c8dbe215489c3e48e624ff25f44437e55</id>
<content type='text'>
This adds support for removal of packages from any given registry.
Currently mason.nvim doesn't support this at all and throws an error
when trying to interact with the registry in any way while having a
removed package installed locally.

This ensures that removed packages are available both in the `:Mason` UI
as well as the public Lua APIs. These "synthesized" packages only
supports uninstallation, and metadata such as licenses, categories,
homepage, etc is not available.</content>
</entry>
<entry>
<title>fix(installer): update cwd after uv_fs_rename() was successful (#2033)</title>
<updated>2025-11-14T03:20:19Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2025-11-14T03:20:19Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=57e5a8addb8c71fb063ee4acda466c7cf6ad2800'/>
<id>urn:sha1:57e5a8addb8c71fb063ee4acda466c7cf6ad2800</id>
<content type='text'>
Also moves to fs.sync calls over fs.async to avoid unnecessary async
coroutine overhead.</content>
</entry>
<entry>
<title>fix(installer): attempt to recover from known fs error while finalizing installation on some file systems (#1933)</title>
<updated>2025-11-14T02:50:44Z</updated>
<author>
<name>Sam-Briney</name>
<email>46232496+Sam-Briney@users.noreply.github.com</email>
</author>
<published>2025-11-14T02:50:44Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=198f07572c0014774fb87371946e0f03b4908bce'/>
<id>urn:sha1:198f07572c0014774fb87371946e0f03b4908bce</id>
<content type='text'>
Co-authored-by: William Boman &lt;william@redwill.se&gt;</content>
</entry>
<entry>
<title>feat(context): add ctx:await()</title>
<updated>2025-02-19T11:15:49Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2025-02-16T17:51:43Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=e13d54a97bb95ec0b0826e13e5886fe9790f04df'/>
<id>urn:sha1:e13d54a97bb95ec0b0826e13e5886fe9790f04df</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor: turn StdioSink into a proper class</title>
<updated>2025-02-19T11:15:49Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2025-02-16T16:07:22Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=5063ba98dc220a754caf68e510fb192755b1bdf0'/>
<id>urn:sha1:5063ba98dc220a754caf68e510fb192755b1bdf0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat(context): add ctx:fetch()</title>
<updated>2025-02-19T11:15:49Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2025-02-16T15:45:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=5be61cc8114607733de9587d33e2ed134a582079'/>
<id>urn:sha1:5be61cc8114607733de9587d33e2ed134a582079</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor!: change Package API</title>
<updated>2025-02-19T11:15:48Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-11-06T23:29:18Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=6a7662760c515c74f2c37fc825776ead65d307f9'/>
<id>urn:sha1:6a7662760c515c74f2c37fc825776ead65d307f9</id>
<content type='text'>
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 -&gt;
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)
```
</content>
</entry>
<entry>
<title>refactor: standardize constructors and improve inheritance construction</title>
<updated>2025-02-19T08:23:19Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-10-13T19:14:29Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=ae208dc380808ff1aef39929a0e897e881571d43'/>
<id>urn:sha1:ae208dc380808ff1aef39929a0e897e881571d43</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor(installer): move initializations to InstallContext constructor</title>
<updated>2025-02-19T08:23:19Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-10-12T23:27:58Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=c338fb2698ae276bc3b6edccdd3afaef92fc77bd'/>
<id>urn:sha1:c338fb2698ae276bc3b6edccdd3afaef92fc77bd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>refactor!: refactor installer internals and add new Package class methods (#1523)</title>
<updated>2025-02-19T08:22:40Z</updated>
<author>
<name>William Boman</name>
<email>william@redwill.se</email>
</author>
<published>2023-10-11T14:31:50Z</published>
<link rel='alternate' type='text/html' href='http://git.sudomsg.com/mirror/mason/commit/?id=047ec18da56ad8f331e5c6bc7417dc5a9a6e71cc'/>
<id>urn:sha1:047ec18da56ad8f331e5c6bc7417dc5a9a6e71cc</id>
<content type='text'>
This contains the following changes:
1) `Package:install()` now accepts a second, optional, callback argument which is called when installation finishes
   (successfully or not).
2) Adds a `Package:is_installing()` method.

This contains the following breaking changes:
1) `Package:install()` will now error when called while an installation is already ongoing. Use the new
   `Package:is_installing()` method to check whether an installation is already running.

This also refactors large portions of the tests by removing test globals, removing async_test, and adding the
`mason-test` Lua module instead. Test helpers via globals are problematic to work with due to not being detected through
tools like the Lua language server without additional configuration. This has been replaced with a Lua module
`mason-test`. `async_test` has also been removed in favour of explicitly making use of the `mason-core.async` API. These
changes stands for a significant portion of the diff.
</content>
</entry>
</feed>
