Releases: trilemma-dev/Blessed
Releases · trilemma-dev/Blessed
0.6.0
With this release, the purpose of Blessed has narrowed to exclusively be about providing an excellent Swift wrapper around SMJobBless
.
Breaking changes
This is a significantly breaking release, if you do not want to update your app at this time consider using 0.5.0 instead.
- All authorization related functionality has been removed from this package and now lives in the Authorized package which has become a dependency of this package. All functionality has been fully preserved and no changes have been made to the public API.
- Login item functionality (
SMLoginItemSetEnabled
) has been removed. There was minimal benefit to using this package's Swift wrapper for it, so you're recommend to use Apple's API directly.
0.5.0
This release has significantly improved error generation for bless(...)
.
New functionality
- When calling
bless(...)
or either of theauthorizeAndBless(...)
functions, if blessing fails then a newBlessError
will be thrown. This error'sdescription
contains detailed explanations of exactly why the bless failed. This functionality is made possible by adding two new dependencies:- EmbeddedPropertyList to read the property lists embedded in the helper tool's binary file.
- Required to parse and evaluate the code signing requirements the app and helper tool have for each other.
Breaking changes
- Most of the cases in
LaunchdError
have been removed. This same functionality and more is now available viaBlessError
.
0.4.0
0.3.0
This release adds async
variants for two potentially long running functions requestRights
and authorizeAndBless
. This functionality is available on macOS 10.15 and later.
New functionality
- There is now an
async
version ofrequestRights(_:environment:options:)
. This function can take an indeterminate time to complete as depending on the rights requested it can require user input. This new function does not block while waiting on user input, instead it can beawait
ed. - There is also now an
async
version ofauthorizeAndBless(message:icon:)
. Internally it uses the above mentionedrequestRights
function to asynchronously request rights without blocking on user input.
Breaking changes
requestRightsAsync(_:environment:options:callback:)
was renamed torequestRights(_:environment:options:callback:)
. There is no change in functionality.