@s-libs/js-core
Advanced tools
Changelog
14.1.0 (2022-08-26)
sleep()
now accepts a unit of time (cd3ac16)sort()
(94d255a)size()
(71eaf0b)ComponentContext
will now run APP_INITIALIZER
s before instantiating your component. This requires all work in your initializers to complete with a call to tick()
. (4f5a0a2)debounceMap()
(b6bc9bb)Changelog
14.0.0-next.0 (2022-06-11)
WrappedControlSuperclass
are now synchronized both ways. See the docs for examples to modify or disable this process.WrappedControlSuperclass
now synchronizes validation errors with its outer NgControl
, if one exists (edea7d4), closes #76WrappedControlSuperclass.outerToInner
and similar to .outerToInnerValues
and similar, to avoid confusion with .outerToInnerErrors
(b65e4e2)ComponentHarnessSuperclass
(861a4a4)withHistory()
(c4134ff), closes #5Changelog
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)