Skip to content

Commit

Permalink
v2.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCates committed Oct 21, 2023
1 parent 5206af2 commit 48cd293
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 20 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion dist/src/printer.js

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

17 changes: 9 additions & 8 deletions dist/src/templates/new/app/layout.tsx.template
Original file line number Diff line number Diff line change
@@ -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'
}
Expand All @@ -13,12 +14,12 @@ export interface LayoutI {

export default function RootLayout({ children }: LayoutI) {
return (
<ReduxProvider>
<Suspense>
<html lang="en">
<body>{children}</body>
</html>
</Suspense>
</ReduxProvider>
<html lang="en">
<body>
<ReduxProvider>
<Suspense>{children}</Suspense>
</ReduxProvider>
</body>
</html>
)
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
17 changes: 9 additions & 8 deletions src/templates/new/app/layout.tsx.template
Original file line number Diff line number Diff line change
@@ -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'
}
Expand All @@ -13,12 +14,12 @@ export interface LayoutI {

export default function RootLayout({ children }: LayoutI) {
return (
<ReduxProvider>
<Suspense>
<html lang="en">
<body>{children}</body>
</html>
</Suspense>
</ReduxProvider>
<html lang="en">
<body>
<ReduxProvider>
<Suspense>{children}</Suspense>
</ReduxProvider>
</body>
</html>
)
}

0 comments on commit 48cd293

Please sign in to comment.