Skip to content

Commit

Permalink
chore(release): 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pavadeli committed Jan 25, 2021
1 parent 2e89e76 commit 3328dd7
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 9 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [5.0.0](https://github.com/skunkteam/sherlock/compare/v4.0.0...v5.0.0) (2021-01-25)

### ⚠ BREAKING CHANGES

- **sherlock-rxjs:** This release changes the behavior of `fromObservable` when not connected. From now on, a Derivable created by `fromObservable` will become unresolved when disconnected. In previous versions the Derivable would remember the last received value which can lead to unexpected stale results when reconnecting or even memory leaks. To get the old behavior use `take`: `fromObservable(...).take({ when: d => d.resolved })` to always cache the latest value when disconnecting.

### Features

- **ngx-sherlock:** add value pipe ([4bfc04b](https://github.com/skunkteam/sherlock/commit/4bfc04b09cc199f82863691621f69c130f3407e3))
- **sherlock-utils:** add fromEventPattern ([dc082e2](https://github.com/skunkteam/sherlock/commit/dc082e236072f356adce5da994c72cb5ec342cd3))

### Bug Fixes

- **sherlock-rxjs:** fix possible stale-cache / memory leak in fromObservable ([8093644](https://github.com/skunkteam/sherlock/commit/8093644220e6f7a12e8aff89ab9d4ad5f991a391))
- **sherlock-rxjs:** remove use of @skunkteam/sherlock internals ([#2](https://github.com/skunkteam/sherlock/issues/2)) ([b5c5197](https://github.com/skunkteam/sherlock/commit/b5c5197ccb482047059ddba0aae171971e47781c))

## 4.0.0 (2021-01-21)

Initial migration from @politie/sherlock.
Expand Down
2 changes: 1 addition & 1 deletion libs/ngx-sherlock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skunkteam/ngx-sherlock",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"repository": "github:skunkteam/sherlock",
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion libs/sherlock-rxjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skunkteam/sherlock-rxjs",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"repository": "github:skunkteam/sherlock"
}
2 changes: 1 addition & 1 deletion libs/sherlock-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skunkteam/sherlock-utils",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"repository": "github:skunkteam/sherlock"
}
2 changes: 1 addition & 1 deletion libs/sherlock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skunkteam/sherlock",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"repository": "github:skunkteam/sherlock"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skunkteam/sherlock",
"version": "4.0.0",
"version": "5.0.0",
"license": "MIT",
"repository": "github:skunkteam/sherlock",
"scripts": {
Expand Down
12 changes: 9 additions & 3 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

set -euxo pipefail

npx standard-version
npx standard-version "$@"

read -p "Press enter to continue to build step"

npm run build

# git push --follow-tags origin main
read -p "Press enter to continue to NPM publish"

npm publish dist/libs/sherlock --access public
npm publish dist/libs/sherlock-rxjs --access public
npm publish dist/libs/sherlock-utils --access public
npm publish dist/list/ngx-sherlock --access public
npm publish dist/libs/ngx-sherlock --access public

echo "Run:"
echo "git push --follow-tags origin main"

0 comments on commit 3328dd7

Please sign in to comment.