- Update dependencies for security.
- Update core library.
- Bug fix: properly call the
onFailure
callback.
- Update core to fix body serialization bug.
- Pass along
clientName
with form submission.
- Accept
site
+form
combo (in lieu ofid
) for identifying forms.
- Release 1.0.0
- Update core to v1.3.1.
- Use
object-assign
ponyfill instead of global polyfill. - Clean up npm packaging.
- Update StaticKit Core (update base64 polyfill)
- Update StaticKit Core
- Remove
core-js
dependency in favor of simply pulling in specific polyfills.
- [Refactoring] Use the
@statickit/core
library.
- [Bug Fix] Multiple forms on a page were not submitting properly.
Since we were not deeply-copying default config attributes, values were colliding during initialization.
- [Feature] New argument structure (backwards compatibility retained)
Previously, the form component was initialized as follows:
sk('form', '#my-form', { ... })
where #my-form
is the selector targeting the form node.
There are a few problems with this:
- The positional argument is not self-documenting
id
is also a required prop, but it lives in the third object (this is inconsistent)- It's inherently inflexible; what if we want to offer a teardown call, for example?
Now, calls will take the form:
sk(scope, method, config)
So, initializing a form will look like this:
sk('form', 'init', { id: '...', element: '...' })
- [Feature] Pass response
data
as the second argument to theonSuccess
handler.
- [Bug Fix] Initializing with the command queue was broken.
- [Feature] Make it less dangerous to override lifecycle callbacks by re-arranging how default behaviors are run.
- [Bug Fix] Fix argument destructuring that broke after Babel transpiling
- [Feature] Accept a
fields
object in form config for customizing field pretty names and overriding default error messages. - [Bug Fix] Install a babel config file to actually enable transpiling.
- [Feature] Accept a
data
object in form config and append it to the request body.
- Initial release.