Socket
Socket
Sign inDemoInstall

@s-libs/app-state

Package Overview
Dependencies
6
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245Next

13.1.0-next.0

Diff

Changelog

Source

13.1.0-next.0 (2021-12-18)

Features

  • js-core: add Stopwatch (2704c53)
  • micro-dash: add mapKeys() (f29016a)
  • ng-dev: add AngularContext.hasHarness() (464a9b9)
  • ng-mat-core: Introducing @s-libs/ng-mat-core! A library of utility for Angular Material. The first thing available: SlDialogService (#71) (91de8e6)

Bug Fixes

  • js-core: improve accuracy of 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)
simontonsoftware
published 13.0.0 •

Changelog

Source

13.0.0 (2021-11-20)

Bug Fixes

  • ng-dev: properly export expectRequest and SlTestRequest (9c64fdd)
simontonsoftware
published 13.0.0-next.0 •

Changelog

Source

13.0.0-next.0 (2021-11-20)

⚠ BREAKING CHANGES

  • all libraries: UMD bundles are no longer published, because the Angular CLI no longer creates them.
  • ng-core: In subclasses of WrappedFormControlSuperclass, rename all references of formControl to control
  • ng-core: If you have a subclass of WrappedFormControlSuperclass that implement ngOnInit(), you must now call super.ngOnInit()
  • ng-core: Rename all references of FormControlSuperclass to FormComponentSuperclass
  • ng-dev: In a previous version, linting config moved from ng-dev to eslint-config-ng. The old config was deprecated, now it is removed.
  • ng-dev: Tests that cause a call to ErrorHandler.handleError will now fail. Expect the errors with something like ctx.inject(MockErrorHandler).expectOne('error message').
  • ng-dev: trimLeftoverStyles() has been removed, because Angular does it now by default.
  • ng-dev: The deprecated precompileForTests() was removed from the library. It was only useful for the old View Engine renderer.
  • ng-dev: The behavior for 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.
  • ng-dev: To track which context is "current", it is now an error to create a context object without later calling its .run() method.
  • ng-dev: To track which context is "current", it is now required for context subclasses to call super.cleanUp().

Features

  • Upgrade peer dependencies to RxJs 7.4, Angular 13, and Jasmine 3.10 (b030aa1)
  • app-state: improve error message when trying to .assign() to undefined state. (ad11531), closes #53
  • js-core: Improve typing of mapToObject() for index types (4310429), closes #54
  • micro-dash: add intersection() (1c9a715), closes #48
  • micro-dash: add partition() (14417df), closes #25
  • micro-dash: add property() (52a3c02)
  • ng-app-state: nasModel accepts null for the store, for compatibility with an async pipe (f5f8f7a), closes #60
  • ng-core: add WrappedControlSuperclass (fb7cc7e)
  • ng-core: No longer require unnecessary-looking constructors when extending WrappedControlSuperclass (337eaa3)
  • ng-core: Rename FormControlSuperclass to FormComponentSuperclass, to better match Angular terminology (where a "FormControl" is not a component) (481908d)
  • ng-dev: AngularContext now uses MockErrorHandler. (71f0c44)
  • ng-dev: AsyncMethodController no longer needs the ctx argument (3c2f190)
  • ng-dev: 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 #34
  • ng-dev: add AngularContext.getCurrent() (0c0acfc)
  • ng-dev: add expectRequest() and SlTestRequest (115b757)
  • ng-dev: add MockErrorHandler (d83353e)
  • ng-dev: provide a nice error message why trying to use AngularContext.tick() outside .run() (396af3c), closes #29
  • ng-dev: remove deprecated linting config (5b4aefe)

Bug Fixes

  • js-core: Fix typing to show that Persistence.get() can return undefined (50239e5), closes #56
  • micro-dash: flatten() and flatMap() now work on very large arrays (5c215da), closes #46
  • ng-core: WrappedControlSuperclass gracefully handles errors thrown from innerToOuter() and outerToInner() (45599aa)
  • ng-core: Fix a timing issue when combining nasModel and WrappedControlSuperclass so that it properly receives its initial value (6e07405)
  • ng-dev: fix compilation error in CI (2ff1d2c)
simontonsoftware
published 12.0.0 •

Changelog

Source

12.0.0 (2021-05-26)

Features

  • js-core: Typing for MigrateFunction and VersionedObject are available from the package root (4e50072)
simontonsoftware
published 12.0.0-next.1 •

Changelog

Source

12.0.0-next.1 (2021-05-23)

Bug Fixes

  • eslint-config-ng: Extract eslint config to a new project. Allows using it in a JSON config file (cb84b1b)
simontonsoftware
published 12.0.0-next.0 •

Changelog

Source

12.0.0-next.0 (2021-05-18)

⚠ BREAKING CHANGES

  • ng-dev: Linting config is now provided by @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.
  • all 3rd party dependencies require bumped version numbers
  • ng-core: 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.

Features

  • ng-dev: Migrate from deprecated TSLint config to new ESLint config (acd734c)
  • Update to Angular 12 (d527860)
  • micro-dash: add reject() (915db96), closes #33
  • ng-core: add WrappedFormControlSuperclass.setUpInnerToOuter$() and .setUpOuterToInner$ (6c90588), closes #37
  • ng-core: Remove deprecated APIs (106962f)
  • ng-core: WrappedFormControlSuperclass now sets ng-touched on the inner form control (ad1a474), closes #38

Bug Fixes

  • ng-dev: ComponentContextNext now handles inputs that come from a component's superclass (f7830e6), closes #40
simontonsoftware
published 11.3.0 •

Changelog

Source

11.3.0 (2021-03-13)

Features

  • micro-dash: add negate() (1056836), closes #26
  • micro-dash: improve typing of forEach (74dbdbf), closes #22
  • ng-dev: remove the ESLint rule max-statements. It did not lead to better code. (339ab7f)
  • rxjs-core: add keepWakeLock$() (4a58461)
  • rxjs-core: add SubscriptionManager.manage() (4b1aad6)
simontonsoftware
published 11.2.1 •

Changelog

Source

11.2.1 (2021-01-07)

Bug Fixes

  • ng-core: Fix for "Types of property 'ɵfac' are incompatible." (06f89f9)
simontonsoftware
published 11.2.0 •

Changelog

Source

11.2.0 (2021-01-07)

Features

  • micro-dash: improve typing of reduce() and reduceRight() (6c5500d), closes #20
  • ng-dev: AngularContext flushes pending timeouts automatically at the end of each test (instead of throwing the error "X timer(s) still in the queue.") (33d890a), closes #21

Bug Fixes

  • js-core: no longer throw error when localStorage is not available (06be1e5), closes #17
  • ng-core: DirectiveSuperclass.getInput$() emits synchronously if .ngOnChanges() was already called (466415c)
simontonsoftware
published 11.2.0-next.2 •

Changelog

Source

11.2.0-next.2 (2021-01-05)

Features

  • ng-dev: ComponentContextNext runs async tests and uses normal async component harnesses. Deprecate AngularContext in favor of the new AngularContextNext (which powers some of this new behavior). (07cecef)
  • ng-dev: added ComponentContextNext.assignWrapperStyles() (b3fc051)
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc