Skip to content

Commit f3ef715

Browse files
committed
Merge branch 'main' into json-variant
2 parents 55ff6cf + 227978d commit f3ef715

File tree

755 files changed

+27261
-7680
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

755 files changed

+27261
-7680
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github: [fabian-hiller, EltonLobo07, Bilboramix]
2+
open_collective: valibot

.github/actions/environment/action.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,32 @@ runs:
1111
run_install: false
1212

1313
- name: Setup Node.js
14-
uses: actions/setup-node@v4
14+
uses: actions/setup-node@v6
1515
with:
16-
node-version: 20
16+
node-version: 22
1717
registry-url: 'https://registry.npmjs.org'
1818
cache: pnpm
1919

2020
- name: Setup Deno
2121
uses: denoland/setup-deno@v2
2222
with:
23-
deno-version: v2.2.12
23+
deno-version: v2.5.6
2424

2525
- name: Install dependencies
2626
shell: bash
2727
run: pnpm install
2828

29-
- name: Create library build cache
30-
id: library-build-cache
31-
uses: actions/cache@v4
32-
with:
33-
path: ${{ github.workspace }}/library/dist
34-
key: library-build-cache-${{ hashFiles('library/src/**/*.ts', '!library/src/**/*.test.ts', '!library/src/**/*.test-d.ts') }}
35-
3629
- name: Build library
37-
if: steps.library-build-cache.outputs.cache-hit != 'true'
3830
shell: bash
3931
run: pnpm build
4032
working-directory: library
33+
34+
- name: Build to-json-schema
35+
shell: bash
36+
run: pnpm build
37+
working-directory: packages/to-json-schema
38+
39+
- name: Build zod-to-valibot
40+
shell: bash
41+
run: pnpm build
42+
working-directory: codemod/zod-to-valibot

.github/workflows/ci.yml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout repository
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v6
1616
- name: Setup environment
1717
uses: ./.github/actions/environment
1818

@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
- name: Setup environment
2727
uses: ./.github/actions/environment
2828
- name: Publish library
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v6
3939
- name: Setup environment
4040
uses: ./.github/actions/environment
4141
- name: Prettier check
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@v6
5252
- name: Setup environment
5353
uses: ./.github/actions/environment
5454
- name: ESLint check
@@ -61,7 +61,7 @@ jobs:
6161
runs-on: ubuntu-latest
6262
steps:
6363
- name: Checkout repository
64-
uses: actions/checkout@v4
64+
uses: actions/checkout@v6
6565
- name: Setup environment
6666
uses: ./.github/actions/environment
6767
- name: Vitest tests
@@ -74,7 +74,7 @@ jobs:
7474
runs-on: ubuntu-latest
7575
steps:
7676
- name: Checkout repository
77-
uses: actions/checkout@v4
77+
uses: actions/checkout@v6
7878
- name: Setup environment
7979
uses: ./.github/actions/environment
8080
- name: Prettier check
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- name: Checkout repository
90-
uses: actions/checkout@v4
90+
uses: actions/checkout@v6
9191
- name: Setup environment
9292
uses: ./.github/actions/environment
9393
- name: ESLint check
@@ -100,7 +100,7 @@ jobs:
100100
runs-on: ubuntu-latest
101101
steps:
102102
- name: Checkout repository
103-
uses: actions/checkout@v4
103+
uses: actions/checkout@v6
104104
- name: Setup environment
105105
uses: ./.github/actions/environment
106106
- name: Vitest tests
@@ -113,7 +113,7 @@ jobs:
113113
runs-on: ubuntu-latest
114114
steps:
115115
- name: Checkout repository
116-
uses: actions/checkout@v4
116+
uses: actions/checkout@v6
117117
- name: Setup environment
118118
uses: ./.github/actions/environment
119119
- name: Prettier check
@@ -126,9 +126,23 @@ jobs:
126126
runs-on: ubuntu-latest
127127
steps:
128128
- name: Checkout repository
129-
uses: actions/checkout@v4
129+
uses: actions/checkout@v6
130130
- name: Setup environment
131131
uses: ./.github/actions/environment
132132
- name: ESLint check
133133
run: pnpm lint
134134
working-directory: website
135+
136+
zod_to_valibot_vitest:
137+
name: Run Vitest in codemod/zod-to-valibot
138+
runs-on: ubuntu-latest
139+
permissions:
140+
contents: read
141+
steps:
142+
- name: Checkout repository
143+
uses: actions/checkout@v6
144+
- name: Setup environment
145+
uses: ./.github/actions/environment
146+
- name: Vitest tests
147+
run: pnpm test
148+
working-directory: codemod/zod-to-valibot

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
id-token: write
2020
steps:
2121
- name: Checkout repository
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323
- name: Setup environment
2424
uses: ./.github/actions/environment
2525
- name: Build library
@@ -41,7 +41,7 @@ jobs:
4141
id-token: write
4242
steps:
4343
- name: Checkout repository
44-
uses: actions/checkout@v4
44+
uses: actions/checkout@v6
4545
- name: Publish library
4646
run: npx jsr publish
4747
working-directory: library
@@ -55,7 +55,7 @@ jobs:
5555
id-token: write
5656
steps:
5757
- name: Checkout repository
58-
uses: actions/checkout@v4
58+
uses: actions/checkout@v6
5959
- name: Setup environment
6060
uses: ./.github/actions/environment
6161
- name: Build i18n
@@ -77,7 +77,7 @@ jobs:
7777
id-token: write
7878
steps:
7979
- name: Checkout repository
80-
uses: actions/checkout@v4
80+
uses: actions/checkout@v6
8181
- name: Setup environment
8282
uses: ./.github/actions/environment
8383
- name: Build i18n
@@ -96,7 +96,7 @@ jobs:
9696
id-token: write
9797
steps:
9898
- name: Checkout repository
99-
uses: actions/checkout@v4
99+
uses: actions/checkout@v6
100100
- name: Setup environment
101101
uses: ./.github/actions/environment
102102
- name: Build to-json-schema
@@ -118,7 +118,7 @@ jobs:
118118
id-token: write
119119
steps:
120120
- name: Checkout repository
121-
uses: actions/checkout@v4
121+
uses: actions/checkout@v6
122122
- name: Setup environment
123123
uses: ./.github/actions/environment
124124
- name: Publish to-json-schema

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ package-lock.json
3434
yarn.lock
3535
server
3636
.grit/patterns
37+
codemod/zod-to-valibot/__testfixtures__

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ You can ask for any help or clarifications from the collaborators.
5757
- [Aris Kemper](https://github.com/ariskemper)
5858

5959
[fork]: https://help.github.com/articles/fork-a-repo/
60-
[pr]: https://github.com/fabian-hiller/valibot/compare
61-
[newissue]: https://github.com/fabian-hiller/valibot/issues/new
62-
[issues]: https://github.com/fabian-hiller/valibot/issues
60+
[pr]: https://github.com/open-circle/valibot/compare
61+
[newissue]: https://github.com/open-circle/valibot/issues/new
62+
[issues]: https://github.com/open-circle/valibot/issues

codemod/migrate-to-v0.31.0/.codemodrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"engine": "workflow",
77
"meta": {
88
"tags": ["valibot", "v0.31.0", "pipeline", "pipe"],
9-
"git": "https://github.com/fabian-hiller/valibot/tree/main/codemod/migrate-to-v0.31.0"
9+
"git": "https://github.com/open-circle/valibot/tree/main/codemod/migrate-to-v0.31.0"
1010
},
1111
"applicability": {
1212
"from": [["valibot", "<=", "0.30.0"]]

codemod/migrate-to-v0.31.0/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"devDependencies": {
1212
"@codemod.com/workflow": "^0.0.31",
13-
"@types/node": "^22.13.5",
14-
"typescript": "^5.7.3"
13+
"@types/node": "^24.10.1",
14+
"typescript": "^5.9.3"
1515
}
1616
}

codemod/zod-to-valibot/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__testfixtures__/*/_actual.ts
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { z } from "zod";
2+
3+
const Schema1 = z.any();
4+
const Schema2 = z.any({message: "some message"});
5+
const Schema3 = z.any({description: "some description"});

0 commit comments

Comments
 (0)