@railway-ts/pipelines 0.1.9 → 0.1.11

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 +5 -1
  2. package/package.json +23 -2
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @railway-ts/pipelines
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/@railway-ts/pipelines.svg)](https://www.npmjs.com/package/@railway-ts/pipelines) [![Build Status](https://github.com/sakobu/railway-ts-pipelines/workflows/CI/badge.svg)](https://github.com/sakobu/railway-ts-pipelines/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/pipelines)](https://bundlephobia.com/package/@railway-ts/pipelines) [![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-pipelines)](https://codecov.io/gh/sakobu/railway-ts-pipelines)
3
+ [![npm version](https://img.shields.io/npm/v/@railway-ts/pipelines.svg)](https://www.npmjs.com/package/@railway-ts/pipelines) [![Build Status](https://github.com/sakobu/railway-ts-pipelines/workflows/CI/badge.svg)](https://github.com/sakobu/railway-ts-pipelines/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-pipelines)](https://codecov.io/gh/sakobu/railway-ts-pipelines)
4
4
 
5
5
  Railway-oriented programming for TypeScript. Result and Option types that don't suck.
6
6
 
@@ -73,6 +73,10 @@ For a complete real-world pipeline, see the [Launch Decision Pipeline](docs/RECI
73
73
  - **Async** -- sync-preserving overloads, parallel field validation, seamless sync/async mixing
74
74
  - **Standard Schema v1** -- `toStandardSchema()` for tRPC, TanStack Form, React Hook Form, and other consumers
75
75
 
76
+ ## Ecosystem
77
+
78
+ - **[@railway-ts/use-form](https://github.com/sakobu/railway-ts-use-form)** -- Type-safe React form hook. Define a schema here, get validated forms with autocomplete, error handling, and native HTML bindings.
79
+
76
80
  ## API Reference
77
81
 
78
82
  ### Option
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@railway-ts/pipelines",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Railway-oriented pipelines for TypeScript: a lightweight fp-style Result/Option and schema layer for handling errors and validating boundaries.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -51,9 +51,28 @@
51
51
  "format": "bunx prettier --write .",
52
52
  "format:check": "bunx prettier --check .",
53
53
  "typecheck": "bunx tsc --noEmit",
54
- "prepublishOnly": "bun run typecheck && bun run lint && bun run test && bun run build",
54
+ "size": "bunx size-limit",
55
+ "prepublishOnly": "bun run typecheck && bun run lint && bun run test && bun run build && bun run size",
55
56
  "check": "bun run typecheck && bun run lint && bun run test"
56
57
  },
58
+ "size-limit": [
59
+ {
60
+ "path": "dist/option/index.mjs",
61
+ "limit": "2 kB"
62
+ },
63
+ {
64
+ "path": "dist/result/index.mjs",
65
+ "limit": "4 kB"
66
+ },
67
+ {
68
+ "path": "dist/composition/index.mjs",
69
+ "limit": "2 kB"
70
+ },
71
+ {
72
+ "path": "dist/schema/index.mjs",
73
+ "limit": "10 kB"
74
+ }
75
+ ],
57
76
  "keywords": [
58
77
  "railway",
59
78
  "railway-oriented",
@@ -85,6 +104,7 @@
85
104
  },
86
105
  "devDependencies": {
87
106
  "@eslint/js": "^9.39.1",
107
+ "@size-limit/preset-small-lib": "^12.0.0",
88
108
  "@types/bun": "1.3.2",
89
109
  "eslint": "^9.39.1",
90
110
  "eslint-import-resolver-typescript": "^4.4.4",
@@ -94,6 +114,7 @@
94
114
  "eslint-plugin-unicorn": "^62.0.0",
95
115
  "globals": "^16.5.0",
96
116
  "prettier": "^3.6.2",
117
+ "size-limit": "^12.0.0",
97
118
  "tsup": "^8.5.0",
98
119
  "typescript-eslint": "^8.46.4"
99
120
  },