@ngxs/store 3.7.4-dev.master-a6cc926 → 3.7.4-dev.master-817c422

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.
@@ -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