Skip to content

Commit 5e86578

Browse files
authored
chore: release v0.1.1 (#275)
I accidentally unpublished 0.1.0 from npm because it didn't contain a readme file. # Build - Bump minor prerelease version - Correct changelog - Bundle readme file - Remove `unknown` npm tag # CI - Add major Node.js version to cache key
1 parent 5366227 commit 5e86578

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.github/actions/setup-node/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ runs:
1111
id: yarn-cache-dir-path
1212
shell: bash
1313
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
1418
- name: Cache Yarn cache directory
1519
uses: actions/cache@v3
1620
with:
1721
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') }}
1923
restore-keys: |
20-
${{ runner.os }}-yarn-
24+
${{ runner.os }}-node-${{ steps.node-version.outputs.major }}-yarn-

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ jobs:
6868

6969
- name: Build
7070
run: yarn build
71+
- name: Bundle readme
72+
run: cp README.md dist/packages/router-component-store/
7173

7274
- name: '[Merge] Upload package bundle'
7375
if: ${{ env.is-merge-to-main == 'true' }}

CHANGELOG.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
# Router Component Store changelog
22

3-
## 0.1.0 (2022-10-20)
3+
## 0.1.1 (2022-10-21)
44

5-
## Features
5+
### Features
66

77
- Add `RouterStore`
88
- Remove `LocalRouterStore`
99
- Add `provideLocalRouterStore`
1010
- Remove `GlobalRouterStore`
1111
- Add `provideGlobalRouterStore`
1212

13-
## Bug fixes
13+
### Bug fixes
1414

1515
- Fix [#272](https://github.com/ngworker/router-component-store/issues/272): Class constructor ComponentStore cannot be invoked without 'new'
1616

17-
## **BREAKING CHANGES**
17+
### **BREAKING CHANGES**
1818

19-
### Require RxJS 7.2
19+
#### Require RxJS 7.2
2020

2121
We now require at least RxJS version 7.2 to import operators from the primary entry point of the `rxjs` package.
2222

23-
### LocalRouterStore is removed
23+
#### LocalRouterStore is removed
2424

2525
`LocalRouterStore` is replaced by `RouterStore` and `provideLocalRouterStore`.
2626

27-
#### Migration
27+
##### Migration
2828

2929
Use `provideLocalRouterStore()` as component-level provider and inject `RouterStore` instead of `LocalRouterStore`.
3030

@@ -67,11 +67,11 @@ export class HeroDetailComponent {
6767
}
6868
```
6969

70-
### GlobalRouterStore is removed
70+
#### GlobalRouterStore is removed
7171

7272
`GlobalRouterStore` is replaced by `RouterStore` and `provideGlobalRouterStore`.
7373

74-
#### Migration
74+
##### Migration
7575

7676
Add `provideGlobalRouterStore()` to your root environment injector and inject `RouterStore` instead of `GlobalRouterStore`.
7777

packages/router-component-store/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngworker/router-component-store",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Angular Router-connecting NgRx component stores.",
55
"license": "MIT",
66
"peerDependencies": {
@@ -17,8 +17,7 @@
1717
"router",
1818
"component-store",
1919
"ngworker",
20-
"angular",
21-
"angular2"
20+
"angular"
2221
],
2322
"author": {
2423
"name": "Lars Gyrup Brink Nielsen",
@@ -28,8 +27,7 @@
2827
"contributors": [],
2928
"publishConfig": {
3029
"access": "public",
31-
"registry": "https://registry.npmjs.org/",
32-
"tag": "unknown"
30+
"registry": "https://registry.npmjs.org/"
3331
},
3432
"bugs": {
3533
"url": "https://github.com/ngworker/router-component-store/issue"

0 commit comments

Comments
 (0)