Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for next <12 and react < 18 #71

Merged
merged 5 commits into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nasty-jobs-flash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@nextvalid/zod-request': minor
---

Remove nextjs < 12 and react 17 support
5 changes: 5 additions & 0 deletions .changeset/spicy-houses-invent.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@examples/next-classic': minor
---

Update http/expection and zod to latest
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![techdebt](https://img.shields.io/codeclimate/tech-debt/belgattitude/nextvalid?label=TechDebt&logo=code-climate&style=for-the-badge&labelColor=444)](https://codeclimate.com/github/belgattitude/nextvalid)
[![maintainability](https://img.shields.io/codeclimate/maintainability/belgattitude/nextvalid?label=Maintainability&logo=code-climate&style=for-the-badge&labelColor=444)](https://codeclimate.com/github/belgattitude/nextvalid)
[![license](https://img.shields.io/npm/l/@nextvalid/zod-request?style=for-the-badge&labelColor=000000)](https://github.com/belgattitude/nextvalid/blob/main/LICENSE)
[![ko-fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/belgattitude)

## Highlights

Expand All @@ -27,10 +26,12 @@ Open [an issue](https://github.com/belgattitude/nextvalid/issues).

Contributions are warmly appreciated. Have a look to the [CONTRIBUTING](https://github.com/belgattitude/nextvalid/blob/main/CONTRIBUTING.md) document.

## Sponsors :heart:
## Sponsors

If you are enjoying some of my OSS guides or libs for your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/belgattitude), a [coffee](https://ko-fi.com/belgattitude) or a dropped star. That gives me a tasty morning boost and help me to make some of my ideas come true 🙏
If my OSS work brightens your day, let's take it to new heights together!
[Sponsor](<[sponsorship](https://github.com/sponsors/belgattitude)>), [coffee](<(https://ko-fi.com/belgattitude)>),
or star – any gesture of support fuels my passion to improve. Thanks for being awesome! 🙏❤️

## License

MIT
MIT © [belgattitude](https://github.com/belgattitude) and contributors.
30 changes: 15 additions & 15 deletions examples/next-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@
"fix-staged": "lint-staged --allow-empty"
},
"dependencies": {
"@httpx/exception": "1.7.0",
"@httpx/exception": "2.1.1",
"@nextvalid/zod-request": "workspace:^",
"axios": "1.2.3",
"ky": "0.33.2",
"next": "13.1.4",
"pino": "8.8.0",
"axios": "1.5.0",
"ky": "1.0.1",
"next": "13.4.19",
"pino": "8.15.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"superjson": "1.12.2",
"zod": "3.20.2"
"superjson": "1.13.1",
"zod": "3.22.2"
},
"devDependencies": {
"@belgattitude/eslint-config-bases": "1.17.1",
"@types/node": "18.11.18",
"@types/react": "18.0.27",
"@types/react-dom": "18.0.10",
"@types/node": "20.6.2",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"cross-env": "7.0.3",
"eslint": "8.32.0",
"eslint-config-next": "13.1.4",
"postcss": "8.4.21",
"eslint": "8.49.0",
"eslint-config-next": "13.4.19",
"postcss": "8.4.29",
"prettier": "2.8.3",
"rimraf": "4.1.1",
"tailwindcss": "3.2.4",
"rimraf": "5.0.1",
"tailwindcss": "3.3.3",
"typescript": "4.9.4"
}
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"shell-quote": "1.7.4",
"typescript": "4.9.4"
},
"resolutions?": {
"eslint-plugin-react-hooks": "https://github.com/vercel/next.js/issues/52365"
},
"resolutions": {
"eslint-plugin-react-hooks": "4.6.0"
},
"engines": {
"node": ">=18.12"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/zod-request/.size-limit.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ module.exports = [
path: ["dist/esm/index.js"],
import: "*",
webpack: false,
limit: "1000B",
limit: "1200B",
},
{
name: "ESM (import everything with deps)",
path: ["dist/esm/index.js"],
import: "*",
webpack: true,
limit: "13.5KB",
limit: "20KB",
},
];
13 changes: 5 additions & 8 deletions packages/zod-request/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
[![techdebt](https://img.shields.io/codeclimate/tech-debt/belgattitude/nextvalid?label=TechDebt&logo=code-climate&style=for-the-badge&labelColor=444)](https://codeclimate.com/github/belgattitude/nextvalid)
[![maintainability](https://img.shields.io/codeclimate/maintainability/belgattitude/nextvalid?label=Maintainability&logo=code-climate&style=for-the-badge&labelColor=444)](https://codeclimate.com/github/belgattitude/nextvalid)
[![license](https://img.shields.io/npm/l/@nextvalid/zod-request?style=for-the-badge&labelColor=000000)](https://github.com/belgattitude/nextvalid/blob/main/LICENSE)
[![ko-fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/belgattitude)

## Highlights

Expand Down Expand Up @@ -67,14 +66,12 @@ export default withApiErrorHandler({

Open [an issue](https://github.com/belgattitude/nextvalid/issues).

## Contributors
## Sponsors

Contributions are warmly appreciated. Have a look to the [CONTRIBUTING](https://github.com/belgattitude/httpx/blob/nextvalid/CONTRIBUTING.md) document.

## Sponsors ♥

If you are enjoying some of my OSS guides or libs for your company, I'd really appreciate a [sponsorship](https://github.com/sponsors/belgattitude), a [coffee](https://ko-fi.com/belgattitude) or a dropped star. That gives me a tasty morning boost and help me to make some of my ideas come true 🙏
If my OSS work brightens your day, let's take it to new heights together!
[Sponsor](<[sponsorship](https://github.com/sponsors/belgattitude)>), [coffee](<(https://ko-fi.com/belgattitude)>),
or star – any gesture of support fuels my passion to improve. Thanks for being awesome! 🙏❤️

## License

MIT
MIT © [belgattitude](https://github.com/belgattitude) and contributors.
57 changes: 0 additions & 57 deletions packages/zod-request/jest.config.js

This file was deleted.

48 changes: 23 additions & 25 deletions packages/zod-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@
"fix-all-files": "eslint . --ext .ts,.tsx,.js,.jsx,.mjs,.cjs,.mts,.cts --fix"
},
"dependencies": {
"@httpx/exception": "^1.7.0",
"zod": "^3.20.2"
"@httpx/exception": "^2.1.1",
"zod": "^3.22.0"
},
"peerDependencies": {
"@types/node": "*",
"next": "^11.0.0 || ^12.0.0 || ^13.0.0",
"react": "^17.0.2 || ^18.2.0",
"react-dom": "^17.0.2 || ^18.2.0",
"next": "^12.0.0 || ^13.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.5.0 || ^5.0.0"
},
"peerDependenciesMeta": {
Expand All @@ -84,34 +84,32 @@
},
"devDependencies": {
"@belgattitude/eslint-config-bases": "1.35.0",
"@size-limit/file": "8.1.2",
"@size-limit/webpack": "8.1.2",
"@size-limit/webpack-why": "8.1.2",
"@types/jest": "29.2.6",
"@types/node": "18.11.18",
"@vitest/coverage-istanbul": "0.31.2",
"@size-limit/file": "9.0.0",
"@size-limit/webpack": "9.0.0",
"@size-limit/webpack-why": "9.0.0",
"@types/jest": "29.5.5",
"@types/node": "20.6.2",
"@vitest/coverage-istanbul": "0.34.3",
"cross-env": "7.0.3",
"es-check": "7.0.1",
"eslint": "8.32.0",
"get-tsconfig": "4.3.0",
"jest": "29.3.1",
"next": "^13.1.4",
"es-check": "7.1.1",
"eslint": "8.49.0",
"get-tsconfig": "4.7.0",
"next": "13.4.19",
"npm-run-all": "4.1.5",
"prettier": "2.8.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"rimraf": "5.0.1",
"size-limit": "8.1.2",
"ts-jest": "29.0.5",
"tslib": "2.4.1",
"size-limit": "9.0.0",
"tslib": "2.6.2",
"tsup": "6.5.0",
"typedoc": "0.23.24",
"typedoc-plugin-markdown": "3.14.0",
"typedoc": "0.25.1",
"typedoc-plugin-markdown": "3.16.0",
"typescript": "4.9.4",
"vite": "4.0.4",
"vite-tsconfig-paths": "4.0.5",
"vitest": "0.31.2",
"webpack": "5.75.0"
"vite": "4.4.9",
"vite-tsconfig-paths": "4.2.1",
"vitest": "0.34.3",
"webpack": "5.88.2"
},
"engines": {
"node": ">=18.12"
Expand Down
Loading