New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jalik/form-parser

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jalik/form-parser - npm Package Versions

23

3.1.4

Diff

Changelog

Source

v3.1.4 (2024-04-29)

  • Throws an error when field's "data-type" is unsupported and no parser is passed to parseField() or parseForm() options
  • Fixed TypeScript declaration of ParsingType to allow "string" and custom type like phone
  • Fixed parseForm() returning radio input value as string instead of boolean or number when the last field does not have a data-type
  • Fixed parseField() to execute custom parser on each value of an array instead of the array itself
jalik
published 3.1.3 •

Changelog

Source

v3.1.3 (2024-04-26)

  • Fixed parsing of textarea element
jalik
published 3.1.2 •

Changelog

Source

v3.1.2 (2024-04-25)

  • Fixed returned value of checkboxes without explicit value to be null when unchecked instead of false
  • Fixed returned value of empty (or unchecked) fields to be null instead of undefined
jalik
published 3.1.1 •

Changelog

Source

v3.1.1 (2024-03-19)

  • Fixed option nullify in parseField(element, options)
jalik
published 3.1.0 •

Changelog

Source

v3.1.0 (2023-06-26)

  • Added option parser: (value, dataType, field) to parseForm() and parseField() to handle custom data-type
  • Do not clean, trim or nullify value of checkbox, radio, select, password and hidden fields
  • Fixed checkbox with data-type="boolean" not being false when unchecked
  • Fixed collecting of checkboxes with the same name to an array value (without [] in the name)
  • Fixed collecting of array fields (ex: name="items[]")
  • Fixed duplicate values in array fields
  • Fixed collecting and parsing of radios and checkboxes not working until the last value is checked
jalik
published 3.0.0 •

Changelog

Source

v3.0.0 (2023-06-23)

  • [BREAKING] Removed option ignoreButtons in parseForm(options)
  • [BREAKING] Removed option ignoreUnchecked in parseForm(options)
  • [BREAKING] Removed option ignoreEmpty in parseForm(options)
  • [BREAKING] Removed option ignoreDisabled in parseForm(options)
  • [BREAKING] Removed option smartTyping in parseForm(options)
  • [BREAKING] Removed option dynamicTyping in parseForm(options)
  • Changed parsing expression of "true" to true|1|yes|on for data-type="boolean"
  • Changed parsing expression of "false" to false|0|no|off for data-type="boolean"
  • Added field parsed value as second argument of filterFunction in parseForm(options)
  • Added option parsing: 'none' | 'type' | 'data-type' | 'auto' in parseForm(options) and parseField(options)
  • Fixed data-type="boolean" not returning false when checkbox is not checked
  • Migrated to TypeScript
jalik
published 2.0.12 •

Changelog

Source

v2.0.12 (2022-10-19)

  • Fixed parsing of single input to return null if not checked
  • Fixed parsing of inputs sharing the same name
  • Removed deprecation warnings
  • Upgraded dependencies
jalik
published 2.0.11 •

Changelog

Source

v2.0.11 (2021-09-20)

  • Upgraded dependencies
jalik
published 2.0.10 •

Changelog

Source

v2.0.10 (2021-05-18)

  • Upgraded dependencies
jalik
published 2.0.9 •

Changelog

Source

v2.0.9 (2021-01-18)

  • Upgraded dependencies
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc