From 4fc4b44891919d2b84160eb411d52227dd89e0a5 Mon Sep 17 00:00:00 2001 From: Arttu Kaipiainen Date: Thu, 9 Mar 2023 00:14:31 +0200 Subject: [PATCH] Version 5.11.12-0 --- CHANGELOG.md | 31 ++++++++++++++++++++---------- README.md | 16 ++++++++++----- project.clj | 4 ++-- reagent-material-ui-js/project.clj | 2 +- 4 files changed, 35 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a730719..a1e32207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,13 +2,24 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG.md) for changes in MUI. +## 5.11.12-0 + +**[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.11.8-0...v5.11.12-0)** + +- Update MUI to v5.11.12 +- **BREAKING** Update `@mui/x-date-pickers` to v6.0.0. See [migration guide](https://mui.com/x/migration/migration-pickers-v5/). +- Fix handling of `Date` inputs in `cljs-time-adapter` +- Fix incorrect conversion of theme object in `reagent-mui.styles/theme-provider` ([#41](https://github.com/arttuka/reagent-material-ui/issue/41)) +- Don't convert ref props in `reagent-mui.util/js->clj'` +- Support for Reagent 1.2.0 / React 18 + ## 5.11.8-0 **[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.10.1-0...v5.11.8-0)** - Update MUI to v5.11.8 -- Fix `cljs-time-adapter` bug with `date-range-picker-pro` (#44) and `calendar-picker` (#40) -- Add information regarding `date-picker` input rendering (#39) +- Fix `cljs-time-adapter` bug with `date-range-picker-pro` ([#44](https://github.com/arttuka/reagent-material-ui/issue/44)) and `calendar-picker` ([#40](https://github.com/arttuka/reagent-material-ui/pull/40)) +- Add information regarding `date-picker` input rendering ([#39](https://github.com/arttuka/reagent-material-ui/issue/39)) - **BREAKING** `reagent-mui.material.switch-component` renamed to `reagent-mui.material.switch` since reserved JS keywords aren't a problem anymore @@ -22,7 +33,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG **[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.6.2-0...v5.6.2-1)** -- Fix extern inference with Figwheel-Main (#35) +- Fix extern inference with Figwheel-Main ([#35](https://github.com/arttuka/reagent-material-ui/issue/35)) ## 5.6.2-0 @@ -42,7 +53,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG **[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.2.4-0...v5.4.3-0)** - Update MUI to v5.4.3 -- Use local timezone instead of UTC by default in `reagent-mui/cljs-time-adapter` (#30) @patapizza +- Use local timezone instead of UTC by default in `reagent-mui/cljs-time-adapter` ([#30](https://github.com/arttuka/reagent-material-ui/pull/30)) @patapizza - Allow string as component in `reagent-mui.styles/styled` ## 5.2.4-0 @@ -51,8 +62,8 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG - Update MUI to v5.2.4 - **BREAKING** Rename package `reagent-mui.core` to `reagent-mui.base` as in MUI -- Fix React key warnings on some icons (#27) -- Add support for MUI X Pro components (currently just DataGrid) (#25) +- Fix React key warnings on some icons ([#27](https://github.com/arttuka/reagent-material-ui/issue/27)) +- Add support for MUI X Pro components (currently just DataGrid) ([#25](https://github.com/arttuka/reagent-material-ui/issue/25)) ## 5.0.0-0 @@ -78,7 +89,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG - Update Material UI to v5.0.0-beta.2 - Add components from `@material-ui/unstyled` - Move functions from `@material-ui/core/styles` and `@material-ui/styles` to separate namespaces -- Fix default locale in `localization-provider` (#19) @alenkralj +- Fix default locale in `localization-provider` ([#19](https://github.com/arttuka/reagent-material-ui/pull/19)) @alenkralj ## 5.0.0-alpha.32-0 @@ -91,7 +102,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG **[compare](https://github.com/arttuka/reagent-material-ui/compare/v5.0.0-alpha.27-1...v5.0.0-alpha.29-0)** - Update Material UI to v5.0.0-alpha.29 -- Fix bug in `reagent-material-ui/js-clj'` when converting keys with non-keyword characters (#15) @adrsm108 +- Fix bug in `reagent-material-ui/js-clj'` when converting keys with non-keyword characters ([#15](https://github.com/arttuka/reagent-material-ui/pull/15)) @adrsm108 ## 5.0.0-alpha.27-1 @@ -129,7 +140,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG - Update Material UI to v5.0.0-alpha.17 - **BREAKING** `material-ui-pickers` have been moved to `material-ui-lab` - **BREAKING** `cljs-time-utils` has been renamed to `cljs-time-adapter` to use the same terminology as Material UI -- Added support for responsive font sizes (#9) @wkok +- Added support for responsive font sizes ([#9](https://github.com/arttuka/reagent-material-ui/pull/9)) @wkok - Fix bug in `reagent-material-ui.core.text-field` when used as uncontrolled ## 5.0.0-alpha.15-0 @@ -166,7 +177,7 @@ See [MUI changelog](https://github.com/mui-org/material-ui/blob/master/CHANGELOG **[compare](https://github.com/arttuka/reagent-material-ui/compare/v4.11.0-0...v4.11.0-1)** -- Enable pure shadow-cljs usage (fixes #2) +- Enable pure shadow-cljs usage ([#2](https://github.com/arttuka/reagent-material-ui/issue/2)) ## 4.11.0-0 diff --git a/README.md b/README.md index ef41e72d..9bc00897 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Their examples are very good. and this library tries to follow the original idea To add MUI to an existing Reagent project, just add this library to your dependencies: ``` -[arttuka/reagent-material-ui "5.11.8-0"] +[arttuka/reagent-material-ui "5.11.12-0"] ``` Most of the library is in the form of regular Reagent components. Each component is contained in a namespace that mirrors @@ -59,7 +59,7 @@ If you want to use another date library, you can use [adapters from `@mui/x-date To use npm dependencies with Figwheel Main, you need to exclude prebuilt JS files (React from CLJSJS and MUI from this library). To do so, add these exclusions to your dependency. See the example project for working configuration. - [arttuka/reagent-material-ui "5.11.8-0" :exclusions [arttuka/reagent-material-ui-js]] + [arttuka/reagent-material-ui "5.11.12-0" :exclusions [arttuka/reagent-material-ui-js]] #### MUI component names with shadow-cljs @@ -67,6 +67,11 @@ The compiler used by shadow-cljs will remove local function names, causing most show as `Anonymous` in React Devtools. If you want to keep the names, add `:js-options {:anon-fn-naming-policy :unmapped}` to your build in `shadow-cljs.edn`. +#### React 18 + +[Reagent v1.2.0](https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md#120-2023-02-16) has experimental +support for React 18. This library works with Reagent 1.2.0 / React 18. See example project. + ### Common pitfalls in Reagent/React interop * Some components want to have a React node as a prop. A Reagent component is not good enough and will just result in @@ -93,9 +98,10 @@ The build process also includes `lein cljfmt`. The project follows MUI's version numbering. -* Current `@mui/material` version: `5.11.8` -* Current `@mui/icons-material` version: `5.11.0` -* Current `@mui/lab` version: `5.0.0-alpha.119` +* Current `@mui/material` version: `5.11.12` +* Current `@mui/icons-material` version: `5.11.11` +* Current `@mui/lab` version: `5.0.0-alpha.122` +* Current `@mui/x-date-pickers` version: `6.0.0` ### License diff --git a/project.clj b/project.clj index 60d0260f..abd8a04a 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject arttuka/reagent-material-ui "5.11.8-0" +(defproject arttuka/reagent-material-ui "5.11.12-0" :description "Reagent wrapper library for MUI (formerly Material UI) v5" :url "https://github.com/arttuka/reagent-material-ui" :license {:name "Eclipse Public License 2.0" @@ -6,7 +6,7 @@ :dependencies [[reagent "1.1.1"] [com.andrewmcveigh/cljs-time "0.5.2"] [camel-snake-kebab "0.4.3"] - [arttuka/reagent-material-ui-js "5.11.8-0"]] + [arttuka/reagent-material-ui-js "5.11.12-0"]] :plugins [[lein-cljfmt "0.9.2"] [lein-cljsbuild "1.1.8"] [lein-doo "0.1.11"]] diff --git a/reagent-material-ui-js/project.clj b/reagent-material-ui-js/project.clj index 1e757a4d..97648ad1 100644 --- a/reagent-material-ui-js/project.clj +++ b/reagent-material-ui-js/project.clj @@ -1,4 +1,4 @@ -(defproject arttuka/reagent-material-ui-js "5.11.8-0" +(defproject arttuka/reagent-material-ui-js "5.11.12-0" :description "Packaged Javascript files for reagent-material-ui" :url "https://github.com/arttuka/reagent-material-ui" :license {:name "Eclipse Public License 2.0"