hookform-action-standalone 4.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 hookform-action contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,80 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { ActionResult, UseActionFormCoreOptions, UseActionFormCoreReturn } from 'hookform-action-core';
3
+ export { ActionFormPlugin, ActionFormState, ActionResult, ClientValidationMode, ErrorMapper, FieldErrorRecord, Form, FormProps, OptimisticReducer, OptimisticState, SubmissionRecord, SubmitFunction, UseActionFormCoreOptions, UseActionFormCoreReturn, clearPersistedValues, defaultErrorMapper, hasUseOptimistic, loadPersistedValues, savePersistedValues, useActionFormCore, withZod } from 'hookform-action-core';
4
+
5
+ /**
6
+ * A generic async submit function provided by the user.
7
+ * In standalone mode there are no Server Actions — the user provides
8
+ * a plain async function (e.g. wrapping fetch, axios, etc.).
9
+ */
10
+ type StandaloneSubmitFunction<TFieldValues extends FieldValues, TResult> = (data: TFieldValues) => Promise<TResult>;
11
+ /**
12
+ * Options for `useActionForm` in standalone mode.
13
+ * Identical to the core options but with `submit` as a required top-level option.
14
+ */
15
+ interface UseStandaloneActionFormOptions<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined> extends UseActionFormCoreOptions<TFieldValues, TResult, TOptimistic> {
16
+ /**
17
+ * The async function that handles form submission.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * submit: async (data) => {
22
+ * const res = await fetch('/api/submit', {
23
+ * method: 'POST',
24
+ * body: JSON.stringify(data),
25
+ * headers: { 'Content-Type': 'application/json' },
26
+ * })
27
+ * return res.json()
28
+ * }
29
+ * ```
30
+ */
31
+ submit: StandaloneSubmitFunction<TFieldValues, TResult>;
32
+ }
33
+ /**
34
+ * Return type of `useActionForm` in standalone mode.
35
+ * Same as core return (no `formAction` since there are no Server Actions).
36
+ */
37
+ type UseStandaloneActionFormReturn<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined> = UseActionFormCoreReturn<TFieldValues, TResult, TOptimistic>;
38
+ /**
39
+ * `useActionForm` for standalone React apps (Vite, Remix, Astro, SPAs).
40
+ *
41
+ * Provides the same API as the Next.js version but instead of a Server Action,
42
+ * you pass a plain `submit` function.
43
+ *
44
+ * @example
45
+ * ```tsx
46
+ * import { useActionForm } from 'hookform-action-standalone'
47
+ * import { z } from 'zod'
48
+ *
49
+ * const schema = z.object({
50
+ * email: z.string().email(),
51
+ * password: z.string().min(8),
52
+ * })
53
+ *
54
+ * function LoginForm() {
55
+ * const { register, handleSubmit, formState } = useActionForm({
56
+ * submit: async (data) => {
57
+ * const res = await fetch('/api/login', {
58
+ * method: 'POST',
59
+ * body: JSON.stringify(data),
60
+ * headers: { 'Content-Type': 'application/json' },
61
+ * })
62
+ * return res.json()
63
+ * },
64
+ * schema,
65
+ * validationMode: 'onChange',
66
+ * })
67
+ *
68
+ * return (
69
+ * <form onSubmit={handleSubmit()}>
70
+ * <input {...register('email')} />
71
+ * <input {...register('password')} type="password" />
72
+ * <button disabled={formState.isPending}>Login</button>
73
+ * </form>
74
+ * )
75
+ * }
76
+ * ```
77
+ */
78
+ declare function useActionForm<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined>(options: UseStandaloneActionFormOptions<TFieldValues, TResult, TOptimistic>): UseStandaloneActionFormReturn<TFieldValues, TResult, TOptimistic>;
79
+
80
+ export { type StandaloneSubmitFunction, type UseStandaloneActionFormOptions, type UseStandaloneActionFormReturn, useActionForm };
@@ -0,0 +1,80 @@
1
+ import { FieldValues } from 'react-hook-form';
2
+ import { ActionResult, UseActionFormCoreOptions, UseActionFormCoreReturn } from 'hookform-action-core';
3
+ export { ActionFormPlugin, ActionFormState, ActionResult, ClientValidationMode, ErrorMapper, FieldErrorRecord, Form, FormProps, OptimisticReducer, OptimisticState, SubmissionRecord, SubmitFunction, UseActionFormCoreOptions, UseActionFormCoreReturn, clearPersistedValues, defaultErrorMapper, hasUseOptimistic, loadPersistedValues, savePersistedValues, useActionFormCore, withZod } from 'hookform-action-core';
4
+
5
+ /**
6
+ * A generic async submit function provided by the user.
7
+ * In standalone mode there are no Server Actions — the user provides
8
+ * a plain async function (e.g. wrapping fetch, axios, etc.).
9
+ */
10
+ type StandaloneSubmitFunction<TFieldValues extends FieldValues, TResult> = (data: TFieldValues) => Promise<TResult>;
11
+ /**
12
+ * Options for `useActionForm` in standalone mode.
13
+ * Identical to the core options but with `submit` as a required top-level option.
14
+ */
15
+ interface UseStandaloneActionFormOptions<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined> extends UseActionFormCoreOptions<TFieldValues, TResult, TOptimistic> {
16
+ /**
17
+ * The async function that handles form submission.
18
+ *
19
+ * @example
20
+ * ```ts
21
+ * submit: async (data) => {
22
+ * const res = await fetch('/api/submit', {
23
+ * method: 'POST',
24
+ * body: JSON.stringify(data),
25
+ * headers: { 'Content-Type': 'application/json' },
26
+ * })
27
+ * return res.json()
28
+ * }
29
+ * ```
30
+ */
31
+ submit: StandaloneSubmitFunction<TFieldValues, TResult>;
32
+ }
33
+ /**
34
+ * Return type of `useActionForm` in standalone mode.
35
+ * Same as core return (no `formAction` since there are no Server Actions).
36
+ */
37
+ type UseStandaloneActionFormReturn<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined> = UseActionFormCoreReturn<TFieldValues, TResult, TOptimistic>;
38
+ /**
39
+ * `useActionForm` for standalone React apps (Vite, Remix, Astro, SPAs).
40
+ *
41
+ * Provides the same API as the Next.js version but instead of a Server Action,
42
+ * you pass a plain `submit` function.
43
+ *
44
+ * @example
45
+ * ```tsx
46
+ * import { useActionForm } from 'hookform-action-standalone'
47
+ * import { z } from 'zod'
48
+ *
49
+ * const schema = z.object({
50
+ * email: z.string().email(),
51
+ * password: z.string().min(8),
52
+ * })
53
+ *
54
+ * function LoginForm() {
55
+ * const { register, handleSubmit, formState } = useActionForm({
56
+ * submit: async (data) => {
57
+ * const res = await fetch('/api/login', {
58
+ * method: 'POST',
59
+ * body: JSON.stringify(data),
60
+ * headers: { 'Content-Type': 'application/json' },
61
+ * })
62
+ * return res.json()
63
+ * },
64
+ * schema,
65
+ * validationMode: 'onChange',
66
+ * })
67
+ *
68
+ * return (
69
+ * <form onSubmit={handleSubmit()}>
70
+ * <input {...register('email')} />
71
+ * <input {...register('password')} type="password" />
72
+ * <button disabled={formState.isPending}>Login</button>
73
+ * </form>
74
+ * )
75
+ * }
76
+ * ```
77
+ */
78
+ declare function useActionForm<TFieldValues extends FieldValues = FieldValues, TResult = ActionResult, TOptimistic = undefined>(options: UseStandaloneActionFormOptions<TFieldValues, TResult, TOptimistic>): UseStandaloneActionFormReturn<TFieldValues, TResult, TOptimistic>;
79
+
80
+ export { type StandaloneSubmitFunction, type UseStandaloneActionFormOptions, type UseStandaloneActionFormReturn, useActionForm };
package/dist/index.js ADDED
@@ -0,0 +1,51 @@
1
+ 'use strict';
2
+
3
+ var react = require('react');
4
+ var hookformActionCore = require('hookform-action-core');
5
+
6
+ function useActionForm(options) {
7
+ const { submit, ...coreOptions } = options;
8
+ const submitFn = react.useCallback(
9
+ async (data) => {
10
+ return submit(data);
11
+ },
12
+ [submit]
13
+ );
14
+ return hookformActionCore.useActionFormCore(submitFn, coreOptions);
15
+ }
16
+
17
+ Object.defineProperty(exports, "Form", {
18
+ enumerable: true,
19
+ get: function () { return hookformActionCore.Form; }
20
+ });
21
+ Object.defineProperty(exports, "clearPersistedValues", {
22
+ enumerable: true,
23
+ get: function () { return hookformActionCore.clearPersistedValues; }
24
+ });
25
+ Object.defineProperty(exports, "defaultErrorMapper", {
26
+ enumerable: true,
27
+ get: function () { return hookformActionCore.defaultErrorMapper; }
28
+ });
29
+ Object.defineProperty(exports, "hasUseOptimistic", {
30
+ enumerable: true,
31
+ get: function () { return hookformActionCore.hasUseOptimistic; }
32
+ });
33
+ Object.defineProperty(exports, "loadPersistedValues", {
34
+ enumerable: true,
35
+ get: function () { return hookformActionCore.loadPersistedValues; }
36
+ });
37
+ Object.defineProperty(exports, "savePersistedValues", {
38
+ enumerable: true,
39
+ get: function () { return hookformActionCore.savePersistedValues; }
40
+ });
41
+ Object.defineProperty(exports, "useActionFormCore", {
42
+ enumerable: true,
43
+ get: function () { return hookformActionCore.useActionFormCore; }
44
+ });
45
+ Object.defineProperty(exports, "withZod", {
46
+ enumerable: true,
47
+ get: function () { return hookformActionCore.withZod; }
48
+ });
49
+ exports.useActionForm = useActionForm;
50
+ //# sourceMappingURL=index.js.map
51
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/use-action-form.ts"],"names":["useCallback","useActionFormCore"],"mappings":";;;;;AA2GO,SAAS,cAKd,OAAA,EACmE;AACnE,EAAA,MAAM,EAAE,MAAA,EAAQ,GAAG,WAAA,EAAY,GAAI,OAAA;AAGnC,EAAA,MAAM,QAAA,GAAkDA,iBAAA;AAAA,IACtD,OAAO,IAAA,KAAuB;AAC5B,MAAA,OAAO,OAAO,IAAI,CAAA;AAAA,IACpB,CAAA;AAAA,IACA,CAAC,MAAM;AAAA,GACT;AAEA,EAAA,OAAOC,oCAAA,CAAsD,UAAU,WAAW,CAAA;AACpF","file":"index.js","sourcesContent":["\"use client\";\n\nimport { useCallback } from \"react\";\nimport type { FieldValues } from \"react-hook-form\";\n\nimport {\n type ActionResult,\n type SubmitFunction,\n type UseActionFormCoreOptions,\n type UseActionFormCoreReturn,\n useActionFormCore,\n} from \"hookform-action-core\";\n\n// ---------------------------------------------------------------------------\n// Standalone-specific types\n// ---------------------------------------------------------------------------\n\n/**\n * A generic async submit function provided by the user.\n * In standalone mode there are no Server Actions — the user provides\n * a plain async function (e.g. wrapping fetch, axios, etc.).\n */\nexport type StandaloneSubmitFunction<TFieldValues extends FieldValues, TResult> = (\n data: TFieldValues,\n) => Promise<TResult>;\n\n/**\n * Options for `useActionForm` in standalone mode.\n * Identical to the core options but with `submit` as a required top-level option.\n */\nexport interface UseStandaloneActionFormOptions<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n> extends UseActionFormCoreOptions<TFieldValues, TResult, TOptimistic> {\n /**\n * The async function that handles form submission.\n *\n * @example\n * ```ts\n * submit: async (data) => {\n * const res = await fetch('/api/submit', {\n * method: 'POST',\n * body: JSON.stringify(data),\n * headers: { 'Content-Type': 'application/json' },\n * })\n * return res.json()\n * }\n * ```\n */\n submit: StandaloneSubmitFunction<TFieldValues, TResult>;\n}\n\n/**\n * Return type of `useActionForm` in standalone mode.\n * Same as core return (no `formAction` since there are no Server Actions).\n */\nexport type UseStandaloneActionFormReturn<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n> = UseActionFormCoreReturn<TFieldValues, TResult, TOptimistic>;\n\n// ---------------------------------------------------------------------------\n// useActionForm – Standalone adapter (v3)\n// ---------------------------------------------------------------------------\n\n/**\n * `useActionForm` for standalone React apps (Vite, Remix, Astro, SPAs).\n *\n * Provides the same API as the Next.js version but instead of a Server Action,\n * you pass a plain `submit` function.\n *\n * @example\n * ```tsx\n * import { useActionForm } from 'hookform-action-standalone'\n * import { z } from 'zod'\n *\n * const schema = z.object({\n * email: z.string().email(),\n * password: z.string().min(8),\n * })\n *\n * function LoginForm() {\n * const { register, handleSubmit, formState } = useActionForm({\n * submit: async (data) => {\n * const res = await fetch('/api/login', {\n * method: 'POST',\n * body: JSON.stringify(data),\n * headers: { 'Content-Type': 'application/json' },\n * })\n * return res.json()\n * },\n * schema,\n * validationMode: 'onChange',\n * })\n *\n * return (\n * <form onSubmit={handleSubmit()}>\n * <input {...register('email')} />\n * <input {...register('password')} type=\"password\" />\n * <button disabled={formState.isPending}>Login</button>\n * </form>\n * )\n * }\n * ```\n */\nexport function useActionForm<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n>(\n options: UseStandaloneActionFormOptions<TFieldValues, TResult, TOptimistic>,\n): UseStandaloneActionFormReturn<TFieldValues, TResult, TOptimistic> {\n const { submit, ...coreOptions } = options;\n\n // The submit function is already in the right shape for the core\n const submitFn: SubmitFunction<TFieldValues, TResult> = useCallback(\n async (data: TFieldValues) => {\n return submit(data);\n },\n [submit],\n );\n\n return useActionFormCore<TFieldValues, TResult, TOptimistic>(submitFn, coreOptions);\n}\n"]}
package/dist/index.mjs ADDED
@@ -0,0 +1,18 @@
1
+ import { useCallback } from 'react';
2
+ import { useActionFormCore } from 'hookform-action-core';
3
+ export { Form, clearPersistedValues, defaultErrorMapper, hasUseOptimistic, loadPersistedValues, savePersistedValues, useActionFormCore, withZod } from 'hookform-action-core';
4
+
5
+ function useActionForm(options) {
6
+ const { submit, ...coreOptions } = options;
7
+ const submitFn = useCallback(
8
+ async (data) => {
9
+ return submit(data);
10
+ },
11
+ [submit]
12
+ );
13
+ return useActionFormCore(submitFn, coreOptions);
14
+ }
15
+
16
+ export { useActionForm };
17
+ //# sourceMappingURL=index.mjs.map
18
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/use-action-form.ts"],"names":[],"mappings":";;;;AA2GO,SAAS,cAKd,OAAA,EACmE;AACnE,EAAA,MAAM,EAAE,MAAA,EAAQ,GAAG,WAAA,EAAY,GAAI,OAAA;AAGnC,EAAA,MAAM,QAAA,GAAkD,WAAA;AAAA,IACtD,OAAO,IAAA,KAAuB;AAC5B,MAAA,OAAO,OAAO,IAAI,CAAA;AAAA,IACpB,CAAA;AAAA,IACA,CAAC,MAAM;AAAA,GACT;AAEA,EAAA,OAAO,iBAAA,CAAsD,UAAU,WAAW,CAAA;AACpF","file":"index.mjs","sourcesContent":["\"use client\";\n\nimport { useCallback } from \"react\";\nimport type { FieldValues } from \"react-hook-form\";\n\nimport {\n type ActionResult,\n type SubmitFunction,\n type UseActionFormCoreOptions,\n type UseActionFormCoreReturn,\n useActionFormCore,\n} from \"hookform-action-core\";\n\n// ---------------------------------------------------------------------------\n// Standalone-specific types\n// ---------------------------------------------------------------------------\n\n/**\n * A generic async submit function provided by the user.\n * In standalone mode there are no Server Actions — the user provides\n * a plain async function (e.g. wrapping fetch, axios, etc.).\n */\nexport type StandaloneSubmitFunction<TFieldValues extends FieldValues, TResult> = (\n data: TFieldValues,\n) => Promise<TResult>;\n\n/**\n * Options for `useActionForm` in standalone mode.\n * Identical to the core options but with `submit` as a required top-level option.\n */\nexport interface UseStandaloneActionFormOptions<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n> extends UseActionFormCoreOptions<TFieldValues, TResult, TOptimistic> {\n /**\n * The async function that handles form submission.\n *\n * @example\n * ```ts\n * submit: async (data) => {\n * const res = await fetch('/api/submit', {\n * method: 'POST',\n * body: JSON.stringify(data),\n * headers: { 'Content-Type': 'application/json' },\n * })\n * return res.json()\n * }\n * ```\n */\n submit: StandaloneSubmitFunction<TFieldValues, TResult>;\n}\n\n/**\n * Return type of `useActionForm` in standalone mode.\n * Same as core return (no `formAction` since there are no Server Actions).\n */\nexport type UseStandaloneActionFormReturn<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n> = UseActionFormCoreReturn<TFieldValues, TResult, TOptimistic>;\n\n// ---------------------------------------------------------------------------\n// useActionForm – Standalone adapter (v3)\n// ---------------------------------------------------------------------------\n\n/**\n * `useActionForm` for standalone React apps (Vite, Remix, Astro, SPAs).\n *\n * Provides the same API as the Next.js version but instead of a Server Action,\n * you pass a plain `submit` function.\n *\n * @example\n * ```tsx\n * import { useActionForm } from 'hookform-action-standalone'\n * import { z } from 'zod'\n *\n * const schema = z.object({\n * email: z.string().email(),\n * password: z.string().min(8),\n * })\n *\n * function LoginForm() {\n * const { register, handleSubmit, formState } = useActionForm({\n * submit: async (data) => {\n * const res = await fetch('/api/login', {\n * method: 'POST',\n * body: JSON.stringify(data),\n * headers: { 'Content-Type': 'application/json' },\n * })\n * return res.json()\n * },\n * schema,\n * validationMode: 'onChange',\n * })\n *\n * return (\n * <form onSubmit={handleSubmit()}>\n * <input {...register('email')} />\n * <input {...register('password')} type=\"password\" />\n * <button disabled={formState.isPending}>Login</button>\n * </form>\n * )\n * }\n * ```\n */\nexport function useActionForm<\n TFieldValues extends FieldValues = FieldValues,\n TResult = ActionResult,\n TOptimistic = undefined,\n>(\n options: UseStandaloneActionFormOptions<TFieldValues, TResult, TOptimistic>,\n): UseStandaloneActionFormReturn<TFieldValues, TResult, TOptimistic> {\n const { submit, ...coreOptions } = options;\n\n // The submit function is already in the right shape for the core\n const submitFn: SubmitFunction<TFieldValues, TResult> = useCallback(\n async (data: TFieldValues) => {\n return submit(data);\n },\n [submit],\n );\n\n return useActionFormCore<TFieldValues, TResult, TOptimistic>(submitFn, coreOptions);\n}\n"]}
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "hookform-action-standalone",
3
+ "version": "4.0.0",
4
+ "description": "Standalone React adapter for hookform-action – use the same API without Next.js (Vite, Remix, Astro, SPAs).",
5
+ "keywords": [
6
+ "react",
7
+ "react-hook-form",
8
+ "form",
9
+ "validation",
10
+ "typescript",
11
+ "vite",
12
+ "remix",
13
+ "astro",
14
+ "standalone"
15
+ ],
16
+ "license": "MIT",
17
+ "author": "",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/gabpaesschulz/hookform-action",
21
+ "directory": "packages/standalone"
22
+ },
23
+ "main": "./dist/index.js",
24
+ "module": "./dist/index.mjs",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "import": {
29
+ "types": "./dist/index.d.mts",
30
+ "default": "./dist/index.mjs"
31
+ },
32
+ "require": {
33
+ "types": "./dist/index.d.ts",
34
+ "default": "./dist/index.js"
35
+ }
36
+ }
37
+ },
38
+ "files": [
39
+ "dist",
40
+ "README.md",
41
+ "LICENSE"
42
+ ],
43
+ "sideEffects": false,
44
+ "dependencies": {
45
+ "hookform-action-core": "4.0.0"
46
+ },
47
+ "peerDependencies": {
48
+ "react": "^18.0.0 || ^19.0.0",
49
+ "react-dom": "^18.0.0 || ^19.0.0",
50
+ "react-hook-form": ">=7.50.0",
51
+ "zod": ">=3.22.0"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "zod": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "devDependencies": {
59
+ "@testing-library/jest-dom": "^6.6.3",
60
+ "@testing-library/react": "^16.1.0",
61
+ "@testing-library/user-event": "^14.5.2",
62
+ "@types/react": "^18.3.18",
63
+ "@types/react-dom": "^18.3.5",
64
+ "jsdom": "^25.0.1",
65
+ "react": "^18.3.1",
66
+ "react-dom": "^18.3.1",
67
+ "react-hook-form": "^7.54.2",
68
+ "tsup": "^8.3.6",
69
+ "typescript": "^5.7.3",
70
+ "vitest": "^2.1.8",
71
+ "zod": "^3.24.1"
72
+ },
73
+ "scripts": {
74
+ "build": "tsup",
75
+ "dev": "tsup --watch",
76
+ "lint": "biome check src/",
77
+ "test": "vitest run",
78
+ "test:watch": "vitest",
79
+ "check-types": "tsc --noEmit"
80
+ }
81
+ }