Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/shipjs-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
types:
- closed
jobs:
build:
release:
name: Release
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'releases/v')
Expand All @@ -19,6 +19,7 @@ jobs:
with:
node-version: 24
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Setup pnpm and install dependencies
uses: pnpm/action-setup@v4
with:
Expand All @@ -27,7 +28,7 @@ jobs:
args: [--frozen-lockfile, --strict-peer-dependencies]
- run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.name "github-actions[bot]"
- run: npx shipjs trigger
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
18 changes: 8 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
name: "@prefabs.tech/react Test"
name: "Test suite"

on: push
on:
push

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20, 22, 24]
node-version: [20, 22, 24]
steps:
- uses: actions/checkout@v4
name: Use node ${{ matrix.node-version }}

- uses: actions/setup-node@v4
- name: Checkout
uses: actions/checkout@v4
- name: Use node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Setup pnpm and install dependencies
uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]

- name: Build packages
run: pnpm build

- name: Run tests
run: pnpm test
6 changes: 3 additions & 3 deletions apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"react-redux": "8.1.3",
"react-router-dom": "6.28.0",
"react-toastify": "10.0.6",
"zod": "3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@babel/core": "7.26.10",
Expand All @@ -42,7 +42,7 @@
"@prefabs.tech/eslint-config": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@vitejs/plugin-react": "4.4.1",
Expand All @@ -54,6 +54,6 @@
"vite": "6.4.1",
"vite-plugin-compression": "0.5.1",
"vite-plugin-html": "3.2.2",
"vitest": "3.0.8"
"vitest": "3.2.4"
}
}
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"typecheck": "turbo run typecheck"
},
"devDependencies": {
"@commitlint/cli": "19.8.1",
"@commitlint/config-conventional": "19.8.1",
"eslint": "8.57.1",
"@commitlint/cli": "20.4.1",
"@commitlint/config-conventional": "20.4.1",
"eslint": "9.39.2",
"husky": "9.1.7",
"prettier": "3.5.3",
"shipjs": "0.27.0",
"turbo": "2.5.4",
"prettier": "3.8.1",
"shipjs": "0.28.2",
"turbo": "2.8.7",
"typescript": "5.9.3"
},
"packageManager": "pnpm@10.13.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/tsconfig": "0.5.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@vitejs/plugin-react": "4.4.1",
"@vitest/coverage-v8": "3.0.8",
Expand All @@ -41,7 +41,7 @@
"react": "18.3.1",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"react": ">=18.2"
Expand Down
14 changes: 8 additions & 6 deletions packages/form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactForm.umd.js",
"module": "./dist/PrefabsTechReactForm.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -32,19 +34,19 @@
"react-debounce-input": "3.3.0",
"react-dropzone": "^14.2.3",
"react-hook-form": "7.54.2",
"validator": "13.15.22",
"zod": "3.23.8"
"validator": "13.15.26",
"zod": "3.25.76"
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
"@prefabs.tech/react-ui": "0.72.1",
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@types/validator": "13.12.2",
"@types/validator": "13.15.10",
"@vitejs/plugin-react": "4.4.1",
"@vitest/coverage-v8": "3.0.8",
"eslint": "9.39.2",
Expand All @@ -55,7 +57,7 @@
"react-dom": "18.3.1",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"@prefabs.tech/react-ui": "0.72.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface CustomInputProperties {
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type AdditionalFormSchema = Zod.ZodObject<any>;
export type AdditionalFormSchema = import("zod").ZodObject<any>;

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export type AdditionalDefaultValues = Record<string, any>;
Expand Down
8 changes: 5 additions & 3 deletions packages/i18n/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactI18n.umd.js",
"module": "./dist/PrefabsTechReactI18n.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand Down Expand Up @@ -41,7 +43,7 @@
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@vitejs/plugin-react": "4.4.1",
Expand All @@ -52,7 +54,7 @@
"react-dom": "18.3.1",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"@prefabs.tech/react-config": "0.72.1",
Expand Down
8 changes: 5 additions & 3 deletions packages/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactLayout.umd.js",
"module": "./dist/PrefabsTechReactLayout.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -34,7 +36,7 @@
"@prefabs.tech/tsconfig": "0.5.0",
"@testing-library/react": "16.3.0",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@vitejs/plugin-react": "4.4.1",
Expand All @@ -48,7 +50,7 @@
"react-router-dom": "6.28.0",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"@prefabs.tech/react-config": "0.72.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@testing-library/react": "16.3.0",
"@types/file-saver": "2.0.7",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@vitejs/plugin-react": "4.4.1",
Expand All @@ -59,7 +59,7 @@
"react-router-dom": "6.28.0",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"primereact": "9.6.1",
Expand Down
10 changes: 6 additions & 4 deletions packages/user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"main": "./dist/PrefabsTechReactUser.umd.js",
"module": "./dist/PrefabsTechReactUser.es.js",
"types": "./dist/src/index.d.ts",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {
"build": "vite build && tsc --emitDeclarationOnly",
"lint": "eslint .",
Expand All @@ -28,7 +30,7 @@
},
"dependencies": {
"supertokens-web-js": "0.6.0",
"zod": "3.23.8"
"zod": "3.25.76"
},
"devDependencies": {
"@prefabs.tech/eslint-config": "0.5.0",
Expand All @@ -41,7 +43,7 @@
"@testing-library/react": "16.3.0",
"@testing-library/user-event": "14.6.1",
"@types/jsdom": "21.1.7",
"@types/node": "24.10.1",
"@types/node": "24.10.13",
"@types/react": "18.3.20",
"@types/react-dom": "18.3.6",
"@vitejs/plugin-react": "4.4.1",
Expand All @@ -57,7 +59,7 @@
"react-toastify": "10.0.6",
"typescript": "5.9.3",
"vite": "6.4.1",
"vitest": "3.0.8"
"vitest": "3.2.4"
},
"peerDependencies": {
"@prefabs.tech/react-form": "0.72.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/user/src/components/Invitation/InvitationForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export const InvitationForm = ({
};

// eslint-disable-next-line @typescript-eslint/no-explicit-any
let InvitationFormSchema: Zod.ZodObject<any> = zod.object({
let InvitationFormSchema: zod.ZodObject<any> = zod.object({
email: emailSchema({
invalid: t("validation.messages.validEmail"),
required: t("validation.messages.email"),
Expand Down
Loading
Loading