willowtreeapps / react-formable

React Forms
25 stars 5 forks source link

Roadmap to 1.0 #77

Closed kaw2k closed 6 years ago

kaw2k commented 8 years ago

Thus far the API to formable has been pretty stable across multiple projects. Time to solidify things 😄. We have encountered a few pain points that I want to address before 1.0, here they are in no particular order.

Convert the codebase to Typescript This will give us several big wins. Access to modern javascript features, tooling support, safeguards to help other contributors enter the project, and types for those who want to use them with formable.

Allow for async validation We are exploring what API changes would need to happen to permit async validation. This seems to be a critical feature for many people, so having it on an input basis isn't acceptable.

Improve how forms interact with lists of data Currently we have Fieldlist which lets us render lists of forms effortlessly. The other half of the coin is to get that form data back into the list data. This can be done with manually merging the data, but is painful. #9 was the starting point of solving this issue, however may be overly complicated for most users.

Miss anything that sounds critical? Leave your thoughts in the comments!

sanghin commented 8 years ago

I'm using typescript and i've made a custom d.ts file it's not a perfect definition file but it allow me to use react-formable with Typescript and it can be a start for you. Gist here.

kaw2k commented 8 years ago

Ty @dbonnay! Will certainly look over this 😄 Another benefit of using Typescript will mean auto generated .d.ts files that are always up to date.

kaw2k commented 6 years ago

Starting in v2 typings are included 😄