@railway-ts/use-form 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # @railway-ts/use-form
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@railway-ts/use-form.svg)](https://www.npmjs.com/package/@railway-ts/use-form) [![Build Status](https://github.com/sakobu/railway-ts-use-form/workflows/CI/badge.svg)](https://github.com/sakobu/railway-ts-use-form/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Bundle Size](https://img.shields.io/bundlephobia/minzip/@railway-ts/use-form)](https://bundlephobia.com/package/@railway-ts/use-form) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue)](https://www.typescriptlang.org/) [![Coverage](https://img.shields.io/codecov/c/github/sakobu/railway-ts-use-form)](https://codecov.io/gh/sakobu/railway-ts-use-form)
3
+ [![npm version](https://img.shields.io/npm/v/@railway-ts/use-form.svg)](https://www.npmjs.com/package/@railway-ts/use-form) [![Build Status](https://github.com/sakobu/railway-ts-use-form/workflows/CI/badge.svg)](https://github.com/sakobu/railway-ts-use-form/actions) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![TypeScript](https://img.shields.io/badge/TypeScript-5.0+-blue)](https://www.typescriptlang.org/) [![Coverage](https://img.shields.io/codecov/c/github/sakobu/railway-ts-use-form)](https://codecov.io/gh/sakobu/railway-ts-use-form)
4
4
 
5
5
  React form hook where the schema is the source of truth. Define validation once, get TypeScript types, field autocomplete, error handling, and native HTML bindings for free.
6
6
 
7
+ **~3.6 kB** minified + brotli
8
+
7
9
  > **Part of the [@railway-ts](https://github.com/sakobu) ecosystem.** Uses [@railway-ts/pipelines](https://github.com/sakobu/railway-ts-pipelines) for composable validation and Result types. Also accepts any [Standard Schema v1](https://github.com/standard-schema/standard-schema) validator (Zod, Valibot, ArkType).
8
10
 
9
11
  ## Install
@@ -12,7 +14,7 @@ React form hook where the schema is the source of truth. Define validation once,
12
14
  bun add @railway-ts/use-form @railway-ts/pipelines # or npm, pnpm, yarn
13
15
  ```
14
16
 
15
- Requires React 18+ and @railway-ts/pipelines ^0.1.10.
17
+ Requires React 18+ and @railway-ts/pipelines ^0.1.12.
16
18
 
17
19
  ## Quick Start
18
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railway-ts/use-form",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "React form hook that works with @railway-ts/pipelines to manage form state, validation, and submission.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -70,13 +70,13 @@
70
70
  }
71
71
  ],
72
72
  "peerDependencies": {
73
- "@railway-ts/pipelines": "^0.1.11",
73
+ "@railway-ts/pipelines": "^0.1.12",
74
74
  "react": "^18.0.0 || ^19.0.0",
75
75
  "typescript": "^5"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@happy-dom/global-registrator": "^20.0.10",
79
- "@railway-ts/pipelines": "^0.1.11",
79
+ "@railway-ts/pipelines": "^0.1.12",
80
80
  "@testing-library/dom": "^10.4.1",
81
81
  "@testing-library/jest-dom": "^6.9.1",
82
82
  "@testing-library/react": "^16.3.0",