Skip to content

Commit 61cc890

Browse files
committed
fix: update @railway-ts/pipelines version to ^0.1.28 and adjust TypeScript peer dependency; add globals.d.ts for CSS module declaration; improve type handling in fieldPropsFactory tests; update tsconfig for TypeScript 6 compatibility
1 parent fe8914f commit 61cc890

7 files changed

Lines changed: 19 additions & 12 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Bring your own Zod, Valibot, or ArkType via [Standard Schema](https://github.com
3232
bun add @railway-ts/use-form @railway-ts/pipelines # or npm, pnpm, yarn
3333
```
3434

35-
Requires React 18+ and @railway-ts/pipelines ^0.1.27.
35+
Requires React 18+ and @railway-ts/pipelines ^0.1.28.
3636

3737
## Quick Start
3838

bun.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/globals.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '*.css';

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@
7373
"peerDependencies": {
7474
"@railway-ts/pipelines": "^0.1.27",
7575
"react": "^18.0.0 || ^19.0.0",
76-
"typescript": "^5"
76+
"typescript": ">=5.0"
7777
},
7878
"devDependencies": {
7979
"@eslint/js": "^10.0.1",
8080
"@happy-dom/global-registrator": "^20.7.0",
81-
"@railway-ts/pipelines": "^0.1.27",
81+
"@railway-ts/pipelines": "^0.1.28",
8282
"@testing-library/dom": "^10.4.1",
8383
"@testing-library/jest-dom": "^6.9.1",
8484
"@testing-library/react": "^16.3.2",
@@ -98,7 +98,7 @@
9898
"@size-limit/preset-small-lib": "^12.0.0",
9999
"size-limit": "^12.0.0",
100100
"tsup": "^8.5.1",
101-
"typescript": "^5.0.0",
101+
"typescript": "^6.0.0",
102102
"valibot": "^1.2.0",
103103
"zod": "^4.3.6"
104104
}

tests/unit/fieldPropsFactory.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ describe('fieldPropsFactory', () => {
892892
0: mockFile,
893893
length: 1,
894894
item: () => mockFile,
895-
} as FileList;
895+
} as unknown as FileList;
896896
const event = createMockChangeEvent<HTMLInputElement>('', false, mockFiles, false);
897897

898898
props.onChange(event);
@@ -918,7 +918,7 @@ describe('fieldPropsFactory', () => {
918918
1: mockFile2,
919919
length: 2,
920920
item: (i: number) => [mockFile1, mockFile2][i],
921-
} as FileList;
921+
} as unknown as FileList;
922922
const event = createMockChangeEvent<HTMLInputElement>('', false, mockFiles, true);
923923

924924
props.onChange(event);

tsconfig.build.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
"rootDir": "./src",
99
"outDir": "./dist",
1010
"allowJs": false,
11-
"stripInternal": true
11+
"stripInternal": true,
12+
13+
// tsup injects `baseUrl: "."` into the DTS compiler options
14+
// (see node_modules/tsup/dist/rollup.js), which TS 6 flags as deprecated.
15+
// Silence until tsup patches.
16+
"ignoreDeprecations": "6.0"
1217
},
1318
"include": ["src"],
1419
"exclude": ["node_modules", "dist", "**/*.test.*", "**/__tests__/**"]

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"allowImportingTsExtensions": true,
1414
"verbatimModuleSyntax": true,
1515
"noEmit": true,
16+
"types": ["bun"],
1617

1718
// Best practices
1819
"strict": true,

0 commit comments

Comments
 (0)