From 29af25436f60e79715bdad7f35266edbe208c112 Mon Sep 17 00:00:00 2001 From: Stijn Van Hulle Date: Tue, 10 Oct 2023 12:52:49 +0200 Subject: [PATCH] fix: remove peerDependency for 'react' in swagger-client --- packages/react-template/package.json | 17 +++++++-- packages/swagger-client/package.json | 8 ++--- pnpm-lock.yaml | 52 +++++++++++++++++++++++----- 3 files changed, 62 insertions(+), 15 deletions(-) diff --git a/packages/react-template/package.json b/packages/react-template/package.json index ef38085f9..1674f9995 100644 --- a/packages/react-template/package.json +++ b/packages/react-template/package.json @@ -65,14 +65,25 @@ "@kubb/ts-codegen": "workspace:*", "@kubb/ts-config": "workspace:*", "@kubb/tsup-config": "workspace:*", - "@types/react": ">=18.2.25", + "@types/react": ">=18.2.27", "@types/react-reconciler": "^0.28.5", "eslint": "^8.51.0", + "react": "^18.2.0", + "react-devtools-core": "^4.28.4", "tsup": "^7.2.0" }, "peerDependencies": { - "@types/react": ">=18.2.25", - "react": ">=18.2.0" + "@types/react": ">=17.0.0", + "react": ">=17.0.0", + "react-devtools-core": "^4.19.1" + }, + "peerDependenciesMeta": { + "@types/react": { + "optional": true + }, + "react-devtools-core": { + "optional": true + } }, "packageManager": "pnpm@8.3.0", "engines": { diff --git a/packages/swagger-client/package.json b/packages/swagger-client/package.json index b40c28dac..88551f612 100644 --- a/packages/swagger-client/package.json +++ b/packages/swagger-client/package.json @@ -80,7 +80,8 @@ "@kubb/swagger": "workspace:*", "@kubb/swagger-ts": "workspace:*", "@kubb/ts-codegen": "workspace:*", - "change-case": "^4.1.2" + "change-case": "^4.1.2", + "react": "^18.2.0" }, "devDependencies": { "@kubb/eslint-config": "workspace:*", @@ -93,11 +94,10 @@ "typescript": "^5.2.2" }, "peerDependencies": { - "axios": "^1.4.0", - "react": "^18.2.0" + "axios": "^1.4.0" }, "peerDependenciesMeta": { - "react": { + "axios": { "optional": true } }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ebfdee78..ee956c0bd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -957,9 +957,6 @@ importers: auto-bind: specifier: ^4.0.0 version: 4.0.0 - react: - specifier: '>=18.2.0' - version: 18.2.0 react-reconciler: specifier: ^0.29.0 version: 0.29.0(react@18.2.0) @@ -974,14 +971,20 @@ importers: specifier: workspace:* version: link:../config/tsup-config '@types/react': - specifier: '>=18.2.25' - version: 18.2.25 + specifier: '>=18.2.27' + version: 18.2.27 '@types/react-reconciler': specifier: ^0.28.5 version: 0.28.5 eslint: specifier: ^8.51.0 version: 8.51.0 + react: + specifier: ^18.2.0 + version: 18.2.0 + react-devtools-core: + specifier: ^4.28.4 + version: 4.28.4 tsup: specifier: ^7.2.0 version: 7.2.0(@swc/core@1.3.82)(ts-node@10.9.1)(typescript@5.2.2) @@ -2834,7 +2837,7 @@ packages: /@types/react-reconciler@0.28.5: resolution: {integrity: sha512-Qrwgl4NxNYH1oAJSJtlMGu95uaeMqrGiKzxwI90VvofBkJAj4GxcCAsJMZkwdR/qAxlm84YEXa8Fqu2xXk0arw==} dependencies: - '@types/react': 18.2.25 + '@types/react': 18.2.27 dev: true /@types/react@18.2.25: @@ -2845,6 +2848,14 @@ packages: csstype: 3.1.2 dev: true + /@types/react@18.2.27: + resolution: {integrity: sha512-Wfv7B7FZiR2r3MIqbAlXoY1+tXm4bOqfz4oRr+nyXdBqapDBZ0l/IGcSlAfvxIHEEJjkPU0MYAc/BlFPOcrgLw==} + dependencies: + '@types/prop-types': 15.7.5 + '@types/scheduler': 0.16.3 + csstype: 3.1.2 + dev: true + /@types/sax@1.2.4: resolution: {integrity: sha512-pSAff4IAxJjfAXUG6tFkO7dsSbTmf8CtUpfhhZ5VhkRpC4628tJhh3+V6H1E+/Gs9piSzYKT5yzHO5M4GG9jkw==} dependencies: @@ -5853,7 +5864,6 @@ packages: hasBin: true dependencies: js-tokens: 4.0.0 - dev: false /loupe@2.3.6: resolution: {integrity: sha512-RaPMZKiMy8/JruncMU5Bt6na1eftNoo++R4Y+N2FrxkDVTrGvcyzFTsaGif4QTeKESheMGegbhw6iUAq+5A8zA==} @@ -6640,6 +6650,16 @@ packages: unpipe: 1.0.0 dev: false + /react-devtools-core@4.28.4: + resolution: {integrity: sha512-IUZKLv3CimeM07G3vX4H4loxVpByrzq3HvfTX7v9migalwvLs9ZY5D3S3pKR33U+GguYfBBdMMZyToFhsSE/iQ==} + dependencies: + shell-quote: 1.8.1 + ws: 7.5.9 + transitivePeerDependencies: + - bufferutil + - utf-8-validate + dev: true + /react-dom@18.2.0(react@18.2.0): resolution: {integrity: sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==} peerDependencies: @@ -6678,7 +6698,6 @@ packages: engines: {node: '>=0.10.0'} dependencies: loose-envify: 1.4.0 - dev: false /readable-stream@3.6.2: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} @@ -6965,6 +6984,10 @@ packages: resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} engines: {node: '>=8'} + /shell-quote@1.8.1: + resolution: {integrity: sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==} + dev: true + /shiki@0.14.4: resolution: {integrity: sha512-IXCRip2IQzKwxArNNq1S+On4KPML3Yyn8Zzs/xRgcgOWIr8ntIK3IKzjFPfjy/7kt9ZMjc+FItfqHRBg8b6tNQ==} dependencies: @@ -8183,6 +8206,19 @@ packages: /wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} + /ws@7.5.9: + resolution: {integrity: sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==} + engines: {node: '>=8.3.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + dev: true + /y18n@5.0.8: resolution: {integrity: sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==} engines: {node: '>=10'}