@s-libs/ng-app-state
Advanced tools
Changelog
13.1.0-next.0 (2021-12-18)
Stopwatch
(2704c53)mapKeys()
(f29016a)AngularContext.hasHarness()
(464a9b9)@s-libs/ng-mat-core
! A library of utility for Angular Material. The first thing available: SlDialogService
(#71) (91de8e6)elapsedToString()
when computing both very large and very small units. (It is now accurate until the largest unit is about a quadrillion times the size of the smallest unit.) (fa072cd)Changelog
13.0.0-next.0 (2021-11-20)
WrappedFormControlSuperclass
, rename all references of formControl
to control
WrappedFormControlSuperclass
that implement ngOnInit()
, you must now call super.ngOnInit()
FormControlSuperclass
to FormComponentSuperclass
ng-dev
to eslint-config-ng
. The old config was deprecated, now it is removed.ErrorHandler.handleError
will now fail. Expect the errors with something like ctx.inject(MockErrorHandler).expectOne('error message')
.trimLeftoverStyles()
has been removed, because Angular does it now by default.precompileForTests()
was removed from the library. It was only useful for the old View Engine renderer.AsyncMethodController
to automatically trigger promise handlers and change detection is now opt-out instead of opt-in. The ctx
option for its constructor has been removed. If you are using an AngularContext
and do not want automatic calls to .tick()
after each .flush()
and .error()
, pass a new option the constructor: autoTick: false
..run()
method.super.cleanUp()
..assign()
to undefined state. (ad11531), closes #53mapToObject()
for index types (4310429), closes #54intersection()
(1c9a715), closes #48partition()
(14417df), closes #25property()
(52a3c02)nasModel
accepts null
for the store, for compatibility with an async pipe (f5f8f7a), closes #60WrappedControlSuperclass
(fb7cc7e)WrappedControlSuperclass
(337eaa3)FormControlSuperclass
to FormComponentSuperclass
, to better match Angular terminology (where a "FormControl" is not a component) (481908d)AngularContext
now uses MockErrorHandler
. (71f0c44)AsyncMethodController
no longer needs the ctx
argument (3c2f190)ComponentContext
no longer clears styles between tests that were added by anyone other than angular. (This is desirable when using e.g. Ionic or Fontawesome, which expect styles to persist.) (b42af81), closes #34AngularContext.getCurrent()
(0c0acfc)expectRequest()
and SlTestRequest
(115b757)MockErrorHandler
(d83353e)AngularContext.tick()
outside .run()
(396af3c), closes #29Persistence.get()
can return undefined
(50239e5), closes #56flatten()
and flatMap()
now work on very large arrays (5c215da), closes #46WrappedControlSuperclass
gracefully handles errors thrown from innerToOuter()
and outerToInner()
(45599aa)nasModel
and WrappedControlSuperclass
so that it properly receives its initial value (6e07405)Changelog
12.0.0-next.1 (2021-05-23)
Changelog
12.0.0-next.0 (2021-05-18)
@s-libs/eslint-config-ng
. The old TSLint and ESLint configs are still available in ng-dev
, but are deprecated. ESLint is no longer installed automatically with ng-dev
, so to continue using its deprecated config you'll need to install the old dependencies via your own package.json
. They were: "@typescript-eslint/eslint-plugin": "^4.8.0"
, "@typescript-eslint/parser": "^4.6.0"
, and "eslint": "^7.14.0"
. Consult the README for eslint-config-ng to to switch to the new configs. The old ones will be removed from this library in a future version.AngularContextNext
and ComponentContextNext
are renamed to replace their old, deprecated versions. If you are still using the old ones, switch to the "Next" versions and get your tests passing before upgrading to @s-libs
version 12. Once you are on the "Next" versions, this upgrade only requires removing "Next" from the ends of their names.reject()
(915db96), closes #33WrappedFormControlSuperclass.setUpInnerToOuter$()
and .setUpOuterToInner$
(6c90588), closes #37ng-touched
on the inner form control (ad1a474), closes #38