diff --git a/package-lock.json b/package-lock.json index 147ab070..c62b9326 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,6 @@ "name": "@hazae41/xswr", "version": "1.0.88", "license": "MIT", - "dependencies": { - "react": "^18.2.0" - }, "devDependencies": { "@types/react": "^18.0.21", "bunchee": "^2.0.1", @@ -18,6 +15,9 @@ "ttypescript": "^1.5.13", "typescript": "^4.8.4", "typescript-transform-paths": "^3.3.1" + }, + "peerDependencies": { + "react": "^16.11.0 || ^17.0.0 || ^18.0.0" } }, "node_modules/@cspotcode/source-map-support": { @@ -542,7 +542,8 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "peer": true }, "node_modules/jsonc-parser": { "version": "3.2.0", @@ -554,6 +555,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "peer": true, "dependencies": { "js-tokens": "^3.0.0 || ^4.0.0" }, @@ -643,6 +645,7 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "peer": true, "dependencies": { "loose-envify": "^1.1.0" }, @@ -1357,7 +1360,8 @@ "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "peer": true }, "jsonc-parser": { "version": "3.2.0", @@ -1369,6 +1373,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "peer": true, "requires": { "js-tokens": "^3.0.0 || ^4.0.0" } @@ -1433,6 +1438,7 @@ "version": "18.2.0", "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "peer": true, "requires": { "loose-envify": "^1.1.0" } diff --git a/package.json b/package.json index 8cedf47f..b9b6a7e7 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "@hazae41/xswr", - "version": "1.0.88", + "version": "1.0.89", "author": "hazae41", "license": "MIT", "description": "The simplest React data (re)fetching library ever made", @@ -13,8 +13,8 @@ "scripts": { "build": "rimraf dist && bunchee -m ./src/index.ts && ttsc && rimraf dist/libs" }, - "dependencies": { - "react": "^18.2.0" + "peerDependencies": { + "react": "^16.11.0 || ^17.0.0 || ^18.0.0" }, "devDependencies": { "@types/react": "^18.0.21", diff --git a/test/next/package-lock.json b/test/next/package-lock.json index f6c73964..a84d5139 100644 --- a/test/next/package-lock.json +++ b/test/next/package-lock.json @@ -8,6 +8,7 @@ "name": "test", "version": "0.1.0", "dependencies": { + "@hazae41/xswr": "^1.0.89", "next": "12.2.5", "react": "18.2.0", "react-dom": "18.2.0" @@ -85,6 +86,14 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/@hazae41/xswr": { + "version": "1.0.89", + "resolved": "https://registry.npmjs.org/@hazae41/xswr/-/xswr-1.0.89.tgz", + "integrity": "sha512-i0/aHHaU1GDwJJc4TfCCNFBJ4xrTlkebabADr9b39VADWTZH2ZDOLfteegW6qosz+1Uch+TQuuMHcxMkmotFmA==", + "peerDependencies": { + "react": "^16.11.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.10.4", "dev": true, @@ -3420,6 +3429,12 @@ "strip-json-comments": "^3.1.1" } }, + "@hazae41/xswr": { + "version": "1.0.89", + "resolved": "https://registry.npmjs.org/@hazae41/xswr/-/xswr-1.0.89.tgz", + "integrity": "sha512-i0/aHHaU1GDwJJc4TfCCNFBJ4xrTlkebabADr9b39VADWTZH2ZDOLfteegW6qosz+1Uch+TQuuMHcxMkmotFmA==", + "requires": {} + }, "@humanwhocodes/config-array": { "version": "0.10.4", "dev": true, diff --git a/test/next/package.json b/test/next/package.json index ff47ae33..2e68f220 100644 --- a/test/next/package.json +++ b/test/next/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@hazae41/xswr": "^1.0.89", "next": "12.2.5", "react": "18.2.0", "react-dom": "18.2.0"