Versions 3.0+ Changelog#
These are all the changelogs for stable releases of hikari-miru (version 3.0.0 to present).
Version 3.4.0#
Add
miru.ext.menu, which aims to make creating complex, nested menus easy. See the documentation & example on how to use it.Overhaul
Viewautodefer logic.ViewContextare now automatically deferred if a response is not issued within 2 seconds, even if the callback is still running.Add
ItemHandler.get_item_by()andItemHandler.get_item_by_id().Deprecate
ModalContext.get_value_by_predicatein favour ofModalContext.get_value_by. It will be removed in the next minor release (3.5.0).Large amounts of typing improvements across the library.
Add
CONTRIBUTING.mdand configuration for common editors for better developer experience.
Version 3.3.1#
Fix
View.last_contextandModal.last_contextincorrectly casting variable types.
Version 3.3.0#
Add support for Python 3.12
Improve Context typing in callbacks for better typechecking experience when using custom contexts.
Minor changes to the type signature of
ModalContext.get_value_by_id()andModalContext.get_value_by_predicate().
Version 3.2.2#
Fix
miru.abc.Item.positionsetter max value being it’s width instead of row width.
Version 3.2.1#
Fix
miru.ext.nav.NavigatorViewdefaulting to ephemeral by default.
Version 3.2.0#
Add the ability to pass
miru.Contexttomiru.ext.nav.NavigatorView.send()instead of an interaction or channel.Added
miru.ext.nav.Pageto represent a page with a complex payload.Updated
miru.ext.nav.NavigatorView()andmiru.ext.nav.NavigatorView.swap_pages()to acceptmiru.ext.nav.Pageinstances.
Version 3.1.3#
Fix
miru.ext.nav.NavigatorView.on_timeoutto properly edit provided initial interactions on timeout.Fix
miru.InteractionResponsefrom always deleting the initial response.
Version 3.1.2#
Update
miru.View.messagein bound views when receiveing an interaction.Fix
IndexErrorbeing raised when trying to add pages to amiru.ext.nav.utils.Paginator.Fix
miru.ext.nav.NavItemmissingwidthfrom it’s__init__.
Version 3.1.1#
Fix
miru.Item.position’s setter being called beforewidthis set.
Version 3.1.0#
Added
miru.Button.positionattribute, setting it will determine the ordering of buttons within a row.Remove deprecated functions
miru.load()andmiru.unload(), please usemiru.install()andmiru.uninstall()instead.Fixed multiple embed support for navigators.
Version 3.0.3#
Updated to hikari v2.0.0.dev118
Version 3.0.2#
Fixed new select variants throwing errors if no options were selected.
Fixed an issue with new select variant values not being subscriptable.
Version 3.0.1#
Fixed not being able to instantiate items that derive from
miru.ext.nav.NavItem.
Version 3.0.0#
BREAKING:
miru.Selecthas been renamed tomiru.TextSelectalong with the decoratormiru.selecttomiru.text_select.BREAKING:
miru.ext.nav.NavSelecthas been renamed tomiru.NavTextSelect.Added
miru.UserSelect,miru.RoleSelect,miru.ChannelSelect,miru.MentionableSelectalong with their respective decorators.Added
Navvariants of all new selects tomiru.ext.nav.Added
miru.ext.nav.NavigatorView.swap_pages()to allow mutating the pages of a navigator after instantiation.Added initial framework and CI for unit testing in the library.
Improved the validation of item properties.
Added note about
miru.loadandmiru.unloadbeing removed in 3.1.0 to deprecation warning.Fixed
TextInput.min_lengthandTextInput.max_lengthnot being able to be set toNone.Minor documentation and other fixes.