diff --git a/CHANGELOG.md b/CHANGELOG.md index d2a8922..09a23ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # 🛠️ CHANGELOG +## 2.2.4 + +- Fix default `layout.tsx` suspense boundary. + +- Update default counter slice to reset properly. + ## 2.2.3 - Make sure to add `eslint-plugin-n` to `package.json` diff --git a/README.md b/README.md index 45294a6..5179b90 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ ## Automation Tooling for Next, Redux and Prisma ![license](https://img.shields.io/badge/license-AGPLv3-blue.svg) -![version](https://img.shields.io/badge/version-2.2.3-blue.svg) +![version](https://img.shields.io/badge/version-2.2.4-blue.svg) [![CircleCI](https://circleci.com/gh/PrinterFramework/CLI.svg?style=svg)](https://circleci.com/gh/PrinterFramework/CLI) **Printer v1.x.x** is compatible with the old Next patterns. You can review the documentation on the v1 website: [v1.prntr.click/docs](https://v1.prntr.click/docs) diff --git a/dist/src/printer.js b/dist/src/printer.js index 0757bdf..4fdb80e 100755 --- a/dist/src/printer.js +++ b/dist/src/printer.js @@ -59,7 +59,7 @@ var prisma_1 = require("./generators/prisma"); var superagent_1 = require("./generators/superagent"); exports.Printer = new commander_1.Command('🖨️ Printer'); exports.Printer - .version('2.2.3') + .version('2.2.4') .description('🖨️ Printer: Automation Tooling for Next, Redux and Prisma.') .option('-a, --no-action', 'do not inject actions', false) .option('-s, --no-state', 'do not inject state', false); diff --git a/dist/src/templates/new/app/layout.tsx.template b/dist/src/templates/new/app/layout.tsx.template index 6ea262d..f0ae4c2 100755 --- a/dist/src/templates/new/app/layout.tsx.template +++ b/dist/src/templates/new/app/layout.tsx.template @@ -1,8 +1,9 @@ import 'scss/printer.scss' +import { Metadata } from 'next' import { ReactNode, Suspense } from 'react' import { ReduxProvider } from 'redux/provider' -export const metadata = { +export const metadata: Metadata = { title: 'Printer', description: 'Automation Tooling for Next, Redux and Prisma' } @@ -13,12 +14,12 @@ export interface LayoutI { export default function RootLayout({ children }: LayoutI) { return ( - - - - {children} - - - + + + + {children} + + + ) } diff --git a/package.json b/package.json index 123e1c8..4ef8202 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@printerframework/cli", "description": "🖨️ Automation Tooling for Next, Redux and Prisma.", - "version": "2.2.3", + "version": "2.2.4", "private": false, "preferGlobal": true, "repository": "https://github.com/PrinterFramework/CLI.git", diff --git a/src/printer.ts b/src/printer.ts index f8c6fd4..3fabf48 100644 --- a/src/printer.ts +++ b/src/printer.ts @@ -20,7 +20,7 @@ import { SuperagentTypes, injectSupergent } from './generators/superagent' export const Printer = new Command('🖨️ Printer') Printer - .version('2.2.3') + .version('2.2.4') .description('🖨️ Printer: Automation Tooling for Next, Redux and Prisma.') .option('-a, --no-action', 'do not inject actions', false) .option('-s, --no-state', 'do not inject state', false) diff --git a/src/templates/new/app/layout.tsx.template b/src/templates/new/app/layout.tsx.template index 6ea262d..f0ae4c2 100644 --- a/src/templates/new/app/layout.tsx.template +++ b/src/templates/new/app/layout.tsx.template @@ -1,8 +1,9 @@ import 'scss/printer.scss' +import { Metadata } from 'next' import { ReactNode, Suspense } from 'react' import { ReduxProvider } from 'redux/provider' -export const metadata = { +export const metadata: Metadata = { title: 'Printer', description: 'Automation Tooling for Next, Redux and Prisma' } @@ -13,12 +14,12 @@ export interface LayoutI { export default function RootLayout({ children }: LayoutI) { return ( - - - - {children} - - - + + + + {children} + + + ) }