Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngrx-forms

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngrx-forms - npm Package Versions

1
46

2.3.1

Diff

Changelog

Source

2.3.1

Bugfixes
  • allow action type to be undefined inside form state reducers (0a61def), closes #44 (thanks @lucax88x)

<a name="2.3.0"></a>

mrwolfz
published 2.3.0 •

Changelog

Source

2.3.0

Features
  • add support for array values in minLength, maxLength, and required validation functions (c88353a), closes #40 (thanks @icepeng)
  • set CSS classes on form elements based on the status of the control (see the documentation for more details) (eddcbf4), closes #34
Bugfixes
  • when removing controls from arrays update child control state IDs recursively (be3cd49), closes #41

<a name="2.2.0"></a>

mrwolfz
published 2.2.0 •

Changelog

Source

2.2.0

Breaking Changes
  • empty groups and arrays are now always enabled instead of disabled and therefore errors can now be set on empty groups and arrays (note that this is only a minor breaking change and only applies in edge cases and therefore this fix is included in a new minor instead of a new major version) (749c1b5), closes #37
Bugfixes
  • fix missing union case in typing of updateArray update function that causes a compile error if used inside an updateGroup (fa7dccc)
  • fix updateGroup throwing an error if an empty update object was provided in curried as well as uncurried version (bee4d54)
  • fix createFormGroupState producing results inconsistent with how group states are recomputed from their children after an update (1c62d8c)
  • fix createFormArrayState producing results inconsistent with how array states are recomputed from their children after an update (70fdc10)

<a name="2.1.2"></a>

mrwolfz
published 2.1.2 •

Changelog

Source

2.1.2

Bugfixes
  • fix issue that caused select elements to get assigned wrong initial value (d62ec81), closes #32

<a name="2.1.1"></a>

mrwolfz
published 2.1.1 •

Changelog

Source

2.1.1

Bugfixes
  • fix select controls not properly selecting option if option is added to the DOM after the value of the state was set to the value of the option (0c2c0cc), closes #23

<a name="2.1.0"></a>

mrwolfz
published 2.1.0 •

Changelog

Source

2.1.0

Features
  • improve performance by ignoring irrelevant actions in reducers
Bugfixes
  • fix issue that causes user defined properties not being properly set for form controls in groups or arrays when setting them by dispatching actions (ba0c34f), closes #24

<a name="2.0.1"></a>

mrwolfz
published 2.0.1 •

Changelog

Source

2.0.1

Bugfixes
  • properly handle case where the addArrayControl update function is called with only a value but neither an index nor a state

<a name="2.0.0"></a>

mrwolfz
published 2.0.0 •

Changelog

Source

2.0.0

Features
  • add support for arrays of form controls (19d4e49)
  • add support for asynchronous validation (see the documentation for more details) (f208e61)
  • add value converter for object to JSON conversion (2ba37ee) (thanks @tbroadley)
  • add support for error composition by extending validate update function to take a single validation function or an array of validation functions (ba976c5)
  • add setErrors update function (ee25ca8)
  • add reset update function (d380e67)
  • add updateRecursive update function (see the documentation for a usage example) (31f9d5d)
  • add common set of validation functions (40308d4)
  • add support for user defined properties on form controls and groups (d9778d2)
  • introduce concept of FormViewAdapter and rewrite all control value accessors from scratch as view adapters (see the documentation for more details)
  • extend example application to contain multiple examples
  • added overloads for many update functions that make casting the state unnecessary in certain situations
  • added lots of inline comments to the API making it easier to understand what certain functions do right in your IDE
Breaking Changes
  • remove support for last keydown code tracking on form controls (this feature has been superseded by user defined properties which allow associating any kind of metadata with a control)
  • rename groupUpdateReducer to createFormGroupReducerWithUpdate in order to make it clearer that the function itself is not a reducer
  • remove erroneously exposed function createChildState from public API
  • change option element value bindings to work correctly for all primitive data types thereby removing the need for ngValue bindings
  • trying to set an error with a key prefixed with $ will now throw an error since the $ prefix is used to mark async errors
  • applying the ngrxFormControlState directive to a form element will now set the element's id attribute to the ID of the state (thereby overriding any already present id)
  • the isDirty property for form controls is now not set automatically the first time the state's value changes, but instead it is set manually from the NgrxFormControlDirective the first time the underlying FormViewAdapter or ControlValueAccessor reports a new value; this means if you were e.g. using the setValue update function in your reducer before this will now not mark the state as dirty anymore
  • rename addControl update function to addGroupControl
  • rename AddControlAction to AddGroupControlAction (also renaming its type from ngrx/forms/ADD_CONTROL to ngrx/forms/ADD_GROUP_CONTROL)
  • rename removeControl update function to removeGroupControl
  • rename RemoveControlAction to RemoveGroupControlAction (also renaming its type from ngrx/forms/REMOVE_CONTROL to ngrx/forms/REMOVE_GROUP_CONTROL)
Bugfixes
  • fix issue that caused bundled library to be larger than required due to external dependencies being included in the bundle (drastically reducing its size)

<a name="1.1.1"></a>

mrwolfz
published 1.1.1 •

Changelog

Source

1.1.1

Bugfixes
  • change updateGroups function to properly accept multiple update function objects as written in the documentation

<a name="1.1.0"></a>

mrwolfz
published 1.1.0 •

Changelog

Source

1.1.0

Features
  • add support for controlling when the view value is pushed to the state via ngrxUpdateOn
  • add support for value conversion via ngrxValueConverter

<a name="1.0.2"></a>

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