Skip to content

Commit

Permalink
v0.5.0 (#3898)
Browse files Browse the repository at this point in the history
Co-authored-by: MUI bot <[email protected]>
  • Loading branch information
apedroferreira and Janpot authored Aug 6, 2024
1 parent dd126f1 commit 7f1f45f
Show file tree
Hide file tree
Showing 16 changed files with 82 additions and 20 deletions.
48 changes: 47 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,52 @@
# Changelog

## 0.4.0
## v0.5.0

<!-- generated comparing v0.4.0..master -->

_Aug 5, 2024_

A big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:

This is the first production-ready release of Toolpad Core! This version includes:

- A new SignInPage component
- Updates to the `create-toolpad-app` CLI to bootstrap Toolpad Core projects
- Many documentation updates and improvements

### Breaking Changes

The `create-toolpad-app` CLI now by default bootstraps a Toolpad Core project.

Please use the `--studio` flag to generate a Toolpad Studio project.

### `@toolpad/core`

- &#8203;<!-- 09 --> Add authentication to Toolpad Core (#3609) @bharatkashyap
- &#8203;<!-- 01 --> Make Core the default project (#3868) @bharatkashyap
- &#8203;<!-- 11 --> Make navigation item segments optional (#3838) @apedroferreira
- &#8203;<!-- 17 --> Ensure Material UI v5 compatibility (#3894) @Janpot
- &#8203;<!-- 10 --> Bring in some fixes from the next update branch (#3866) @Janpot

### Docs

- &#8203;<!-- 16 --> Improve DashboardLayout navigation docs (#3864) @apedroferreira
- &#8203;<!-- 13 --> Fix Core example (#3847) @bharatkashyap
- &#8203;<!-- 07 --> Fix issues with DashboardLayout in Toolpad Core homepage (#3893) @apedroferreira
- &#8203;<!-- 06 --> Fix grid layout in examples (#3848) @Janpot
- &#8203;<!-- 05 --> Fix missing Studio examples grid (#3897) @bharatkashyap
- &#8203;<!-- 04 --> Add PageContainer content and make the theme follow the docs theme (#3895) @Janpot
- &#8203;<!-- 03 --> Improve Core tutorial (#3874) @bharatkashyap
- &#8203;<!-- 02 --> Core docs edits (#3844) @prakhargupta1

### Core

- &#8203;<!-- 12 --> Upgrade `inquirer` to `@inquirer/prompts` (#3843) @bharatkashyap
- &#8203;<!-- 08 --> Export `@mui/toolpad/internals` (#3873) @Janpot

All contributors of this release in alphabetical order: @apedroferreira, @bharatkashyap, @Janpot, @prakhargupta1

## v0.4.0

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

Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docs",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"author": "MUI Toolpad",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.4.0",
"version": "0.5.0",
"npmClient": "pnpm"
}
2 changes: 1 addition & 1 deletion packages/create-toolpad-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-toolpad-app",
"version": "0.4.0",
"version": "0.5.0",
"keywords": [
"react",
"toolpad",
Expand Down
22 changes: 19 additions & 3 deletions packages/create-toolpad-app/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ const scaffoldStudioProject = async (absolutePath: string, installFlag: boolean)
}
};

const scaffoldCoreProject = async (absolutePath: string): Promise<void> => {
interface ScaffoldProjectOptions {
coreVersion?: string;
}

const scaffoldCoreProject = async (
absolutePath: string,
{ coreVersion }: ScaffoldProjectOptions = {},
): Promise<void> => {
// eslint-disable-next-line no-console
console.log();
// eslint-disable-next-line no-console
Expand All @@ -181,7 +188,10 @@ const scaffoldCoreProject = async (absolutePath: string): Promise<void> => {
// eslint-disable-next-line no-console
console.log();
const pkg = await findCtaPackageJson();
const files = generateProject({ name: path.basename(absolutePath), version: pkg.version });
const files = generateProject({
name: path.basename(absolutePath),
version: coreVersion || pkg.version,
});
await writeFiles(absolutePath, files);

// eslint-disable-next-line no-console
Expand Down Expand Up @@ -237,6 +247,10 @@ const run = async () => {
describe: 'Install dependencies',
default: true,
})
.option('core-version', {
type: 'string',
describe: 'Use a specific version of Toolpad Core',
})
.option('example', {
type: 'string',
describe:
Expand Down Expand Up @@ -297,7 +311,9 @@ const run = async () => {
await scaffoldStudioProject(absolutePath, installFlag);
} else {
// Otherwise, create a new project with Toolpad Core
await scaffoldCoreProject(absolutePath);
await scaffoldCoreProject(absolutePath, {
coreVersion: args.coreVersion,
});
}

const changeDirectoryInstruction =
Expand Down
2 changes: 1 addition & 1 deletion packages/create-toolpad-app/tests/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ test(
'create-toolpad-app can bootstrap a Toolpad Core app',
async () => {
testDir = await fs.mkdtemp(path.resolve(os.tmpdir(), './test-app-'));
cp = execa(cliPath, [testDir], {
cp = execa(cliPath, [testDir, '--coreVersion', 'latest'], {
cwd: currentDirectory,
});
cp.stdout?.pipe(process.stdout);
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-material-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-material-ui",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"description": "Custom eslint rules for MUI.",
"main": "src/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toolpad/core",
"version": "0.4.0",
"version": "0.5.0",
"author": "Toolpad Team",
"description": "Dashboard framework powered by MUI.",
"main": "./build/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-studio-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toolpad/studio-components",
"version": "0.4.0",
"version": "0.5.0",
"description": "Build MUI apps quickly",
"author": "MUI Toolpad team",
"homepage": "https://github.com/mui/mui-toolpad#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-studio-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toolpad/studio-runtime",
"version": "0.4.0",
"version": "0.5.0",
"description": "Build MUI apps quickly",
"author": "MUI Toolpad team",
"homepage": "https://github.com/mui/mui-toolpad#readme",
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-studio/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toolpad/studio",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",
"bin": {
"toolpad-studio": "./cli.mjs"
Expand Down
2 changes: 1 addition & 1 deletion packages/toolpad-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toolpad/utils",
"version": "0.4.0",
"version": "0.5.0",
"description": "Shared utilities used by Toolpad packages.",
"author": "MUI Toolpad team",
"homepage": "https://github.com/mui/mui-toolpad#readme",
Expand Down
4 changes: 2 additions & 2 deletions playground/nextjs-pages/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playground-nextjs-pages",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand All @@ -12,12 +12,12 @@
"@mui/icons-material": "5.16.4",
"@mui/material": "5.16.4",
"@mui/material-nextjs": "5.16.4",
"next-auth": "beta",
"@toolpad/core": "workspace:*",
"@types/react": "18.3.3",
"@types/react-dom": "18.3.0",
"eslint-config-next": "14.2.5",
"next": "14.2.5",
"next-auth": "beta",
"react": "18.3.1",
"react-dom": "18.3.1"
}
Expand Down
2 changes: 1 addition & 1 deletion playground/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "playground-nextjs",
"version": "0.4.0",
"version": "0.5.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"recharts": "alpha"
},
"type": "module",
"version": "0.4.0"
"version": "0.5.0"
}

0 comments on commit 7f1f45f

Please sign in to comment.