@ngxs/store 3.7.4-dev.master-b54795e → 3.7.4-dev.master-b5064f8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -611,7 +611,7 @@
611
611
  function NgxsOnInit() { }
612
612
  if (false) {
613
613
  /**
614
- * @param {?=} ctx
614
+ * @param {?} ctx
615
615
  * @return {?}
616
616
  */
617
617
  NgxsOnInit.prototype.ngxsOnInit = function (ctx) { };
@@ -635,7 +635,7 @@
635
635
  function NgxsAfterBootstrap() { }
636
636
  if (false) {
637
637
  /**
638
- * @param {?=} ctx
638
+ * @param {?} ctx
639
639
  * @return {?}
640
640
  */
641
641
  NgxsAfterBootstrap.prototype.ngxsAfterBootstrap = function (ctx) { };
@@ -4466,7 +4466,9 @@
4466
4466
  */
4467
4467
  function (target, key) {
4468
4468
  var _a;
4469
- console.warn("\n The @Select decorator has been deprecated due to the following reasons:\n 1) Lack of type-safety (compare to 'store.select()')\n 2) Not compatible with server-side rendering because it uses a global 'Store' instance, which might change between renders\n 3) Not compatible with module federation\n Consider replacing it the with store.select.\n ");
4469
+ if (typeof ngDevMode === 'undefined' || ngDevMode) {
4470
+ warnSelectDeprecation();
4471
+ }
4470
4472
  /** @type {?} */
4471
4473
  var name = key.toString();
4472
4474
  /** @type {?} */
@@ -4492,6 +4494,18 @@
4492
4494
  _a));
4493
4495
  });
4494
4496
  }
4497
+ /** @type {?} */
4498
+ var selectDeprecatedHasBeenWarned = false;
4499
+ /**
4500
+ * @return {?}
4501
+ */
4502
+ function warnSelectDeprecation() {
4503
+ if (selectDeprecatedHasBeenWarned) {
4504
+ return;
4505
+ }
4506
+ selectDeprecatedHasBeenWarned = true;
4507
+ console.warn("\n The @Select decorator is deprecated due to the following reasons:\n 1) lack of type-safety (compared to 'store.select()')\n 2) not compatible with server-side rendering because it uses a global 'Store' instance, which might change between renders\n 3) not compatible with module federation\n Consider replacing it the with store.select.\n If you're using VSCode you can replace @Select usages with the following RegExp.\n Search: @Select((.*))\n(.*): Observable<(.*)>;$\n Replace: $2 = this.store.select<$3>($1);\n ");
4508
+ }
4495
4509
 
4496
4510
  /**
4497
4511
  * @fileoverview added by tsickle