@tanstack/valibot-adapter 1.121.15 → 1.121.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/valibot-adapter",
3
- "version": "1.121.15",
3
+ "version": "1.121.17",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
@@ -54,7 +54,7 @@
54
54
  "valibot": "1.0.0-beta.15",
55
55
  "react": "^19.0.0",
56
56
  "react-dom": "^19.0.0",
57
- "@tanstack/react-router": "^1.121.15"
57
+ "@tanstack/react-router": "^1.121.17"
58
58
  },
59
59
  "peerDependencies": {
60
60
  "valibot": "^1.0.0 || ^1.0.0-beta.5 || ^1.0.0-rc",
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const valibot = require("valibot");
4
- const valibotValidator = (options) => {
5
- return {
6
- types: {
7
- input: null,
8
- output: null
9
- },
10
- parse: (input) => valibot.parse(options, input)
11
- };
12
- };
13
- exports.valibotValidator = valibotValidator;
14
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"names":["parse"],"mappings":";;;AAOa,MAAA,mBAAmB,CAC9B,YACsC;AAC/B,SAAA;AAAA,IACL,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,IACA,OAAO,CAAC,UAAUA,QAAA,MAAM,SAAS,KAAK;AAAA,EACxC;AACF;;"}
@@ -1,4 +0,0 @@
1
- import { ValidatorAdapter } from '@tanstack/react-router';
2
- import { GenericSchema, InferInput, InferOutput } from 'valibot';
3
- export type ValibotValidatorAdapter<TOptions extends GenericSchema> = ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>;
4
- export declare const valibotValidator: <TOptions extends GenericSchema>(options: TOptions) => ValibotValidatorAdapter<TOptions>;
@@ -1,4 +0,0 @@
1
- import { ValidatorAdapter } from '@tanstack/react-router';
2
- import { GenericSchema, InferInput, InferOutput } from 'valibot';
3
- export type ValibotValidatorAdapter<TOptions extends GenericSchema> = ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>;
4
- export declare const valibotValidator: <TOptions extends GenericSchema>(options: TOptions) => ValibotValidatorAdapter<TOptions>;
package/dist/esm/index.js DELETED
@@ -1,14 +0,0 @@
1
- import { parse } from "valibot";
2
- const valibotValidator = (options) => {
3
- return {
4
- types: {
5
- input: null,
6
- output: null
7
- },
8
- parse: (input) => parse(options, input)
9
- };
10
- };
11
- export {
12
- valibotValidator
13
- };
14
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["import { parse } from 'valibot'\nimport type { ValidatorAdapter } from '@tanstack/react-router'\nimport type { GenericSchema, InferInput, InferOutput } from 'valibot'\n\nexport type ValibotValidatorAdapter<TOptions extends GenericSchema> =\n ValidatorAdapter<InferInput<TOptions>, InferOutput<TOptions>>\n\nexport const valibotValidator = <TOptions extends GenericSchema>(\n options: TOptions,\n): ValibotValidatorAdapter<TOptions> => {\n return {\n types: {\n input: null,\n output: null,\n },\n parse: (input) => parse(options, input),\n }\n}\n"],"names":[],"mappings":";AAOa,MAAA,mBAAmB,CAC9B,YACsC;AAC/B,SAAA;AAAA,IACL,OAAO;AAAA,MACL,OAAO;AAAA,MACP,QAAQ;AAAA,IACV;AAAA,IACA,OAAO,CAAC,UAAU,MAAM,SAAS,KAAK;AAAA,EACxC;AACF;"}