stakater / Forecastle

Forecastle is a control panel which dynamically discovers and provides a launchpad to access applications deployed on Kubernetes – [✩Star] if you're using it!
https://stakater.com
Apache License 2.0
588 stars 59 forks source link

fix(deps): update dependency redux-starter-kit to ^0.9.0 #362

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
redux-starter-kit ^0.7.0 -> ^0.9.0 age adoption passing confidence

Release Notes

reduxjs/redux-starter-kit (redux-starter-kit) ### [`v0.9.1`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v0.9.1) [Compare Source](https://togithub.com/reduxjs/redux-starter-kit/compare/v0.9.0...v0.9.1) The switch to TSDX accidentally dropped the re-export of types like `Action` from Redux. #### Changelog - Fix broken re-export of Redux types [`d70dc31`](https://togithub.com/reduxjs/redux-starter-kit/commit/d70dc31) ### [`v0.9.0`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v0.9.0) [Compare Source](https://togithub.com/reduxjs/redux-starter-kit/compare/v0.8.1...v0.9.0) This release contains only build tooling changes and package updates. We've switched our build setup from a homegrown Rollup config to use [TSDX](https://togithub.com/jaredpalmer/tsdx) instead. We're also running CI tests against multiple versions of TypeScript to try to prevent any future type changes that might affect older versions. As part of the TSDX changes, the published package now contains the types in a single combined `index.d.ts` file instead of separate files, which may work better in certain build tooling setups. In the process, we've also updated Immer from 2.1.5 to 4.0.1. This primarily adds auto-freezing of all state objects in development, but shouldn't have any actual changes for your code. See [the Immer release notes](https://togithub.com/immerjs/immer/releases) for more details. Barring any new issues, this will likely be the last point release before 1.0 release candidates in the next couple days. #### Changelog - chore(build): swap in tsdx ([@​RichiCoder1](https://togithub.com/RichiCoder1), [@​phryneas](https://togithub.com/phryneas), [@​markerikson](https://togithub.com/markerikson) - [#​212](https://togithub.com/reduxjs/redux-starter-kit/issues/212)) - Use TypeScript 3.6 in development ([@​nickmccurdy](https://togithub.com/nickmccurdy) - [#​218](https://togithub.com/reduxjs/redux-starter-kit/issues/218)) - Test with multiple TypeScript minor versions in CI ([@​nickmccurdy](https://togithub.com/nickmccurdy) - [#​217](https://togithub.com/reduxjs/redux-starter-kit/issues/217)) ### [`v0.8.1`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v0.8.1) [Compare Source](https://togithub.com/reduxjs/redux-starter-kit/compare/v0.8.0...v0.8.1) This patch release fixes a couple small cross-version TypeScript issues that popped up in 0.8.0. #### Changelog - Fix [#​212](https://togithub.com/reduxjs/redux-starter-kit/issues/212) [#​214](https://togithub.com/reduxjs/redux-starter-kit/issues/214) ([@​phryneas](https://togithub.com/phryneas) - [#​215](https://togithub.com/reduxjs/redux-starter-kit/issues/215)) ### [`v0.8.0`](https://togithub.com/reduxjs/redux-toolkit/releases/tag/v0.8.0) [Compare Source](https://togithub.com/reduxjs/redux-starter-kit/compare/v0.7.0...v0.8.0) This release contains **a couple breaking changes**, including one that will affect almost all existing users. The plan is for these to be the final breaking changes before 1.0 is released, and that 1.0 will hopefully be out within the next couple weeks. #### Breaking Changes ##### `createSlice` Now Requires a `name` Field So far, `createSlice` has accepted an optional field called `slice`, which is used as the prefix for action types generated by that slice: ```js const counterSlice1 = createSlice({ slice: "counter", // or could be left out entirely initialState: 0, reducers: { increment: state => state + 1, } }); ``` **The `slice` field has been changed to `name`, and is now required to be a non-empty string.** ```js const counterSlice1 = createSlice({ name: "counter", // required! initialState: 0, reducers: { increment: state => state + 1, } }); ``` This removes cases where multiple slices could have accidentally generated identical action types by leaving out the slice name while having similar reducer names. The field name change from `slice` to `name` was made to clarify what the field means. **Migration**: change all uses of `slice` to `name`, and add `name` to any `createSlice()` calls that didn't specify it already. ##### `createAction` Defaults to a `void` Payload Type Previously, `createAction("someType")` would default to allowing a payload type of `any` when used with TypeScript. This has been changed to default to `void` instead. This means that you *must* specify the type of the payload, such as `createAction("someType")`. Note that this is not necessary when using `createSlice`, as it already infers the correct payload types based on your reducer functions. **Migration**: ensure that any calls to `createAction()` explicitly specify the payload type as a generic. #### Other Changes ##### `createSlice` Exports the Case Reducer Functions `createSlice` already returned an object containing the generated slice reducer function and the generated action creators. It now also includes all of the provided case reducers in a field called `caseReducers`. ```js const todosSlice = createSlice({ name: "todos", initialState: [], reducers: { addTodo(state, action) { const {id, text} = action.payload; state.push({id, text}); }, toggleTodo(state, action) { const todo = state[action.payload.index]; todo.completed = !todo.completed } }, extraReducers: { ["app/logout"](state, action) { return [] } } }); console.log(todosSlice) /* { name: "todos", reducer: Function, actions: { addTodo: Function, toggleTodo: Function, }, caseReducers: { addTodo: Function, toggleTodo: Function } } */ ``` #### Notes Special thanks to [@​phryneas](https://togithub.com/phryneas) for coaching me through finally starting to get a vague grasp on some very complicated TS types :) #### Changelog - Create slice changes ([@​phryneas](https://togithub.com/phryneas) - [#​197](https://togithub.com/reduxjs/redux-starter-kit/issues/197)) - Include case reducers in createSlice result ([@​markerikson](https://togithub.com/markerikson) - [#​209](https://togithub.com/reduxjs/redux-starter-kit/issues/209)) - Use `void` instead of `any` for undefined payloads ([@​Krisztiaan](https://togithub.com/Krisztiaan) , [@​markerikson](https://togithub.com/markerikson) - [#​174](https://togithub.com/reduxjs/redux-starter-kit/issues/174)) - Improve reducer warning ([@​markerikson](https://togithub.com/markerikson) - [#​207](https://togithub.com/reduxjs/redux-starter-kit/issues/207)) - change inference behaviour in old TS versions ([@​phryneas](https://togithub.com/phryneas) - [#​166](https://togithub.com/reduxjs/redux-starter-kit/issues/166))

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

github-actions[bot] commented 1 year ago

@renovate[bot] Image is available for testing. docker pull stakater/forecastle:SNAPSHOT-PR-362-05748a6a