- Updated to Typescript 5.
- Conversion from Typescript to Javascript.
- If a form has an input with
name="action"
this conflicts with theaction
attribute on forms. This is now fixed.
- Remove use of
redirect: manual
. This setting is not what it said on the tin.
- #2: The
action
attribute was in some cases ignored.
- Fix a TS error.
- Rebuild files in 'dist/'
- No longer take over forms if they have a method and enctype browsers support.
- Correctly serialize
application/x-www-form-urlencoded
.FormData
doesn't do it out of the box.
- Automatically replace body HTML and url when getting a HTML response from a server.
- Re-release. js files were not built.
- Catch fetch errors.
- Prefix errors in console with
[html-form-enhancer]
. - JSON encoding wasn't working yet.
- Added 'preventDefault' so normal form behavior does not kick in.
- Getting the form method and enctype from an alternative DOM API. Seems that
method will get rewritten to 'get' if it's not
GET
orPOST
.
- Auto-register forms with methods that are not
POST
orGET
or ifenctype
isapplication/json
.
- Add
.js
files to import statements so output javascript files can be used in browsers without modification/building.
- Add
dist/
files to npm package.
- First version, mostly untested.