Releases: cloudnc/ngx-sub-form
Releases · cloudnc/ngx-sub-form
v6.0.4-fix-272.1
6.0.4-fix-272.1 (2022-09-22)
Bug Fixes
v6.0.3
6.0.3 (2022-08-02)
Bug Fixes
- default form value not cloned as original object type (04a39f5), closes cloudnc/ngx-sub-form#268
v6.0.2
v6.0.1
v6.0.0
v5.3.2
v5.3.1
v5.3.0
v5.2.0
5.2.0 (2021-11-21)
Bug Fixes
- build of library failing (ec1fe2c)
- CI: Add explicit waiter (78e4ac0)
- CI: Fix readme and licence copying (f5a61a9)
- CI: Refactor to use github actions (8122faa)
- Disabled: Apply the markDirty for disabled in the same side effect so it delays for the init phase. (6586dcf)
- Disabled: Disabled must emit in fallback option (01630e6)
- Disabled: Mark form as dirty when disabling to ensure the disabled view is propagated with OnPush strategy (7d60d42)
- FormArray validation: Ensure FormArray level validator errors are propagated to the parent subform (dd08be9)
- lib:
Cannot read property 'nodeIndex' of null
thrown when component is being marked as dirty (withmarkDirty
before the view is initialised (819ac0f) - rewrite: custom change detection with OnPush (21c61e3)
- Root form emission: Fix mistaken missed negation in previous refactor. Refactor to make the clever one liner actually readable so this kind of mistake can't happen again (9162538)
- Root form emission: It is required to double check validation of forms during sub form population phase (0bef549)
- Update: prevent events emitting when data is populated, and when forms are (en|dis)abled (1fbfd4a)
- Validation: Fix validation errors not propagating immediately (300800b)
- Value emission: Fix invalid values being published that were valid in the previous tick (d60b29b)
- add ngx-observable-lifecycle to package dependencies (738b36b)
- do not use angular internal function
markDirty
as it may not been useful yet and causes issues (908e4b7) - expose shared utils/types through ngx-sub-form/new path so that we can import only from that one when migrating (a348cd4)
- move ngx-observable-lifecycle and fast-deep-equal to peer deps (04339c6)
- relax isRemap check as we can implement
fromFormGroup
and/ortoFormGroup
on a non remap component (it's optional but possible) (048996e) - Update to patched version of ngx-observable-lifecycle (5fc0fff)
- use
startWith
on thewriteValue$
hook otherwise root form component which are not bind to their input will never be able to emit updates (20b5dea)
Features
- ControlValue: Add exported controlValue$ so components can easily observer the current value of the component (341dbef)
- Disabled: Permit root forms to omit the disabled option, defaulting to an empty observable which will not disable the form (78ef09a)
- Form Arrays: Add typesafety to form array option type (b53c955)
- Output control: Add option to provide custom predicate for controlling the output filter (7883191)
- Rewrite: @NgxSubForm() decorator is no longer needed and is not exported (1400b9e)
- Rewrite: Move new strategy to top level api, mark old strategy classes as deprecated (a34e01b)
- Touched: Add ability for sub form components to mark sub control as touched with an observable (6695f79)
- expose partial remap options when the form is not a remap form so that we can override some defaults (871a5e3)
- implement missing handleEmissionRate (45391e3)
- provide a manualSave$ observable as an NgxRootFormOptions (6d7cd34)
- rewrite of ngx-sub-form without inheritance (fef8cce), closes cloudnc/ngx-sub-form#82 cloudnc/ngx-sub-form#86 cloudnc/ngx-sub-form#93 cloudnc/ngx-sub-form#133 cloudnc/ngx-sub-form#143 cloudnc/ngx-sub-form#144 cloudnc/ngx-sub-form#149 cloudnc/ngx-sub-form#160 cloudnc/ngx-sub-form#168
- split old and new API so that we can access them with ngx-sub-form and ngx-sub-form/new to avoid making a breaking change (8e47b43)
v6.0.0-feat-rewrite.17
6.0.0-feat-rewrite.17 (2021-11-18)
Bug Fixes
- build of library failing (7a87fbc)
Features
- upgrade to Angular 13 and Ivy only compilation (982d493)
BREAKING CHANGES
- By upgrading to Angular 13, ngx-sub-form will now stop publishing view engine compatible bundle.
If you're still running a pre Angular 13 version and want to use ngx-sub-form from here it should still be safe to do so thanks to ngcc.
If you're on Angular 13 already then when you install the dependencies by runningnpm install
oryarn
you shouldn't seengx-sub-form
in the list of libraries being compiled by ngcc anymore.