Skip to content

Releases: cfnz/muirwik

Kotlin 1.5.30 - Breaking Change

25 Aug 10:17
Compare
Choose a tag to compare

This release moves to Kotlin 1.5.30 and version 17.0.2-pre.236-kotlin-1.5.30 of the react wrappers.

The prior version used pre.204 version of the wrappers. Sometime after pre.204 the Kotlin wrappers have undergone quite a few changes to clean up the APIs. One of the changes was to not return a React Element when adding a child. This may break some code.

The key piece of advice is not to return React Element from any of your components but rather return nothing (i.e. Unit). For example, previously

class App : RComponent<RProps, RState>() {
    ...
}

fun RBuilder.app() = child(App::class) {}

Now you would have:

class App : RComponent<Props, State>() {
    ...
}

fun RBuilder.app() {
    child(App::class) {}
}

In places where you need a component returned such as passing it as a param or setting a prop, you can wrap the component in a buildElement {} function. Previously you might have used addChild = false on the createStyled function as was used in the test app.

These changes can be observed by comparing pretty much any of the test app classes as they pretty much all changed.

IR and LEGACY compiler compatible version

11 Jun 05:45
Compare
Choose a tag to compare

This version should be compatible with both the IR and LEGACY compiler.

The Test App has been updated to avoid compatibility issues.

The Maven Central release (0.8.0) has been released with js(BOTH).

Added Lab AutoComplete component

04 Apr 06:04
Compare
Choose a tag to compare

Added Lab AutoComplete component - all props not fully tested, but generally as demonstrated in test app, works OK.

Rating Component + Tweaks

28 Jan 10:08
Compare
Choose a tag to compare

Added the rating component, useTheme and useMediaQuery for functional components + a few other tweaks (thanks to #47, #48, #50, etc and @zxy-c for pushing things along :-)).

Moved to Kotlin 1.4.20 and later wrapper versions

26 Nov 02:01
Compare
Choose a tag to compare

Moved to Kotlin 1.4.20 and later versions of the Kotlin wrappers, still on the LEGACY compiler.

Note the move to the later react wrapper also moves to React 17.0.0 which does produce some unmet peer dependency warnings for Material UI, but everything seems to work fine.

Introduced a Lab Component and Localization

18 Nov 08:29
Compare
Choose a tag to compare

Introduced a Lab Component (Alert) and added support for Localization to createMuiTheme.

Note with the later a default param was removed from createMuiTheme. This has a potential to be a breaking change, but should not cause an issue in most (maybe all) cases as passing the old param as the new param should not have a detrimental affect.

Also a few other smaller commits since last "release".

Moved to Kotlin 1.4 and Material-UI v 4.11.0

26 Aug 08:20
Compare
Choose a tag to compare

Moved to Kotlin 1.4
Moved to Material-UI 4.11.0
Added mSvgIcon
Added mAccordion (replacement for mExpansionPanel)
Properly implemented BackDrop
Few other tweaks.