Skip to content

Commit 7f1f45f

Browse files
v0.5.0 (#3898)
Co-authored-by: MUI bot <[email protected]>
1 parent dd126f1 commit 7f1f45f

File tree

16 files changed

+82
-20
lines changed

16 files changed

+82
-20
lines changed

CHANGELOG.md

+47-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,52 @@
11
# Changelog
22

3-
## 0.4.0
3+
## v0.5.0
4+
5+
<!-- generated comparing v0.4.0..master -->
6+
7+
_Aug 5, 2024_
8+
9+
A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
10+
11+
This is the first production-ready release of Toolpad Core! This version includes:
12+
13+
- A new SignInPage component
14+
- Updates to the `create-toolpad-app` CLI to bootstrap Toolpad Core projects
15+
- Many documentation updates and improvements
16+
17+
### Breaking Changes
18+
19+
The `create-toolpad-app` CLI now by default bootstraps a Toolpad Core project.
20+
21+
Please use the `--studio` flag to generate a Toolpad Studio project.
22+
23+
### `@toolpad/core`
24+
25+
- &#8203;<!-- 09 --> Add authentication to Toolpad Core (#3609) @bharatkashyap
26+
- &#8203;<!-- 01 --> Make Core the default project (#3868) @bharatkashyap
27+
- &#8203;<!-- 11 --> Make navigation item segments optional (#3838) @apedroferreira
28+
- &#8203;<!-- 17 --> Ensure Material UI v5 compatibility (#3894) @Janpot
29+
- &#8203;<!-- 10 --> Bring in some fixes from the next update branch (#3866) @Janpot
30+
31+
### Docs
32+
33+
- &#8203;<!-- 16 --> Improve DashboardLayout navigation docs (#3864) @apedroferreira
34+
- &#8203;<!-- 13 --> Fix Core example (#3847) @bharatkashyap
35+
- &#8203;<!-- 07 --> Fix issues with DashboardLayout in Toolpad Core homepage (#3893) @apedroferreira
36+
- &#8203;<!-- 06 --> Fix grid layout in examples (#3848) @Janpot
37+
- &#8203;<!-- 05 --> Fix missing Studio examples grid (#3897) @bharatkashyap
38+
- &#8203;<!-- 04 --> Add PageContainer content and make the theme follow the docs theme (#3895) @Janpot
39+
- &#8203;<!-- 03 --> Improve Core tutorial (#3874) @bharatkashyap
40+
- &#8203;<!-- 02 --> Core docs edits (#3844) @prakhargupta1
41+
42+
### Core
43+
44+
- &#8203;<!-- 12 --> Upgrade `inquirer` to `@inquirer/prompts` (#3843) @bharatkashyap
45+
- &#8203;<!-- 08 --> Export `@mui/toolpad/internals` (#3873) @Janpot
46+
47+
All contributors of this release in alphabetical order: @apedroferreira, @bharatkashyap, @Janpot, @prakhargupta1
48+
49+
## v0.4.0
450

551
<!-- generated comparing v0.3.2..master -->
652

docs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docs",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": true,
55
"author": "MUI Toolpad",
66
"license": "MIT",

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"npmClient": "pnpm"
55
}

packages/create-toolpad-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-toolpad-app",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"keywords": [
55
"react",
66
"toolpad",

packages/create-toolpad-app/src/index.ts

+19-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,14 @@ const scaffoldStudioProject = async (absolutePath: string, installFlag: boolean)
171171
}
172172
};
173173

174-
const scaffoldCoreProject = async (absolutePath: string): Promise<void> => {
174+
interface ScaffoldProjectOptions {
175+
coreVersion?: string;
176+
}
177+
178+
const scaffoldCoreProject = async (
179+
absolutePath: string,
180+
{ coreVersion }: ScaffoldProjectOptions = {},
181+
): Promise<void> => {
175182
// eslint-disable-next-line no-console
176183
console.log();
177184
// eslint-disable-next-line no-console
@@ -181,7 +188,10 @@ const scaffoldCoreProject = async (absolutePath: string): Promise<void> => {
181188
// eslint-disable-next-line no-console
182189
console.log();
183190
const pkg = await findCtaPackageJson();
184-
const files = generateProject({ name: path.basename(absolutePath), version: pkg.version });
191+
const files = generateProject({
192+
name: path.basename(absolutePath),
193+
version: coreVersion || pkg.version,
194+
});
185195
await writeFiles(absolutePath, files);
186196

187197
// eslint-disable-next-line no-console
@@ -237,6 +247,10 @@ const run = async () => {
237247
describe: 'Install dependencies',
238248
default: true,
239249
})
250+
.option('core-version', {
251+
type: 'string',
252+
describe: 'Use a specific version of Toolpad Core',
253+
})
240254
.option('example', {
241255
type: 'string',
242256
describe:
@@ -297,7 +311,9 @@ const run = async () => {
297311
await scaffoldStudioProject(absolutePath, installFlag);
298312
} else {
299313
// Otherwise, create a new project with Toolpad Core
300-
await scaffoldCoreProject(absolutePath);
314+
await scaffoldCoreProject(absolutePath, {
315+
coreVersion: args.coreVersion,
316+
});
301317
}
302318

303319
const changeDirectoryInstruction =

packages/create-toolpad-app/tests/index.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ test(
9797
'create-toolpad-app can bootstrap a Toolpad Core app',
9898
async () => {
9999
testDir = await fs.mkdtemp(path.resolve(os.tmpdir(), './test-app-'));
100-
cp = execa(cliPath, [testDir], {
100+
cp = execa(cliPath, [testDir, '--coreVersion', 'latest'], {
101101
cwd: currentDirectory,
102102
});
103103
cp.stdout?.pipe(process.stdout);

packages/eslint-plugin-material-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-plugin-material-ui",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": true,
55
"description": "Custom eslint rules for MUI.",
66
"main": "src/index.js",

packages/toolpad-core/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@toolpad/core",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"author": "Toolpad Team",
55
"description": "Dashboard framework powered by MUI.",
66
"main": "./build/index.js",

packages/toolpad-studio-components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@toolpad/studio-components",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "Build MUI apps quickly",
55
"author": "MUI Toolpad team",
66
"homepage": "https://github.com/mui/mui-toolpad#readme",

packages/toolpad-studio-runtime/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@toolpad/studio-runtime",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "Build MUI apps quickly",
55
"author": "MUI Toolpad team",
66
"homepage": "https://github.com/mui/mui-toolpad#readme",

packages/toolpad-studio/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@toolpad/studio",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"license": "MIT",
55
"bin": {
66
"toolpad-studio": "./cli.mjs"

packages/toolpad-utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@toolpad/utils",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"description": "Shared utilities used by Toolpad packages.",
55
"author": "MUI Toolpad team",
66
"homepage": "https://github.com/mui/mui-toolpad#readme",

playground/nextjs-pages/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playground-nextjs-pages",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
@@ -12,12 +12,12 @@
1212
"@mui/icons-material": "5.16.4",
1313
"@mui/material": "5.16.4",
1414
"@mui/material-nextjs": "5.16.4",
15-
"next-auth": "beta",
1615
"@toolpad/core": "workspace:*",
1716
"@types/react": "18.3.3",
1817
"@types/react-dom": "18.3.0",
1918
"eslint-config-next": "14.2.5",
2019
"next": "14.2.5",
20+
"next-auth": "beta",
2121
"react": "18.3.1",
2222
"react-dom": "18.3.1"
2323
}

playground/nextjs/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playground-nextjs",
3-
"version": "0.4.0",
3+
"version": "0.5.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

pnpm-lock.yaml

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
"recharts": "alpha"
1515
},
1616
"type": "module",
17-
"version": "0.4.0"
17+
"version": "0.5.0"
1818
}

0 commit comments

Comments
 (0)