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

Latest commit

 

History

History
267 lines (155 loc) · 9.4 KB

CHANGELOG.md

File metadata and controls

267 lines (155 loc) · 9.4 KB

6.0.0 (2021-12-19)

⚠ BREAKING CHANGES

  • Angular 13

Features

Bug Fixes

  • adjust slice and entity to ngrx13 (4295601)

Documentations

  • update peer dependencies (9c46e4b)

5.0.0 (2021-10-22)

⚠ BREAKING CHANGES

  • generated actions for AsyncCaseReducer are now correctly generated with the type of cases provided, not all 5
const { actions } = createSlice({
  name: 'foo',
  initialState,
  reducers: {
    foo: {
      success: state => state,
      trigger: noopReducer()
    }
  }
});

// before
assert(Object.keys(actions.foo).length === 5); // Actions for all 5 cases are generated 

// after
assert(Object.keys(actions.foo).length === 2); // Only the "success" and "trigger" cases are generated

Features

  • only generate correct amount of async case actions (c250f2a)

Documentations

  • remove scully plugins folder (de0a678)

4.0.0 (2021-09-27)

Features

  • add noop() to actions for triggering effects (55a1df7)
  • entity: simplify updateOne usage (62e0619)

⚠ BREAKING CHANGES: updateOne now accepts Update<TModel> instead of { update: Update<TModel> }

// 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)

3.1.1 (2021-09-10)

Bug Fixes

3.1.0 (2021-09-02)

Features

  • port strings utils from angular to support classify instead of capitalize (4e1e4cb)

3.0.0 (2021-08-27)

⚠ BREAKING CHANGES

  • entity: Dictionary no longer has undefined defined
// before
state.entities[id]; // returns entity or undefined

// after
state.entities[id]; // returns entity 

You should make sure that it is IMPOSSIBLE to access the entity at some given id if the entity is undefined. Eg: via UI, undefined entity shouldn't be rendered.

  • noopReducer usage has been simplified. The type parameters (ActionProps and SliceState) have been switched
// before
noopReducer<TodoState, { filter: Filter }>();
noopReducer<TodoState>();

// after
noopReducer<{filter: Filter}>();
noopReducer();

Bug Fixes

  • adjust noopReducer implementation (34d65c3)
  • entity: remove undefined from Dictionary type (fa538eb)

2.2.0 (2021-08-26)

Features

  • entity: add createSliceEntityAdapter (4d68582)

2.1.1 (2021-07-19)

Bug Fixes

  • use proper type fo createSliceAction (d8334fd)

Documentations

2.1.0 (2021-06-28)

Features

  • add createNamespacedSlice in addition to createSlice (71ef0f1)

Documentations

2.0.0 (2021-06-28)

⚠ BREAKING CHANGES

  • createSlice now returns a more opinionated object based on the name of the Slice.
// 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
// before
noopReducer<CounterState>();
typedNoopReducer<CounterState, {multiplier: number}>();

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

Features

Documentations

  • add netlify status badge (6749bca)
  • update docs to reflect updated API (9311408)

1.1.0 (2021-06-11)

Features

  • add clear and cancel to AsyncCaseReducers (605b0fe)
  • move immer and ngrx-immer to peerDeps (e21c7d7)

Refactor

  • extract Async Action types to an const array (519c336)

Documentations

  • update docs about clear and cancel async case reducer (0b339b0)
  • use tuiLink for links and adjust Counter Example docs (26e51a6)

1.0.1 (2021-06-06)

Documentations

1.0.0 (2021-06-06)

Features

Bug Fixes

  • bump version (684b01c)
  • change AppState from unknown to any. ngrx uses object as store type (8d79352)
  • change AppState from unknown to any. ngrx uses object as store type (f5bd2ea)
  • change PayloadAction from unknown to any (366c988)
  • change PayloadAction from unknown to any (958691f)
  • fix payloadAction typings (9a46fe3)
  • fix typedNoopReducer type (a234342)
  • fix typings around payload action (a876d32)

Documentations

Refactor

  • remove NonOptional type (9a9b191)