This repository was archived by the owner on May 24, 2022. It is now read-only.
File tree 5 files changed +1249
-1238
lines changed
5 files changed +1249
-1238
lines changed Original file line number Diff line number Diff line change
1
+ # Deprecating registry.yarnpkg.com
2
+ # Issue: https://github.com/yarnpkg/yarn/issues/5891
3
+ --registry "https://registry.npmjs.org/"
4
+ --scripts-prepend-node-path true
5
+ --ignore-engines true
6
+
Original file line number Diff line number Diff line change 1
1
# 2.0.0 2019-12-11
2
2
3
3
- Feature: Support TypeScript 3.7
4
+ - Feature: Support NGXS 3.6
4
5
5
6
### BREAKING CHANGES
6
7
7
- - Support only NGXS 3.6+
8
+ - Compatible only with NGXS 3.6+
8
9
- Now ` patchState, setState ` return ` void `
9
10
- No longer support options in ` NgxsDataPluginModule.forRoot() `
11
+ - No longer support ` @query ` decorator
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ const COUNT_TOKEN = new StateToken<CountModel>('count');
74
74
})
75
75
@Injectable ()
76
76
export class CountState extends NgxsDataRepository <CountModel > {
77
- @query < CountModel , number > ((state ) => state .val )
77
+ @Select ((state ) => state .val )
78
78
public values$: Observable <number >;
79
79
80
80
@action ()
@@ -150,6 +150,5 @@ Benefits:
150
150
### TODO
151
151
152
152
- [x] NgxsDataRepository<T >
153
- - [x] Query decorator
154
153
- [ ] NgxsEntityRepository<T >
155
154
- [ ] State persistence (Local, Cookie, IndexDB)
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ import { Immutable } from '../../interfaces/external.interface';
5
5
import { NgxsDataRepository } from '../../impl/ngxs-data.repository' ;
6
6
import { Any } from '../../interfaces/internal.interface' ;
7
7
8
+ /**
9
+ * deprecated since 2.0, use @Selector decorator from '@ngxs/store'
10
+ * @param selector
11
+ */
8
12
export function query < T , R = T > ( selector : ( val : Immutable < T > ) => Immutable < R > ) {
9
13
return < U extends NgxsDataRepository < Any > & Record < K , Observable < R > > , K extends string > (
10
14
target : U ,
You can’t perform that action at this time.
0 commit comments