github marmelab/react-admin v5.13.0
5.13.0

latest release: v5.13.1
one day ago

React-hook-form version bump

This release bumps the minimum required version of react-hook-form to 7.65.0.

Jest configuration update

This release changed the way react-admin exports its modules to be fully compatible with ESM (PR #10995). This may require you to update your Jest configuration if you are using Jest in CJS mode (the default).

See https://marmelab.com/react-admin/UnitTesting.html#working-with-jest for more details.

Webpack configuration update

If you use MUI v5 or MUI v6, you may need to update your Webpack config by adding the following rules:

{
    // Your config
    modules: {
        rules: [
            // Your other rules
            {
                test: /\.m?js/,
                type: "javascript/auto",
            },
            {
                test: /\.m?js/,
                resolve: {
                fullySpecified: false,
                },
            },
        ]
    }
}

Vite configuration update

If you use MUI v5, you may have to add the following alias:

export default defineConfig(({ mode }) => ({
    // Your config
    resolve: {
        // Your resolve config
        alias: [
            // Your other aliases
            {
                find: /^@mui\/icons-material\/(.*)/,
                replacement: "@mui/icons-material/esm/$1",
            },
        ]
    }
});

Don't miss a new react-admin release

NewReleases is sending notifications on new releases.