From c649d92ddf893d190d3318192793bb94fc270786 Mon Sep 17 00:00:00 2001 From: Chau Tran Date: Sun, 26 Sep 2021 20:40:17 -0500 Subject: [PATCH] chore: release 4.0.0 --- CHANGELOG.md | 29 +++++++++++++++++++++++++ package-lock.json | 2 +- package.json | 2 +- projects/ngrx-slice/entity/package.json | 2 +- projects/ngrx-slice/package.json | 2 +- 5 files changed, 33 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 834d735..2af7ba4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,32 @@ +## [4.0.0](https://github.com/nartc/ngrx-slice/compare/3.1.1...4.0.0) (2021-09-27) + + +### Features + +* add noop() to actions for triggering effects ([55a1df7](https://github.com/nartc/ngrx-slice/commit/55a1df71cd3721099a19628da724cb9679f160ab)) +* **entity:** simplify `updateOne` usage ([62e0619](https://github.com/nartc/ngrx-slice/commit/62e061988cccafcf93c2d8c834001b394d787905)) + +### ⚠ BREAKING CHANGES: `updateOne` now accepts `Update` instead of `{ update: Update }` +```ts +// before +TodoActions.toggleComplete({ + update: { + id: todo.id, + changes: { completed: !todo.completed } + } +}); + +// after +TodoActions.toggleComplete({ + id: todo.id, + changes: { completed: !todo.completed } +}); +``` + +### Bug Fixes + +* **entity:** check if arg is object for payloadAction ([eb8bfbb](https://github.com/nartc/ngrx-slice/commit/eb8bfbb51b6b3c83910edcd1fcfb086cf74eb216)) + ### [3.1.1](https://github.com/nartc/ngrx-slice/compare/3.1.0...3.1.1) (2021-09-10) diff --git a/package-lock.json b/package-lock.json index cd4f57e..70a2140 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ngrx-slice", - "version": "3.1.1", + "version": "4.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index a74bbbc..245cfc0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ngrx-slice", - "version": "3.1.1", + "version": "4.0.0", "scripts": { "ng": "ng", "start": "ng serve", diff --git a/projects/ngrx-slice/entity/package.json b/projects/ngrx-slice/entity/package.json index baa5412..27a0f21 100644 --- a/projects/ngrx-slice/entity/package.json +++ b/projects/ngrx-slice/entity/package.json @@ -1,6 +1,6 @@ { "name": "ngrx-slice/entity", - "version": "3.1.1", + "version": "4.0.0", "license": "MIT", "description": "createSlice Entity plugin for NgRX" } diff --git a/projects/ngrx-slice/package.json b/projects/ngrx-slice/package.json index ca8dc21..b30acd5 100644 --- a/projects/ngrx-slice/package.json +++ b/projects/ngrx-slice/package.json @@ -1,6 +1,6 @@ { "name": "ngrx-slice", - "version": "3.1.1", + "version": "4.0.0", "license": "MIT", "description": "createSlice plugin for NgRX", "keywords": [