Releases: DevNatan/inventory-framework
Releases Β· DevNatan/inventory-framework
v3.0.3 (11-19-2023)
π New Features
- Minecraft 1.20.2 support (#514)
π Bug fixes
- Close context cancellation not working (#515)
𧩠API changes
- Decouple state access from PlatformView to allow State Management API usage anywhere (#496)
- ViewConfig
with(Modifier)
is nowuse(Modifier)
(#513)
π§ Other changes
Full Changelog: v3.0.2...v3.0.3
v3.0.2 (10-05-2023)
π Bug fixes
- Fix scheduled update start interceptor trying to restart on context close and throwing an exception (#497)
π§ Other changes
- Kotlin stdlib from inventory-framework-platform-paper module runtime dependencies (#495)
Full Changelog: v3.0.1...v3.0.2
v3.0.1 (10-04-2023)
π Bug fixes
- Lock child interactions while pagination page is changing to prevent items be removed while asynchronous pagination is reloading (#488)
- Option to enable data transitivity from one view to another automatically (#493)
- Remove "multiple layoutSlot with same character" restriction, now multiple
layoutSlot
with the same character can be used alternating its visibility withhideIf
anddisplayIf
modifiers (#489)
Full Changelog: v3.0.0...v3.0.1
v3.0.0 (09-21-2023)
π New Features
- Refs APIβcreate a direct component instance reference (see docs) (#476)
- Component's
hide()
andshow()
to programmatically set component visibility state (#476) - Anvil Input featureβget anvil text field input (see docs) (#481)
- Context back with
initialData
parameter (#482) - bStats metrics now can be disabled using
disableMetrics()
ViewFrame option (#485)
π Bug fixes
- Inconsistent page index in pagination page switch handler (#478)
- OpenContext and CloseContext now implements Bukkit platform Context (#479)
- MC 1.8 inventory close handling exploit with F6 (Start Streaming) key (#480)
𧩠API changes
forceUpdate()
was moved from Pagination API to Component API (#476)
π οΈ Internal changes
- IN-GAME library conflict warning was removed (#484)
π§ Other changes
- Kotlin stdlib was removed from runtime (#487)
Full Changelog: v3.0.0-rc.3...v3.0.0
v3.0.0-rc.3 (09-13-2023)
π New Features
- Now components overlap each other based on rendering priorities, basically, two items can now be placed in the same slot and they will render properly based on visibility conditions like
displayIf
oronRender
/rendered
result (#433) - New
displayIf
with context as parameter to be able to usedisplayIf(booleanState::get)
(#436) - Better Kotlin interop and extensions to
kotlin.time
package (#439) - New
back()
to navigate back to the previous view. UseonResume
to catch when "back" is used. See Creating Flows with back() and onResume on Wiki (#443) - Apply default configuration to all views. See Default Configuration on Wiki (#444)
- New item
updateOnStateChange(State)
(that's the same aswatch
but more explicit) (#447) interactionDelay(Duration)
allows set a interval between player interactions (#460)- Added
context
andindex
parameters to Pagination state (#456) - New
hideIf
(the opposite ofdisplayIf
) to hide items based on a condition (#467) - New
computedPaginationState
andlazyPaginationState
(#458)
π Bug fixes
- Inventory transition don't work in newer versions, now we close inventory before transitioning to others via
open
(#457) - Players being able to remove items from view inventory by clicking in their own inventory (#459)
- Issues with pagination items updates also not being able to use
displayIf
orwatch
now fixed (#466)
π Documentation
- Basic Usage on Wiki updated with more clear examples about configuration and more comprehensive item rendering explanation
- Layouts on Wiki reworked. Now explains about
layoutSlot
andavailableSlot
behavior and limitations - Navigating Between Views on Wiki reworked.
- Pagination on Wiki updated, now explains about diferences between data sources and asynchronous pagination nature
𧩠API changes
- StateValue from API is now an interface also Pagination now extends StateValue (#434)
- Better Kotlin interop & Bukkit platform
View
do not implement Bukkit'sInventoryHolder
anymore (#439) - New
IndexSlotFunction<T>
andIndexSlotConsumer<T>
interfaces (#440) - ComponentBuilder's
watch(State)
is now deprecated and scheduled for removal in v3.1.0 (#447) - View's
onInit(ViewConfigBuilder)
moved to inventory-framework-platform module (#448)
π οΈ Internal changes
v3.0.0-rc.2 (08-15-2023)
π New Features
- New
openForPlayer()
andopenForEveryone()
with initial data parameter, like in ViewFrame (#421) - Minecraft 1.19 and 1.20 support in dynamic title update (#423)
- New
updateTitleForPlayer(title, player)
to update title for a specific player (#424) - Asynchronous Pagination (experimental) (#432)
π Bug fixes
- Pagination items with dynamic rendering not reacting to global update (#425)
- Update are no more called for static items (#425)
β‘Performance improvements
- Pagination components are now registered lazily (#425)
- Component updates triggered by
watch(State)
no more updates the entire view, just the component itself (#425)
π Documentation
- Pagination on Wiki had its structure reformulated to simplify the reading, go more straight to the point, added some missing topics to explain better about pagination with dynamic items and data source
- Page "Inventory Title Programmatic Update" on Wiki reworked and renamed to Dynamic Title Update
𧩠API changes
- Internal state and component management related methods were marked as Internal API
π οΈ Internal changes
- Project module names changed now every module has "inventory-framework-" prefix
- Removed kotlin-dsl and feature-event-bus modules
Full Changelog: v3.0.0-rc.1...v3.0.0-rc.2
v3.0.0-rc.1 (08-07-2023)
π Bug fixes
- Fix relocation warn being sent even in the wrong conditions. Now we check if IF's main class is available in runtime and plugin "InventoryFramework" is enabled (#412)
- Null
getPlayer()
in RenderContext (#414) - An error thrown when a empty pagination source is provided (#415)
- Dynamically rendered items in pagination being positioned in the wrong place (#416)
π New Features
- New
ViewFrame.open(view, player, data)
overload (#417) - New
item.updateOnClick()
to trigger context update on item click (#418)
𧩠API changes
initialState()
is now mutable so its value can be changed (#413)
π§ Other changes
- Bump junit from 5.9.3 to 5.10.0 (#406)
Full Changelog: v3.0.0-beta...v3.0.0-rc.1
v3.0.0-beta (08-04-2023)
Inventory Framework is now published to Maven Central!
This release introduces Shared Contexts (#409) preview also fixes with artifacts publication issues.
Full Changelog: v3.0.0-alpha...v3.0.0-beta
v3.0.0-alpha (08-01-2023)
π Bug fixes
- Infer container size automatically when layout is present (#377)
- JDK and PaperSpigot versions compatibility issues (#384)
- Change layout component registration order to ensure it works with PaginationState (#399)
π New Features
- Item render and update handler shortcuts (#274)
- Simplified way to conditional item rendering with
displayIf(BooleanSupplier)
(#338) - Support more inventory types (#343)
- Allow to change component position while rendering (#395)
π Documentation
- Added GIF to Counter code sample
- Added Per-player Data Source topic to Pagination feature documentation
𧩠API changes
- Internal data used in
initialState
is now available in Internal API which allows Features System to use it (#326) - New
unsetSlot
to create items with unset slots (#395) - New item click handler
onClick(Runnable)
overload (#400)
π οΈ Internal changes
π§ Other changes
- Bump kotlin from 1.8.22 to 1.9.0 by @dependabot in #390
- Bump org.danilopianini.publish-on-central from 5.0.9 to 5.0.10 by @dependabot in #397
Full Changelog: v3.0.0-EAP...v3.0.0-alpha
v3.0.0-EAP (06-07-2023)
Version 3 Release Preview.
Please refer to Migrating to version 3 on Wiki and Installation for migration details.
This version is NOT production ready.
Full Changelog: 2.5.4-rc.1...v3.0.0-EAP