Skip to content

Commit

Permalink
chore: upgrade dependencies (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmkx authored Dec 2, 2024
1 parent e44d163 commit 0846563
Show file tree
Hide file tree
Showing 34 changed files with 2,816 additions and 2,725 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"fileMatch": ["project.json"],
"url": "./node_modules/nx/schemas/project-schema.json"
}
]
],
"typescript.tsdk": "node_modules/typescript/lib"
}
20 changes: 10 additions & 10 deletions apps/ai-assistant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
"@webx-kit/runtime": "workspace:^",
"@webx-kit/storage": "workspace:^",
"clsx": "^2.1.1",
"jotai": "^2.10.2",
"lucide-react": "^0.456.0",
"jotai": "^2.10.3",
"lucide-react": "^0.462.0",
"react": "^18.3.1",
"react-aria-components": "^1.4.1",
"react-aria-components": "^1.5.0",
"react-dom": "^18.3.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@modern-js/app-tools": "^2.61.0",
"@types/chrome": "^0.0.280",
"@types/node": "^22.9.0",
"@modern-js/app-tools": "^2.63.0",
"@types/chrome": "^0.0.287",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@webx-kit/modernjs-plugin": "workspace:^",
"tailwind-merge": "^2.5.4",
"tailwind-merge": "^2.5.5",
"tailwind-variants": "^0.3.0",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-react-aria-components": "^1.1.6",
"typescript": "^5.6.3"
"tailwindcss-react-aria-components": "^1.2.0",
"typescript": "^5.7.2"
}
}
26 changes: 13 additions & 13 deletions apps/switchy-pi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,38 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@react-aria/interactions": "^3.22.4",
"@react-aria/interactions": "^3.22.5",
"@trpc/client": "11.0.0-rc.621",
"@trpc/server": "11.0.0-rc.621",
"@webx-kit/messaging": "workspace:^",
"@webx-kit/runtime": "workspace:^",
"@webx-kit/storage": "workspace:^",
"clsx": "^2.1.1",
"jotai": "^2.10.2",
"jotai-effect": "^1.0.3",
"lucide-react": "^0.456.0",
"jotai": "^2.10.3",
"jotai-effect": "^1.0.4",
"lucide-react": "^0.462.0",
"react": "^18.3.1",
"react-aria": "^3.35.1",
"react-aria-components": "^1.4.1",
"react-aria": "^3.36.0",
"react-aria-components": "^1.5.0",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.2",
"react-router-dom": "^6.28.0",
"react-router-dom": "^7.0.1",
"zod": "^3.23.8"
},
"devDependencies": {
"@rsbuild/core": "catalog:",
"@rsbuild/plugin-less": "catalog:",
"@rsbuild/plugin-react": "catalog:",
"@types/chrome": "^0.0.280",
"@types/node": "^22.9.0",
"@types/chrome": "^0.0.287",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@webx-kit/rsbuild-plugin": "workspace:^",
"tailwind-merge": "^2.5.4",
"tailwind-merge": "^2.5.5",
"tailwind-variants": "^0.3.0",
"tailwindcss": "^3.4.14",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"tailwindcss-react-aria-components": "^1.1.6",
"typescript": "^5.6.3"
"tailwindcss-react-aria-components": "^1.2.0",
"typescript": "^5.7.2"
}
}
12 changes: 10 additions & 2 deletions apps/switchy-pi/src/components/button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,20 @@ export function Button(props: ButtonProps) {
className={composeRenderProps(props.className, (className, renderProps) =>
button({ ...renderProps, variant: props.variant, isIcon: hasIcon, className })
)}
children={
children={(renderProps) =>
hasIcon ? (
<>
{icon}
{typeof children === 'string' ? <Text>{children}</Text> : children}
{typeof children === 'function' ? (
children(renderProps)
) : typeof children === 'string' ? (
<Text>{children}</Text>
) : (
children
)}
</>
) : typeof children === 'function' ? (
children(renderProps)
) : (
children
)
Expand Down
12 changes: 7 additions & 5 deletions apps/switchy-pi/src/components/checkbox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@ export function Checkbox(props: CheckboxProps) {
checkboxStyles({ ...renderProps, className })
)}
>
{({ isSelected, isIndeterminate, ...renderProps }) => (
{(renderProps) => (
<>
<div className={boxStyles({ isSelected: isSelected || isIndeterminate, ...renderProps })}>
{isIndeterminate ? (
<div
className={boxStyles({ ...renderProps, isSelected: Boolean(props.isSelected || props.isIndeterminate) })}
>
{props.isIndeterminate ? (
<MinusIcon aria-hidden className={iconStyles} />
) : isSelected ? (
) : props.isSelected ? (
<CheckIcon aria-hidden className={iconStyles} />
) : null}
</div>
{props.children}
{typeof props.children === 'function' ? props.children(renderProps) : props.children}
</>
)}
</AriaCheckbox>
Expand Down
2 changes: 1 addition & 1 deletion apps/switchy-pi/src/components/radio-group/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function Radio(props: RadioProps) {
{(renderProps) => (
<>
<div className={styles(renderProps)} />
{props.children}
{typeof props.children === 'function' ? props.children(renderProps) : props.children}
</>
)}
</RACRadio>
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,17 @@
"test": "nx run-many -t test"
},
"devDependencies": {
"@changesets/cli": "^2.27.9",
"@playwright/test": "^1.48.2",
"nx": "^20.1.0"
"@changesets/cli": "^2.27.10",
"@playwright/test": "^1.49.0",
"nx": "^20.1.4",
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public"
},
"pnpm": {
"patchedDependencies": {
"@react-aria/interactions@3.22.4": "patches/@react-aria__interactions@3.22.4.patch"
"@react-aria/interactions@3.22.5": "patches/@react-aria__interactions@3.22.5.patch"
}
}
}
4 changes: 2 additions & 2 deletions packages/chrome-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@types/chrome": "^0.0.280"
"@types/chrome": "^0.0.287"
},
"devDependencies": {
"typescript": "^5.6.3"
"typescript": "^5.7.2"
}
}
11 changes: 6 additions & 5 deletions packages/core-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,17 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@types/chrome": "^0.0.280",
"@types/chrome": "^0.0.287",
"chokidar": "^4.0.1",
"jiti": "^2.4.0",
"type-fest": "^4.26.1"
"jiti": "^2.4.1",
"type-fest": "^4.29.1"
},
"devDependencies": {
"@rsbuild/core": "catalog:",
"tailwindcss": "^3.4.14",
"@types/node": "^22.10.1",
"tailwindcss": "^3.4.15",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"webpack": "^5.96.1"
},
"peerDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/create-webx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"lint:type": "tsc --noEmit"
},
"devDependencies": {
"@modern-js/utils": "^2.61.0",
"@modern-js/utils": "^2.63.0",
"@types/debug": "^4.1.12",
"@types/prompts": "^2.4.9",
"debug": "^4.3.7",
Expand All @@ -27,8 +27,8 @@
"kleur": "^4.1.5",
"prompts": "^2.4.2",
"tsup": "^8.3.5",
"type-fest": "^4.26.1",
"typescript": "^5.6.3",
"vitest": "^2.1.4"
"type-fest": "^4.29.1",
"typescript": "^5.7.2",
"vitest": "^2.1.7"
}
}
12 changes: 6 additions & 6 deletions packages/messaging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,22 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"type-fest": "^4.26.1"
"type-fest": "^4.29.1"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@rsbuild/core": "catalog:",
"@rsbuild/plugin-react": "catalog:",
"@trpc/client": "11.0.0-rc.621",
"@trpc/server": "11.0.0-rc.621",
"@types/chrome": "^0.0.280",
"@types/node": "^22.9.0",
"@types/chrome": "^0.0.287",
"@types/node": "^22.10.1",
"@webx-kit/chrome-types": "workspace:^",
"@webx-kit/rsbuild-plugin": "workspace:^",
"@webx-kit/test-utils": "workspace:^",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"vitest": "^2.1.4",
"typescript": "^5.7.2",
"vitest": "^2.1.7",
"zod": "^3.23.8"
},
"peerDependencies": {
Expand Down
11 changes: 10 additions & 1 deletion packages/messaging/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
/**
* @see {@link https://playwright.dev/docs/chrome-extensions Chrome extensions | Playwright}
*/
import { defineConfig } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
channel: 'chromium',
},
},
],
testDir: './e2e',
retries: 2,
timeout: 10000,
Expand Down
8 changes: 4 additions & 4 deletions packages/modernjs-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@types/chrome": "^0.0.280",
"@types/chrome": "^0.0.287",
"@webx-kit/core-plugin": "workspace:*"
},
"devDependencies": {
"@modern-js/app-tools": "^2.61.0",
"@modern-js/utils": "^2.61.0",
"@modern-js/app-tools": "^2.63.0",
"@modern-js/utils": "^2.63.0",
"@rsbuild/core": "catalog:",
"tsup": "^8.3.5",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"peerDependencies": {
"@modern-js/app-tools": "^2.40.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/rsbuild-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@types/chrome": "^0.0.280",
"@types/chrome": "^0.0.287",
"@webx-kit/core-plugin": "workspace:*"
},
"devDependencies": {
"@rsbuild/core": "catalog:",
"@rspack/core": "catalog:",
"tsup": "^8.3.5",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
},
"peerDependencies": {
"@rsbuild/core": "^0.7.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@
},
"dependencies": {
"@floating-ui/dom": "^1.6.12",
"@types/chrome": "^0.0.280"
"@types/chrome": "^0.0.287"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"tsup": "^8.3.5",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
}
}
12 changes: 6 additions & 6 deletions packages/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"type-fest": "^4.26.1"
"type-fest": "^4.29.1"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@playwright/test": "^1.49.0",
"@rsbuild/core": "catalog:",
"@rsbuild/plugin-react": "catalog:",
"@types/chrome": "^0.0.280",
"@types/node": "^22.9.0",
"@types/chrome": "^0.0.287",
"@types/node": "^22.10.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@webx-kit/rsbuild-plugin": "workspace:^",
"@webx-kit/test-utils": "workspace:^",
"jotai": "^2.10.2",
"jotai": "^2.10.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tsup": "^8.3.5",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"unstorage": "^1.13.1"
},
"peerDependencies": {
Expand Down
11 changes: 10 additions & 1 deletion packages/storage/playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
/**
* @see {@link https://playwright.dev/docs/chrome-extensions Chrome extensions | Playwright}
*/
import { defineConfig } from '@playwright/test';
import { defineConfig, devices } from '@playwright/test';

export default defineConfig({
projects: [
{
name: 'chromium',
use: {
...devices['Desktop Chrome'],
channel: 'chromium',
},
},
],
testDir: './e2e',
retries: 2,
});
8 changes: 4 additions & 4 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
"lint:type": "tsc --noEmit"
},
"dependencies": {
"@modern-js/utils": "^2.61.0",
"@modern-js/utils": "^2.63.0",
"@webx-kit/chrome-types": "workspace:^",
"chrome-launcher": "^1.1.2"
},
"devDependencies": {
"@playwright/test": "^1.48.2",
"@types/node": "^22.9.0",
"typescript": "^5.6.3"
"@playwright/test": "^1.49.0",
"@types/node": "^22.10.1",
"typescript": "^5.7.2"
},
"peerDependencies": {
"@playwright/test": "^1.30.0"
Expand Down
Loading

0 comments on commit 0846563

Please sign in to comment.