Skip to content

Commit

Permalink
Update dependencies (#214)
Browse files Browse the repository at this point in the history
* Update dependencies

* Update vite to v6

* Update pr-checks.yml

* Remove ts-ignore comments

* Revert "Remove ts-ignore comments"

This reverts commit 9eafd7c.

* Update settings.json
  • Loading branch information
irshadahmad21 authored Nov 27, 2024
1 parent 9bd6864 commit 22074b1
Show file tree
Hide file tree
Showing 20 changed files with 804 additions and 1,060 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-bikes-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpsocio/vite-wp-react": patch
---

Added support for Vite 6
1 change: 1 addition & 0 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ jobs:
name: e2e-artifacts-wp-${{ matrix.wp }}-php-${{ matrix.php }}
path: |
artifacts/
!artifacts/test-results
if-no-files-found: ignore

- name: Stop WordPress Environment
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
}
},
"typescript.tsdk": "node_modules/typescript/lib"
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.10",
"@playwright/test": "^1.49.0",
"@types/node": "^22.9.3",
"@wordpress/e2e-test-utils-playwright": "^1.12.0",
"@wordpress/env": "^10.12.0",
"@wordpress/scripts": "^30.5.1",
"@types/node": "^22.10.0",
"@wordpress/e2e-test-utils-playwright": "^1.13.0",
"@wordpress/env": "^10.13.0",
"@wordpress/scripts": "^30.6.0",
"@wpsocio/e2e-utils": "workspace:*",
"@wpsocio/wpdev": "workspace:*",
"npm-check-updates": "^17.1.11",
Expand Down
2 changes: 1 addition & 1 deletion packages/js/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.9.3",
"@types/node": "^22.10.0",
"@types/ramda": "^0.30.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/js/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"type": "module",
"module": "index.ts",
"dependencies": {
"@wordpress/i18n": "^5.12.0"
"@wordpress/i18n": "^5.13.0"
}
}
4 changes: 2 additions & 2 deletions packages/js/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"type": "module",
"module": "index.ts",
"dependencies": {
"@wordpress/api-fetch": "7.12.0",
"@wordpress/api-fetch": "7.13.0",
"@wpsocio/i18n": "workspace:*",
"@wpsocio/ui-components": "workspace:*",
"@wpsocio/utilities": "workspace:*",
Expand All @@ -18,7 +18,7 @@
},
"devDependencies": {
"@types/jquery": "^3.5.32",
"@types/node": "^22.9.3",
"@types/node": "^22.10.0",
"@types/ramda": "^0.30.2",
"@types/react": "^18.3.12"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/js/shared-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"use-debounce": "^10.0.4"
},
"devDependencies": {
"@types/node": "^22.9.3",
"@types/node": "^22.10.0",
"@types/ramda": "^0.30.2",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/js/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
"@radix-ui/react-tabs": "^1.1.1",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-tooltip": "^1.1.4",
"class-variance-authority": "^0.7.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"copy-to-clipboard": "^3.3.3",
"lucide-react": "^0.460.0",
"lucide-react": "^0.462.0",
"react": "^18.3.1",
"react-colorful": "^5.6.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.2",
"react-select": "^5.8.3",
"tailwind-merge": "^2.5.4",
"tailwind-merge": "^2.5.5",
"tailwindcss": "^3.4.15",
"tailwindcss-animate": "^1.0.7",
"use-debounce": "^10.0.4",
Expand All @@ -46,7 +46,7 @@
"devDependencies": {
"@tailwindcss/forms": "^0.5.9",
"@tailwindcss/typography": "^0.5.15",
"@types/node": "^22.9.3",
"@types/node": "^22.10.0",
"@types/postcss-js": "^4.0.4",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/js/utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"ramda": "^0.30.1"
},
"devDependencies": {
"@types/node": "^22.9.3",
"@types/node": "^22.10.0",
"@types/ramda": "^0.30.2",
"@types/react": "^18.3.12"
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"autoprefixer": "^10.4.20",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^5.4.10",
"vite": "^6.0.1",
"wireit": "^0.14.9"
},
"build-utils": {
Expand Down
12 changes: 6 additions & 6 deletions plugins/wptelegram-login/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
"version": "composer run gen:docs"
},
"dependencies": {
"@wordpress/block-editor": "^14.7.0",
"@wordpress/blocks": "^14.1.0",
"@wordpress/components": "^28.12.0",
"@wordpress/element": "^6.12.0",
"@wordpress/block-editor": "^14.8.0",
"@wordpress/blocks": "^14.2.0",
"@wordpress/components": "^28.13.0",
"@wordpress/element": "^6.13.0",
"@wpsocio/form": "workspace:*",
"@wpsocio/i18n": "workspace:*",
"@wpsocio/services": "workspace:*",
Expand All @@ -48,13 +48,13 @@
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/wordpress__block-editor": "^11.5.15",
"@types/wordpress__blocks": "^12.5.14",
"@types/wordpress__blocks": "^12.5.15",
"@wpsocio/build-utils": "workspace:*",
"@wpsocio/vite-wp-react": "workspace:*",
"autoprefixer": "^10.4.20",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^5.4.10",
"vite": "^6.0.1",
"wireit": "^0.14.9"
},
"build-utils": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/wptelegram-login/src/shared/LoginHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ private function cleanup_input( $input ) {
'receiver',
'chat',
'chat_type',
'chat_instance',
'start_param',
'can_send_after',
'chat_instance',
'signature',
// Misc.
'source',
Expand Down
16 changes: 8 additions & 8 deletions plugins/wptelegram-widget/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@
"validate-build": "pnpm build-utils validate"
},
"dependencies": {
"@wordpress/block-editor": "^14.7.0",
"@wordpress/blocks": "^14.1.0",
"@wordpress/components": "^28.12.0",
"@wordpress/compose": "^7.12.0",
"@wordpress/element": "^6.12.0",
"@wordpress/url": "^4.12.0",
"@wordpress/block-editor": "^14.8.0",
"@wordpress/blocks": "^14.2.0",
"@wordpress/components": "^28.13.0",
"@wordpress/compose": "^7.13.0",
"@wordpress/element": "^6.13.0",
"@wordpress/url": "^4.13.0",
"@wpsocio/form": "workspace:*",
"@wpsocio/i18n": "workspace:*",
"@wpsocio/services": "workspace:*",
Expand All @@ -49,13 +49,13 @@
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/wordpress__block-editor": "^11.5.15",
"@types/wordpress__blocks": "^12.5.14",
"@types/wordpress__blocks": "^12.5.15",
"@wpsocio/build-utils": "workspace:*",
"@wpsocio/vite-wp-react": "workspace:*",
"autoprefixer": "^10.4.20",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^5.4.10",
"vite": "^6.0.1",
"wireit": "^0.14.9"
},
"build-utils": {
Expand Down
28 changes: 12 additions & 16 deletions plugins/wptelegram/js/p2tg-block-editor/SendToTelegram.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,17 @@ export const SendToTelegram: React.FC = () => {
}, [data.send2tg, isDirty, isSaving, savedData, updateField]);

return (
<PluginPostStatusInfo
// @ts-expect-error @wordpress/editor is badly typed
// biome-ignore lint/correctness/noChildrenProp: Remove it when the issue is fixed
children={
<div style={wrapperStyle}>
<ToggleControl
// the basic switch
label={__('Send to Telegram')}
checked={data.send2tg}
onChange={updateField('send2tg')}
__nextHasNoMarginBottom
/>
<OverrideSettings />
</div>
}
/>
<PluginPostStatusInfo>
<div style={wrapperStyle}>
<ToggleControl
// the basic switch
label={__('Send to Telegram')}
checked={data.send2tg}
onChange={updateField('send2tg')}
__nextHasNoMarginBottom
/>
<OverrideSettings />
</div>
</PluginPostStatusInfo>
);
};
16 changes: 8 additions & 8 deletions plugins/wptelegram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
"validate-build": "pnpm build-utils validate"
},
"dependencies": {
"@wordpress/components": "^28.12.0",
"@wordpress/data": "^10.12.0",
"@wordpress/edit-post": "^8.12.0",
"@wordpress/editor": "^14.12.0",
"@wordpress/element": "^6.12.0",
"@wordpress/media-utils": "^5.12.0",
"@wordpress/plugins": "^7.12.0",
"@wordpress/components": "^28.13.0",
"@wordpress/data": "^10.13.0",
"@wordpress/edit-post": "^8.13.0",
"@wordpress/editor": "^14.13.0",
"@wordpress/element": "^6.13.0",
"@wordpress/media-utils": "^5.13.0",
"@wordpress/plugins": "^7.13.0",
"@wpsocio/form": "workspace:*",
"@wpsocio/i18n": "workspace:*",
"@wpsocio/services": "workspace:*",
Expand All @@ -57,7 +57,7 @@
"autoprefixer": "^10.4.20",
"tailwindcss": "^3.4.15",
"typescript": "^5.7.2",
"vite": "^5.4.10",
"vite": "^6.0.1",
"wireit": "^0.14.9"
},
"build-utils": {
Expand Down
Loading

0 comments on commit 22074b1

Please sign in to comment.