@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.
- package/bundles/ngxs-store.umd.js +17 -3
- 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/esm2015/src/symbols.js +3 -3
- package/esm5/src/decorators/select/select.js +16 -2
- package/esm5/src/symbols.js +3 -3
- package/fesm2015/ngxs-store.js +26 -9
- package/fesm2015/ngxs-store.js.map +1 -1
- package/fesm5/ngxs-store.js +17 -3
- package/fesm5/ngxs-store.js.map +1 -1
- package/package.json +1 -1
- package/src/symbols.d.ts +2 -2
package/fesm5/ngxs-store.js
CHANGED
|
@@ -393,7 +393,7 @@ if (false) {
|
|
|
393
393
|
function NgxsOnInit() { }
|
|
394
394
|
if (false) {
|
|
395
395
|
/**
|
|
396
|
-
* @param {
|
|
396
|
+
* @param {?} ctx
|
|
397
397
|
* @return {?}
|
|
398
398
|
*/
|
|
399
399
|
NgxsOnInit.prototype.ngxsOnInit = function (ctx) { };
|
|
@@ -417,7 +417,7 @@ if (false) {
|
|
|
417
417
|
function NgxsAfterBootstrap() { }
|
|
418
418
|
if (false) {
|
|
419
419
|
/**
|
|
420
|
-
* @param {
|
|
420
|
+
* @param {?} ctx
|
|
421
421
|
* @return {?}
|
|
422
422
|
*/
|
|
423
423
|
NgxsAfterBootstrap.prototype.ngxsAfterBootstrap = function (ctx) { };
|
|
@@ -4248,7 +4248,9 @@ function Select(rawSelector) {
|
|
|
4248
4248
|
*/
|
|
4249
4249
|
function (target, key) {
|
|
4250
4250
|
var _a;
|
|
4251
|
-
|
|
4251
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
4252
|
+
warnSelectDeprecation();
|
|
4253
|
+
}
|
|
4252
4254
|
/** @type {?} */
|
|
4253
4255
|
var name = key.toString();
|
|
4254
4256
|
/** @type {?} */
|
|
@@ -4274,6 +4276,18 @@ function Select(rawSelector) {
|
|
|
4274
4276
|
_a));
|
|
4275
4277
|
});
|
|
4276
4278
|
}
|
|
4279
|
+
/** @type {?} */
|
|
4280
|
+
var selectDeprecatedHasBeenWarned = false;
|
|
4281
|
+
/**
|
|
4282
|
+
* @return {?}
|
|
4283
|
+
*/
|
|
4284
|
+
function warnSelectDeprecation() {
|
|
4285
|
+
if (selectDeprecatedHasBeenWarned) {
|
|
4286
|
+
return;
|
|
4287
|
+
}
|
|
4288
|
+
selectDeprecatedHasBeenWarned = true;
|
|
4289
|
+
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 ");
|
|
4290
|
+
}
|
|
4277
4291
|
|
|
4278
4292
|
/**
|
|
4279
4293
|
* @fileoverview added by tsickle
|