Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
chore: release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Jun 28, 2021
1 parent 9311408 commit d252055
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,41 @@
## [2.0.0](https://github.com/nartc/ngrx-slice/compare/1.1.0...2.0.0) (2021-06-28)


### ⚠ BREAKING CHANGES

* `createSlice` now returns a more opinionated object based on the `name` of the Slice.

```ts
// before
export const {actions, selectors, name, reducer} = createSlice({name: 'counter'})

// after
export const {CounterActions, CounterSelectors, CounterFeature} = createSlice({name: 'counter'})
```

`name` of `SliceOptions` is now utilized to make the return type of `createSlice` to have better namespacing.
This has the downside of the `name` has to be `camelCase`.

* `typedNoopReducer` has been removed. Use `noopReducer` instead

```ts
// before
typedNoopReducer<CounterState, {multiplier: number}>();

// after
noopReducer<CounterState, {multiplier: number}>();
```

### Features

* clean up API ([95312f6](https://github.com/nartc/ngrx-slice/commit/95312f606628080cd809752c63f3929af9d84db7))


### Documentations

* add netlify status badge ([6749bca](https://github.com/nartc/ngrx-slice/commit/6749bcaed3baa089b62620ffa9799651ed6325ff))
* update docs to reflect updated API ([9311408](https://github.com/nartc/ngrx-slice/commit/931140875ed2bade633b2bfa7116277193b4b6cf))

## [1.1.0](https://github.com/nartc/ngrx-slice/compare/1.0.1...1.1.0) (2021-06-11)


Expand Down
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": "ngrx-slice",
"version": "1.1.0",
"version": "2.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
Expand Down
2 changes: 1 addition & 1 deletion projects/ngrx-slice/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngrx-slice",
"version": "1.1.0",
"version": "2.0.0",
"license": "MIT",
"description": "createSlice plugin for NgRX",
"keywords": [
Expand Down

0 comments on commit d252055

Please sign in to comment.