Skip to content

Commit

Permalink
chore: release v0.1.1 (#275)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
LayZeeDK authored Oct 20, 2022
1 parent 5366227 commit 5e86578
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
8 changes: 6 additions & 2 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ runs:
id: yarn-cache-dir-path
shell: bash
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Get Node.js version
id: node-version
shell: bash
run: echo "major=$(node -v | sed 's/v\([0-9]*\).*/\1/')" >> $GITHUB_OUTPUT
- name: Cache Yarn cache directory
uses: actions/cache@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-node-${{ steps.node-version.outputs.major }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-node-${{ steps.node-version.outputs.major }}-yarn-
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:

- name: Build
run: yarn build
- name: Bundle readme
run: cp README.md dist/packages/router-component-store/

- name: '[Merge] Upload package bundle'
if: ${{ env.is-merge-to-main == 'true' }}
Expand Down
18 changes: 9 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
# Router Component Store changelog

## 0.1.0 (2022-10-20)
## 0.1.1 (2022-10-21)

## Features
### Features

- Add `RouterStore`
- Remove `LocalRouterStore`
- Add `provideLocalRouterStore`
- Remove `GlobalRouterStore`
- Add `provideGlobalRouterStore`

## Bug fixes
### Bug fixes

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

## **BREAKING CHANGES**
### **BREAKING CHANGES**

### Require RxJS 7.2
#### Require RxJS 7.2

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

### LocalRouterStore is removed
#### LocalRouterStore is removed

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

#### Migration
##### Migration

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

Expand Down Expand Up @@ -67,11 +67,11 @@ export class HeroDetailComponent {
}
```

### GlobalRouterStore is removed
#### GlobalRouterStore is removed

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

#### Migration
##### Migration

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

Expand Down
8 changes: 3 additions & 5 deletions packages/router-component-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngworker/router-component-store",
"version": "0.1.0",
"version": "0.1.1",
"description": "Angular Router-connecting NgRx component stores.",
"license": "MIT",
"peerDependencies": {
Expand All @@ -17,8 +17,7 @@
"router",
"component-store",
"ngworker",
"angular",
"angular2"
"angular"
],
"author": {
"name": "Lars Gyrup Brink Nielsen",
Expand All @@ -28,8 +27,7 @@
"contributors": [],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/",
"tag": "unknown"
"registry": "https://registry.npmjs.org/"
},
"bugs": {
"url": "https://github.com/ngworker/router-component-store/issue"
Expand Down

0 comments on commit 5e86578

Please sign in to comment.