@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.
- package/bundles/ngxs-store.umd.js +15 -1
- package/bundles/ngxs-store.umd.js.map +1 -1
- package/bundles/ngxs-store.umd.min.js +1 -1
- package/bundles/ngxs-store.umd.min.js.map +1 -1
- package/esm2015/src/decorators/select/select.js +25 -8
- package/esm5/src/decorators/select/select.js +16 -2
- package/fesm2015/ngxs-store.js +24 -7
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +15 -1
- package/fesm5/ngxs-store.js.map +1 -1
- package/package.json +1 -1
|
@@ -4466,7 +4466,9 @@
|
|
|
4466
4466
|
*/
|
|
4467
4467
|
function (target, key) {
|
|
4468
4468
|
var _a;
|
|
4469
|
-
|
|
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
|