From b2fdcb06a1b87a80ef15afc37bdd7479c637591b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcholas=20Oliveira?= Date: Mon, 14 Oct 2024 16:42:33 -0300 Subject: [PATCH] chore: more fixes --- package-lock.json | 126 ++++++++++++++++++++++++++++++++---- package.json | 4 +- packages/hooks/package.json | 48 -------------- 3 files changed, 115 insertions(+), 63 deletions(-) delete mode 100644 packages/hooks/package.json diff --git a/package-lock.json b/package-lock.json index a9150713a..92111d3ab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,9 +8,7 @@ "name": "@10up/headstartwp", "version": "1.0.0", "workspaces": [ - "packages/core", - "packages/next", - "packages/primitives", + "packages/*", "projects/*", "wp/*" ], @@ -96,15 +94,8 @@ } }, "node_modules/@10up/next-redis-cache-provider": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/@10up/next-redis-cache-provider/-/next-redis-cache-provider-1.0.0.tgz", - "integrity": "sha512-aOfgNGpkJd/5f5XObZ5sA2aiJkbXGDpO0zJqDsGMldSB7Jvi5uq/9tgqp4orZeP25iBJzxeb9o0EJ41JPCj0YA==", - "dependencies": { - "ioredis": "^5.3.1" - }, - "peerDependencies": { - "next": ">= 13.2.0" - } + "resolved": "packages/next-redis-cache-provider", + "link": true }, "node_modules/@10up/stylelint-config": { "version": "3.0.0", @@ -5002,6 +4993,12 @@ "url": "https://opencollective.com/libvips" } }, + "node_modules/@ioredis/as-callback": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@ioredis/as-callback/-/as-callback-3.0.0.tgz", + "integrity": "sha512-Kqv1rZ3WbgOrS+hgzJ5xG5WQuhvzzSTRYvNeyPMLOAM78MHSnuKI20JeJGbpuAt//LCuP0vsexZcorqW7kWhJg==", + "dev": true + }, "node_modules/@ioredis/commands": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz", @@ -9511,6 +9508,16 @@ "rxjs": "^6.4.0" } }, + "node_modules/@types/ioredis-mock": { + "version": "8.2.5", + "resolved": "https://registry.npmjs.org/@types/ioredis-mock/-/ioredis-mock-8.2.5.tgz", + "integrity": "sha512-cZyuwC9LGtg7s5G9/w6rpy3IOZ6F/hFR0pQlWYZESMo1xQUYbDpa6haqB4grTePjsGzcB/YLBFCjqRunK5wieg==", + "dev": true, + "dependencies": { + "@types/node": "*", + "ioredis": ">=5" + } + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", @@ -19333,6 +19340,26 @@ "pend": "~1.2.0" } }, + "node_modules/fengari": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/fengari/-/fengari-0.1.4.tgz", + "integrity": "sha512-6ujqUuiIYmcgkGz8MGAdERU57EIluGGPSUgGPTsco657EHa+srq0S3/YUl/r9kx1+D+d4rGfYObd+m8K22gB1g==", + "dev": true, + "dependencies": { + "readline-sync": "^1.4.9", + "sprintf-js": "^1.1.1", + "tmp": "^0.0.33" + } + }, + "node_modules/fengari-interop": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/fengari-interop/-/fengari-interop-0.1.3.tgz", + "integrity": "sha512-EtZ+oTu3kEwVJnoymFPBVLIbQcCoy9uWCVnMA6h3M/RqHkUBsLYp29+RRHf9rKr6GwjubWREU1O7RretFIXjHw==", + "dev": true, + "peerDependencies": { + "fengari": "^0.1.0" + } + }, "node_modules/figgy-pudding": { "version": "3.5.2", "resolved": "https://registry.npmjs.org/figgy-pudding/-/figgy-pudding-3.5.2.tgz", @@ -21509,6 +21536,38 @@ "url": "https://opencollective.com/ioredis" } }, + "node_modules/ioredis-mock": { + "version": "8.9.0", + "resolved": "https://registry.npmjs.org/ioredis-mock/-/ioredis-mock-8.9.0.tgz", + "integrity": "sha512-yIglcCkI1lvhwJVoMsR51fotZVsPsSk07ecTCgRTRlicG0Vq3lke6aAaHklyjmRNRsdYAgswqC2A0bPtQK4LSw==", + "dev": true, + "dependencies": { + "@ioredis/as-callback": "^3.0.0", + "@ioredis/commands": "^1.2.0", + "fengari": "^0.1.4", + "fengari-interop": "^0.1.3", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12.22" + }, + "peerDependencies": { + "@types/ioredis-mock": "^8", + "ioredis": "^5" + } + }, + "node_modules/ioredis-mock/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/ipaddr.js": { "version": "1.9.1", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", @@ -29665,6 +29724,15 @@ "node": ">=8.10.0" } }, + "node_modules/readline-sync": { + "version": "1.4.10", + "resolved": "https://registry.npmjs.org/readline-sync/-/readline-sync-1.4.10.tgz", + "integrity": "sha512-gNva8/6UAe8QYepIQH/jQ2qn91Qj0B9sYjMBBs3QOB8F2CXcKgLxQaJRP76sWVRQt+QU+8fAkCbCvjjMFu7Ycw==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, "node_modules/recast": { "version": "0.23.9", "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.9.tgz", @@ -36323,6 +36391,40 @@ "react": ">= 17.0.2" } }, + "packages/next-redis-cache-provider": { + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "ioredis": "^5.3.1" + }, + "devDependencies": { + "@types/ioredis-mock": "^8.2.5", + "@types/jest": "^29.0.3", + "@types/node": "^18.15.11", + "ioredis-mock": "^8.9.0", + "jest": "^29.0.3", + "ts-jest": "^29.0.1", + "typescript": "^5.5.3" + }, + "peerDependencies": { + "next": ">= 13.2.0" + } + }, + "packages/next-redis-cache-provider/node_modules/@types/node": { + "version": "18.19.55", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.55.tgz", + "integrity": "sha512-zzw5Vw52205Zr/nmErSEkN5FLqXPuKX/k5d1D7RKHATGqU7y6YfX9QxZraUzUrFGqH6XzOzG196BC35ltJC4Cw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "packages/next-redis-cache-provider/node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, "packages/next/node_modules/@testing-library/dom": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/@testing-library/dom/-/dom-10.4.0.tgz", diff --git a/package.json b/package.json index 2966f67c5..f756336bd 100644 --- a/package.json +++ b/package.json @@ -32,9 +32,7 @@ "publish": "npm run build:packages && npx changeset publish" }, "workspaces": [ - "packages/core", - "packages/next", - "packages/primitives", + "packages/*", "projects/*", "wp/*" ], diff --git a/packages/hooks/package.json b/packages/hooks/package.json deleted file mode 100644 index 5e06021a8..000000000 --- a/packages/hooks/package.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "name": "@10up/react-hooks", - "version": "1.2.3", - "description": "Battle tested hooks that can be reused and are safe to use within SSR environments.", - "homepage": "https://github.com/10up/headstartwp/blob/develop/packages/hooks/README.md", - "license": "MIT", - "author": "10up (https://10up.com/)", - "main": "dist/react-hooks.js", - "module": "dist/react-hooks.mjs", - "typings": "dist/react-hooks.d.ts", - "publishConfig": { - "access": "public" - }, - "scripts": { - "build": "rollup -c", - "test:watch": "jest --selectProjects dom --watch", - "create-hook": "plop" - }, - "exports": { - ".": { - "import": "./dist/react-hooks.mjs", - "require": "./dist/react-hooks.js", - "default": "./dist/react-hooks.mjs" - } - }, - "devDependencies": { - "@testing-library/jest-dom": "^5.16.4", - "@testing-library/react": "^12.1.5", - "@testing-library/react-hooks": "^8.0.1", - "@testing-library/user-event": "^13.5.0", - "@types/jest": "^29.0.3", - "@types/react": "^18.2.65", - "esbuild": "^0.14.39", - "jest": "^29.0.3", - "plop": "^3.1.0", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "rollup": "^2.73.0", - "rollup-plugin-dts": "^4.2.1", - "rollup-plugin-esbuild": "^4.9.1", - "ts-jest": "^29.0.1", - "typescript": "^5.0.4" - }, - "peerDependencies": { - "react": "^16.8 || ^17 || ^18", - "react-dom": "^16.8 || ^17 || ^18" - } -}