Skip to content

Commit

Permalink
chore: prepare to remove next as a dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanfilhoz committed May 28, 2024
1 parent 1b83c08 commit 37da607
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
node_modules
/.pnp
.pnp.js
.yarn/install-state.gz
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "safe-form",
"version": "0.11.1",
"version": "0.11.2",
"description": "⚡️ End-to-end type-safety from client to server.",
"main": "dist/safe-form.es.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions src/useForm.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

import { shallowEqual } from '@/helpers/shallowEqual'
import { useFormAction } from '@/useFormAction'
import {
FormHTMLAttributes,
HTMLAttributes,
Expand All @@ -17,7 +15,9 @@ import {
import type { Schema } from 'zod'
import { parseValueFromInput } from './helpers/parseValueFromInput'
import { parseZodError } from './helpers/parseZodError'
import { shallowEqual } from './helpers/shallowEqual'
import { FormAction, FormFieldErrors, FormInput, FormState } from './types'
import { useFormAction } from './useFormAction'

type BindableField = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement

Expand Down
2 changes: 1 addition & 1 deletion src/useFormAction.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use client'

import { createFormData } from '@/helpers/serializer'
import { useCallback, useEffect, useTransition } from 'react'
import { useFormState } from 'react-dom'
import { createFormData } from './helpers/serializer'
import { FormAction, FormFieldErrors, FormInput, FormState } from './types'

type UseFormActionParams<Input extends FormInput, FormResponse> = {
Expand Down

0 comments on commit 37da607

Please sign in to comment.