diff --git a/.changeset/weak-swans-peel.md b/.changeset/weak-swans-peel.md new file mode 100644 index 000000000..a5d4c934d --- /dev/null +++ b/.changeset/weak-swans-peel.md @@ -0,0 +1,16 @@ +--- +'hostd': minor +'renterd': minor +'@siafoundation/data-sources': minor +'@siafoundation/design-system': minor +'@siafoundation/fonts': minor +'@siafoundation/react-core': minor +'@siafoundation/react-hostd': minor +'@siafoundation/react-renterd': minor +'@siafoundation/react-sia-central': minor +'@siafoundation/react-walletd': minor +'@siafoundation/sia-central': minor +'@siafoundation/units': minor +--- + +Refactored internal dependencies. diff --git a/libs/data-sources/package.json b/libs/data-sources/package.json index db32c4b89..ec8239d49 100644 --- a/libs/data-sources/package.json +++ b/libs/data-sources/package.json @@ -4,11 +4,13 @@ "version": "0.1.0", "private": true, "license": "MIT", - "dependencies": { + "peerDependencies": { "axios": "^0.27.2", + "lodash": "^4.17.21" + }, + "dependencies": { "feed": "^4.2.2", "rss-parser": "^3.13.0", - "lodash": "^4.17.21", "@notionhq/client": "^2.2.8", "gray-matter": "^4.0.3", "next-mdx-remote": "^4.0.3", diff --git a/libs/design-system/.eslintrc.json b/libs/design-system/.eslintrc.json index 1e06b264c..98b64a0cd 100644 --- a/libs/design-system/.eslintrc.json +++ b/libs/design-system/.eslintrc.json @@ -1,6 +1,14 @@ { "extends": ["plugin:@nx/react", "../../.eslintrc.json"], "ignorePatterns": ["!**/*"], + "rules": { + "@nx/dependency-checks": [ + "error", + { + "ignoredFiles": ["libs/design-system/tailwind.config.js"] + } + ] + }, "overrides": [ { "files": ["*.json"], diff --git a/libs/design-system/package.json b/libs/design-system/package.json index 0c63bd226..69819ca29 100644 --- a/libs/design-system/package.json +++ b/libs/design-system/package.json @@ -3,25 +3,32 @@ "description": "React-based design system used across Sia apps and websites", "version": "0.63.0", "license": "MIT", - "dependencies": { + "peerDependencies": { "@siafoundation/react-icons": "^0.1.0", "@siafoundation/react-core": "^0.15.0", "@siafoundation/units": "^0.2.0", "@siafoundation/types": "^0.0.1", - "@visx/group": "2.17.0", - "@visx/react-spring": "2.18.0", - "@visx/glyph": "2.17.0", "@siafoundation/react-sia-central": "^0.0.3", + "react": "^18.2.0", + "next": "^13.5.2", + "swr": "^2.1.1", "class-variance-authority": "^0.7.0", "lodash": "^4.17.21", - "react": "18.2.0", - "swr": "^2.1.1", "bignumber.js": "^9.0.2", - "next": "13.5.2", - "react-idle-timer": "^5.7.2", "axios": "^0.27.2", "react-hook-form": "^7.43.9", "use-local-storage-state": "^18.3.3", + "tailwindcss": "^3.2.7", + "tailwind-scrollbar": "^2.0.1", + "tailwindcss-text-fill": "^0.2.0", + "tailwindcss-shadow-fill": "^1.0.1", + "@tailwindcss/container-queries": "^0.1.1" + }, + "dependencies": { + "@visx/group": "2.17.0", + "@visx/react-spring": "2.18.0", + "@visx/glyph": "2.17.0", + "react-idle-timer": "^5.7.2", "formik": "^2.2.9", "yup": "^0.32.11", "react-qr-code": "^2.0.7", @@ -43,11 +50,6 @@ "@visx/xychart": "^2.18.0", "react-dropzone": "^14.2.3", "@radix-ui/react-radio-group": "^1.0.0", - "tailwindcss": "3.2.7", - "tailwind-scrollbar": "^2.0.1", - "tailwindcss-text-fill": "^0.2.0", - "tailwindcss-shadow-fill": "^1.0.1", - "@tailwindcss/container-queries": "^0.1.1", "@radix-ui/react-accordion": "^1.0.0", "@radix-ui/react-avatar": "^1.0.0", "react-currency-input-field": "^3.6.5", @@ -66,7 +68,9 @@ "@radix-ui/react-tabs": "^1.0.0", "@radix-ui/react-tooltip": "^1.0.0", "clipboard-polyfill": "^3.0.3", - "react-hot-toast": "^2.2.0", + "react-hot-toast": "^2.2.0" + }, + "devDependencies": { "@nx/react": "16.8.1" }, "types": "./src/index.d.ts" diff --git a/libs/design-system/tsconfig.lib.json b/libs/design-system/tsconfig.lib.json index 3b8c77e17..621db72d7 100644 --- a/libs/design-system/tsconfig.lib.json +++ b/libs/design-system/tsconfig.lib.json @@ -6,8 +6,7 @@ }, "files": [ "../../node_modules/@nx/react/typings/cssmodule.d.ts", - "../../node_modules/@nx/react/typings/image.d.ts", - "../../node_modules/@types/carbon__icons-react/index.d.ts" + "../../node_modules/@nx/react/typings/image.d.ts" ], "exclude": [ "**/*.spec.ts", diff --git a/libs/fonts/package.json b/libs/fonts/package.json index 3c8dbd297..b16c84a9d 100644 --- a/libs/fonts/package.json +++ b/libs/fonts/package.json @@ -3,9 +3,9 @@ "description": "Next font configuration for use across apps.", "version": "0.0.1", "license": "MIT", - "dependencies": { + "peerDependencies": { "class-variance-authority": "^0.7.0", - "next": "13.5.2" + "next": "^13.5.2" }, "types": "./src/index.d.ts" } diff --git a/libs/react-core/package.json b/libs/react-core/package.json index e97804662..4c99c8d40 100644 --- a/libs/react-core/package.json +++ b/libs/react-core/package.json @@ -3,12 +3,14 @@ "description": "Core library for building React hooks for interacting with a Sia daemon.", "version": "0.15.0", "license": "MIT", - "dependencies": { + "peerDependencies": { + "react": "^18.2.0", + "next": "^13.5.2", "swr": "^2.1.1", - "react": "18.2.0", "axios": "^0.27.2", - "next": "13.5.2", - "use-local-storage-state": "^18.3.3", + "use-local-storage-state": "^18.3.3" + }, + "dependencies": { "detect-gpu": "^5.0.34" }, "types": "./src/index.d.ts" diff --git a/libs/react-hostd/package.json b/libs/react-hostd/package.json index b178215bd..a4c57620d 100644 --- a/libs/react-hostd/package.json +++ b/libs/react-hostd/package.json @@ -3,10 +3,10 @@ "description": " React hooks for interacting with `hostd`.", "version": "0.10.0", "license": "MIT", - "dependencies": { + "peerDependencies": { + "swr": "^2.1.1", "@siafoundation/react-core": "^0.15.0", - "@siafoundation/types": "^0.0.1", - "swr": "^2.1.1" + "@siafoundation/types": "^0.0.1" }, "types": "./src/index.d.ts" } diff --git a/libs/react-renterd/package.json b/libs/react-renterd/package.json index 2224cb80d..c21e3d31d 100644 --- a/libs/react-renterd/package.json +++ b/libs/react-renterd/package.json @@ -3,7 +3,7 @@ "description": " React hooks for interacting with `renterd`.", "version": "0.12.0", "license": "MIT", - "dependencies": { + "peerDependencies": { "@siafoundation/react-core": "^0.15.0", "@siafoundation/types": "^0.0.1", "swr": "^2.1.1", diff --git a/libs/react-sia-central/package.json b/libs/react-sia-central/package.json index 4c52f3298..817fba76e 100644 --- a/libs/react-sia-central/package.json +++ b/libs/react-sia-central/package.json @@ -3,7 +3,7 @@ "description": "React hooks for interacting with the Sia Central API.", "version": "0.0.3", "license": "MIT", - "dependencies": { + "peerDependencies": { "@siafoundation/react-core": "^0.15.0", "@siafoundation/sia-central": "^0.1.0" }, diff --git a/libs/react-walletd/package.json b/libs/react-walletd/package.json index beffdb807..ba719287c 100644 --- a/libs/react-walletd/package.json +++ b/libs/react-walletd/package.json @@ -3,7 +3,7 @@ "description": " React hooks for interacting with `walletd`.", "version": "0.3.0", "license": "MIT", - "dependencies": { + "peerDependencies": { "@siafoundation/react-core": "^0.15.0", "@siafoundation/types": "^0.0.1", "swr": "^2.1.1" diff --git a/libs/sia-central/package.json b/libs/sia-central/package.json index 2129bd07c..445af4c27 100644 --- a/libs/sia-central/package.json +++ b/libs/sia-central/package.json @@ -3,7 +3,7 @@ "description": "Methods and types for interacting with the Sia Central API.", "version": "0.1.0", "license": "MIT", - "dependencies": { + "peerDependencies": { "lodash": "^4.17.21" }, "types": "./src/index.d.ts" diff --git a/libs/units/package.json b/libs/units/package.json index ad796bee4..61768ab07 100644 --- a/libs/units/package.json +++ b/libs/units/package.json @@ -3,12 +3,14 @@ "description": "Methods and types for interacting with the Sia Central API.", "version": "0.2.0", "license": "MIT", - "dependencies": { + "peerDependencies": { "@siafoundation/sia-central": "^0.1.0", - "bignumber.js": "^9.0.2", "@siafoundation/react-core": "^0.15.0", - "blakejs": "^1.2.1", + "bignumber.js": "^9.0.2", "lodash": "^4.17.21" }, + "dependencies": { + "blakejs": "^1.2.1" + }, "types": "./src/index.d.ts" }