File tree Expand file tree Collapse file tree 4 files changed +20
-16
lines changed
packages/router-component-store Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,14 @@ runs:
11
11
id : yarn-cache-dir-path
12
12
shell : bash
13
13
run : echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
14
+ - name : Get Node.js version
15
+ id : node-version
16
+ shell : bash
17
+ run : echo "major=$(node -v | sed 's/v\([0-9]*\).*/\1/')" >> $GITHUB_OUTPUT
14
18
- name : Cache Yarn cache directory
15
19
uses : actions/cache@v3
16
20
with :
17
21
path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
18
- key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22
+ key : ${{ runner.os }}-node-${{ steps.node-version.outputs.major }}- yarn-${{ hashFiles('yarn.lock') }}
19
23
restore-keys : |
20
- ${{ runner.os }}-yarn-
24
+ ${{ runner.os }}-node-${{ steps.node-version.outputs.major }}- yarn-
Original file line number Diff line number Diff line change 68
68
69
69
- name : Build
70
70
run : yarn build
71
+ - name : Bundle readme
72
+ run : cp README.md dist/packages/router-component-store/
71
73
72
74
- name : ' [Merge] Upload package bundle'
73
75
if : ${{ env.is-merge-to-main == 'true' }}
Original file line number Diff line number Diff line change 1
1
# Router Component Store changelog
2
2
3
- ## 0.1.0 (2022-10-20 )
3
+ ## 0.1.1 (2022-10-21 )
4
4
5
- ## Features
5
+ ### Features
6
6
7
7
- Add ` RouterStore `
8
8
- Remove ` LocalRouterStore `
9
9
- Add ` provideLocalRouterStore `
10
10
- Remove ` GlobalRouterStore `
11
11
- Add ` provideGlobalRouterStore `
12
12
13
- ## Bug fixes
13
+ ### Bug fixes
14
14
15
15
- Fix [ #272 ] ( https://github.com/ngworker/router-component-store/issues/272 ) : Class constructor ComponentStore cannot be invoked without 'new'
16
16
17
- ## ** BREAKING CHANGES**
17
+ ### ** BREAKING CHANGES**
18
18
19
- ### Require RxJS 7.2
19
+ #### Require RxJS 7.2
20
20
21
21
We now require at least RxJS version 7.2 to import operators from the primary entry point of the ` rxjs ` package.
22
22
23
- ### LocalRouterStore is removed
23
+ #### LocalRouterStore is removed
24
24
25
25
` LocalRouterStore ` is replaced by ` RouterStore ` and ` provideLocalRouterStore ` .
26
26
27
- #### Migration
27
+ ##### Migration
28
28
29
29
Use ` provideLocalRouterStore() ` as component-level provider and inject ` RouterStore ` instead of ` LocalRouterStore ` .
30
30
@@ -67,11 +67,11 @@ export class HeroDetailComponent {
67
67
}
68
68
```
69
69
70
- ### GlobalRouterStore is removed
70
+ #### GlobalRouterStore is removed
71
71
72
72
` GlobalRouterStore ` is replaced by ` RouterStore ` and ` provideGlobalRouterStore ` .
73
73
74
- #### Migration
74
+ ##### Migration
75
75
76
76
Add ` provideGlobalRouterStore() ` to your root environment injector and inject ` RouterStore ` instead of ` GlobalRouterStore ` .
77
77
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ngworker/router-component-store" ,
3
- "version" : " 0.1.0 " ,
3
+ "version" : " 0.1.1 " ,
4
4
"description" : " Angular Router-connecting NgRx component stores." ,
5
5
"license" : " MIT" ,
6
6
"peerDependencies" : {
17
17
" router" ,
18
18
" component-store" ,
19
19
" ngworker" ,
20
- " angular" ,
21
- " angular2"
20
+ " angular"
22
21
],
23
22
"author" : {
24
23
"name" : " Lars Gyrup Brink Nielsen" ,
28
27
"contributors" : [],
29
28
"publishConfig" : {
30
29
"access" : " public" ,
31
- "registry" : " https://registry.npmjs.org/" ,
32
- "tag" : " unknown"
30
+ "registry" : " https://registry.npmjs.org/"
33
31
},
34
32
"bugs" : {
35
33
"url" : " https://github.com/ngworker/router-component-store/issue"
You can’t perform that action at this time.
0 commit comments