Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add deprecation notice for getServerState() in WithReact type #2266

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

charkour
Copy link
Collaborator

Related Issues or Discussions

Related: #1174 (reply in thread)

Summary

api.getServerState is unused and undocumented. Let's deprecate it for removal in v5 unless we want to provide this as an escape hatch for when server and client state need to differ, if that's the case, then I'll close this and add documentation. @dai-shi, @dbritto-dev, @sewera, thoughts on documentation or deprecation?

Check List

  • yarn run prettier for formatting code and docs

Copy link

vercel bot commented Dec 21, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 21, 2023 2:18am

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit cd8bf45:

Sandbox Source
React Configuration
React TypeScript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration
Next.js Configuration
@pavlobu/zustand demo Configuration

@dbritto-dev
Copy link
Collaborator

@charkour let's deprecate it for now but we shall remove it in the future

@dai-shi
Copy link
Member

dai-shi commented Dec 21, 2023

Sorry for taking time, but I haven't fully followed the discussion yet, and I'm not convinced with the removal. I prefer to mark it "experimental".

@dbritto-dev
Copy link
Collaborator

@dai-shi in that we shall call it unstable_getServerState() just to mark it as experimental, any thoughts?

@dai-shi
Copy link
Member

dai-shi commented Dec 21, 2023

We could do that, but unless it's too confusing, I'd avoid adding unstable_ prefix from now. Isn't it enough to add JSDoc comment in the code and maybe add a doc about it explaining it's an experimental feature?

@dbritto-dev
Copy link
Collaborator

dbritto-dev commented Dec 21, 2023

@dai-shi I would say unstable means experimental imho but up to you

@dai-shi
Copy link
Member

dai-shi commented Dec 21, 2023

Yeah, I'm fine with unstable or experimental. My request is not to change the code.

@dai-shi dai-shi mentioned this pull request Dec 29, 2023
1 task
@dai-shi
Copy link
Member

dai-shi commented Dec 30, 2023

We have some progress in #1174. @TkDodo does a very nice job in #2277.
If #2277 goes well, I change my mind from my previous comments in this PR, and we deprecate getServerState in v4 and remove it in v5.

@dbritto-dev
Copy link
Collaborator

We have some progress in #1174. @TkDodo does a very nice job in #2277.

If #2277 goes well, I change my previous comments in this PR, and we deprecate getServerState in v4 and remove it in v5.

Thanks @TkDodo, nice catch on identity fn

@charkour
Copy link
Collaborator Author

Thanks! I'll leave this open until #2277 is resolved.

@charkour charkour marked this pull request as draft December 30, 2023 15:37
@dai-shi dai-shi mentioned this pull request Jan 8, 2024
Merged
16 tasks
@dai-shi dai-shi added this to the v4.5.0 milestone Jan 20, 2024
@dai-shi dai-shi marked this pull request as ready for review January 20, 2024 00:08
@dai-shi
Copy link
Member

dai-shi commented Jan 20, 2024

I don't have a permission to push commits.
@charkour Can you merge main?

Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's safe to merge.

@dai-shi dai-shi merged commit 43a2b11 into pmndrs:main Jan 20, 2024
37 checks passed
@charkour
Copy link
Collaborator Author

Sorry I missed your comment. Thanks for merging.

Anything else I can follow up on? Thank you.

kodiakhq bot referenced this pull request in mheob/ef-calc Feb 16, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.10.5` -> `20.11.17`](https://renovatebot.com/diffs/npm/@types%2fnode/20.10.5/20.11.17) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.11.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.11.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.10.5/20.11.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.10.5/20.11.17?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react)) | [`18.2.45` -> `18.2.55`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.45/18.2.55) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.2.45/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.2.45/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom) ([source](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom)) | [`18.2.18` -> `18.2.19`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.2.18/18.2.19) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact-dom/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact-dom/18.2.18/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact-dom/18.2.18/18.2.19?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [@vercel/analytics](https://github.com/vercel/analytics) ([source](https://github.com/vercel/analytics/tree/HEAD/packages/web)) | [`1.1.1` -> `1.1.3`](https://renovatebot.com/diffs/npm/@vercel%2fanalytics/1.1.1/1.1.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@vercel%2fanalytics/1.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vercel%2fanalytics/1.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vercel%2fanalytics/1.1.1/1.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vercel%2fanalytics/1.1.1/1.1.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [prettier](https://prettier.io) ([source](https://github.com/prettier/prettier)) | [`3.1.1` -> `3.2.5`](https://renovatebot.com/diffs/npm/prettier/3.1.1/3.2.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prettier/3.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prettier/3.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prettier/3.1.1/3.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prettier/3.1.1/3.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [vite](https://vitejs.dev) ([source](https://github.com/vitejs/vite/tree/HEAD/packages/vite)) | [`5.0.12` -> `5.1.1`](https://renovatebot.com/diffs/npm/vite/5.0.12/5.1.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/vite/5.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/vite/5.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/vite/5.0.12/5.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/vite/5.0.12/5.1.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) |
| [zustand](https://github.com/pmndrs/zustand) | [`4.4.7` -> `4.5.0`](https://renovatebot.com/diffs/npm/zustand/4.4.7/4.5.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zustand/4.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zustand/4.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zustand/4.4.7/4.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zustand/4.4.7/4.5.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>vercel/analytics (@&#8203;vercel/analytics)</summary>

### [`v1.1.3`](https://github.com/vercel/analytics/releases/tag/1.1.3)

[Compare Source](https://github.com/vercel/analytics/compare/1.1.2...1.1.3)

#### What's Changed

-   Server events can now be sent when deployment protection is enabled by [@&#8203;tobiaslins](https://github.com/tobiaslins) in [https://github.com/vercel/analytics/pull/129](https://github.com/vercel/analytics/pull/129)

**Full Changelog**: vercel/analytics@1.1.2...1.1.3

### [`v1.1.2`](https://github.com/vercel/analytics/releases/tag/1.1.2)

[Compare Source](https://github.com/vercel/analytics/compare/1.1.1...1.1.2)

#### What's Changed

-   Fix server side tracking for Remix actions by [@&#8203;tobiaslins](https://github.com/tobiaslins) in [https://github.com/vercel/analytics/pull/124](https://github.com/vercel/analytics/pull/124)

**Full Changelog**: vercel/analytics@1.1.1...1.1.2

</details>

<details>
<summary>prettier/prettier (prettier)</summary>

### [`v3.2.5`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#325)

[Compare Source](https://github.com/prettier/prettier/compare/3.2.4...3.2.5)

[diff](https://github.com/prettier/prettier/compare/3.2.4...3.2.5)

##### Support Angular inline styles as single template literal ([#&#8203;15968](https://github.com/prettier/prettier/pull/15968) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki))

[Angular v17](https://blog.angular.io/introducing-angular-v17-4d7033312e4b) supports single string inline styles.



```ts
// Input
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.4
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `h1 { color: blue; }`,
})
export class AppComponent {}

// Prettier 3.2.5
@&#8203;Component({
  template: `<div>...</div>`,
  styles: `
    h1 {
      color: blue;
    }
  `,
})
export class AppComponent {}

```

##### Unexpected embedded formatting for Angular template ([#&#8203;15969](https://github.com/prettier/prettier/pull/15969) by [@&#8203;JounQin](https://github.com/JounQin))

Computed template should not be considered as Angular component template



```ts
// Input
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.4
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{ hello }}</h1>`,
})
export class AppComponent {}

// Prettier 3.2.5
const template = "foobar";

@&#8203;Component({
  [template]: `<h1>{{       hello }}</h1>`,
})
export class AppComponent {}
```

##### Use `"json"` parser for `tsconfig.json` by default ([#&#8203;16012](https://github.com/prettier/prettier/pull/16012) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki))

In [v2.3.0](https://prettier.io/blog/2024/01/12/3.2.0#new-jsonc-parser-added-15831httpsgithubcomprettierprettierpull15831-by-fiskerhttpsgithubcomfisker), we introduced `"jsonc"` parser which adds trialing comma **by default**.

When adding a new parser we also define how it will be used based on the [`linguist-languages`](https://www.npmjs.com/package/linguist-languages) data.

`tsconfig.json` is a special file used by [TypeScript](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html#using-tsconfigjson-or-jsconfigjson), it uses `.json` file extension, but it actually uses the [JSON with Comments](https://code.visualstudio.com/docs/languages/json#\_json-with-comments) syntax. However, we found that there are many third-party tools not recognize it correctly because of the confusing `.json` file extension.

We decide to treat it as a JSON file for now to avoid the extra configuration step.

To keep using the `"jsonc"` parser for your `tsconfig.json` files, add the following to your `.pretterrc` file

```json
{
  "overrides": [
    {
      "files": ["tsconfig.json", "jsconfig.json"],
      "options": {
        "parser": "jsonc"
      }
    }
  ]
}
```



```
```

### [`v3.2.4`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#324)

[Compare Source](https://github.com/prettier/prettier/compare/3.2.3...3.2.4)

[diff](https://github.com/prettier/prettier/compare/3.2.3...3.2.4)

##### Fix incorrect parser inference ([#&#8203;15947](https://github.com/prettier/prettier/pull/15947) by [@&#8203;fisker](https://github.com/fisker))

Files like `.eslintrc.json` were incorrectly formatted as JSONC files.



```jsx
// Input
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "jsonc" }

// Prettier 3.2.4
prettier --file-info .eslintrc.json
{ "ignored": false, "inferredParser": "json" }
```

### [`v3.2.3`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#323)

[Compare Source](https://github.com/prettier/prettier/compare/3.2.2...3.2.3)

[diff](https://github.com/prettier/prettier/compare/3.2.2...3.2.3)

##### Throw errors for invalid code ([#&#8203;15881](https://github.com/prettier/prettier/pull/15881) by [@&#8203;fisker](https://github.com/fisker), [@&#8203;Josh-Cena](https://github.com/Josh-Cena), [@&#8203;auvred](https://github.com/auvred))



```ts
// Input
1++;

// Prettier 3.2.2
1++;

// Prettier 3.2.3
SyntaxError: Invalid left-hand side expression in unary operation (1:1)
> 1 | 1++;
    | ^
```



```ts
// Input
try {} catch (error = 1){}

// Prettier 3.2.2
try {
} catch (error) {}

// Prettier 3.2.3
SyntaxError: Catch clause variable cannot have an initializer. (1:23)
> 1 | try {} catch (error = 1){}
    |                       ^
```

##### Fix parser inference ([#&#8203;15927](https://github.com/prettier/prettier/pull/15927) by [@&#8203;fisker](https://github.com/fisker))



```console
// Prettier 3.2.2
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "json" }

// Prettier 3.2.3
prettier --file-info tsconfig.json
{ "ignored": false, "inferredParser": "jsonc" }
```

### [`v3.2.2`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#322)

[Compare Source](https://github.com/prettier/prettier/compare/3.2.1...3.2.2)

[diff](https://github.com/prettier/prettier/compare/3.2.1...3.2.2)

##### Fix crash when parsing template literal CSS in a JSX style tag using a spread attribute ([#&#8203;15896](https://github.com/prettier/prettier/pull/15896) by [@&#8203;eelco](https://github.com/eelco))

For example this code would crash before:



```jsx
<style {...spread}>{`.{}`}</style>
```

##### Fix formatting error on optional call expression and member chain ([#&#8203;15920](https://github.com/prettier/prettier/pull/15920) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki))



```jsx
// Input
a(() => {}, c?.d());

// Prettier 3.2.1
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.2
a(() => {}, c?.d());
```

### [`v3.2.1`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#321)

[Compare Source](https://github.com/prettier/prettier/compare/3.2.0...3.2.1)

[diff](https://github.com/prettier/prettier/compare/3.2.0...3.2.1)

##### Fix formatting error on member chain ([#&#8203;15915](https://github.com/prettier/prettier/pull/15915) by [@&#8203;sosukesuzuki](https://github.com/sosukesuzuki))



```jsx
// Input
test().test2().test2(thing?.something);

// Prettier 3.2.0
TypeError: Cannot read properties of undefined (reading 'type')

// Prettier 3.2.1
test().test2().test2(thing?.something);

```

### [`v3.2.0`](https://github.com/prettier/prettier/blob/HEAD/CHANGELOG.md#320)

[Compare Source](https://github.com/prettier/prettier/compare/3.1.1...3.2.0)

[diff](https://github.com/prettier/prettier/compare/3.1.1...3.2.0)

🔗 [Release Notes](https://prettier.io/blog/2024/01/13/3.2.0.html)

</details>

<details>
<summary>vitejs/vite (vite)</summary>

### [`v5.1.1`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small511-2024-02-09-small)

-   fix: empty CSS file was output when only .css?url is used ([#&#8203;15846](https://github.com/vitejs/vite/issues/15846)) ([b2873ac](https://github.com/vitejs/vite/commit/b2873ac)), closes [#&#8203;15846](https://github.com/vitejs/vite/issues/15846)
-   fix: skip not only .js but also .mjs manifest entries ([#&#8203;15841](https://github.com/vitejs/vite/issues/15841)) ([3d860e7](https://github.com/vitejs/vite/commit/3d860e7)), closes [#&#8203;15841](https://github.com/vitejs/vite/issues/15841)
-   chore: post 5.1 release edits ([#&#8203;15840](https://github.com/vitejs/vite/issues/15840)) ([9da6502](https://github.com/vitejs/vite/commit/9da6502)), closes [#&#8203;15840](https://github.com/vitejs/vite/issues/15840)

### [`v5.1.0`](https://github.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#510-2024-02-08)

-   chore: revert [#&#8203;15746](https://github.com/vitejs/vite/issues/15746) ([#&#8203;15839](https://github.com/vitejs/vite/issues/15839)) ([ed875f8](https://github.com/vitejs/vite/commit/ed875f8)), closes [#&#8203;15746](https://github.com/vitejs/vite/issues/15746) [#&#8203;15839](https://github.com/vitejs/vite/issues/15839)
-   fix: pass `customLogger` to `loadConfigFromFile` (fix [#&#8203;15824](https://github.com/vitejs/vite/issues/15824)) ([#&#8203;15831](https://github.com/vitejs/vite/issues/15831)) ([55a3427](https://github.com/vitejs/vite/commit/55a3427)), closes [#&#8203;15824](https://github.com/vitejs/vite/issues/15824) [#&#8203;15831](https://github.com/vitejs/vite/issues/15831)
-   fix(deps): update all non-major dependencies ([#&#8203;15803](https://github.com/vitejs/vite/issues/15803)) ([e0a6ef2](https://github.com/vitejs/vite/commit/e0a6ef2)), closes [#&#8203;15803](https://github.com/vitejs/vite/issues/15803)
-   refactor: remove `vite build --force` ([#&#8203;15837](https://github.com/vitejs/vite/issues/15837)) ([f1a4242](https://github.com/vitejs/vite/commit/f1a4242)), closes [#&#8203;15837](https://github.com/vitejs/vite/issues/15837)

</details>

<details>
<summary>pmndrs/zustand (zustand)</summary>

### [`v4.5.0`](https://github.com/pmndrs/zustand/releases/tag/v4.5.0)

[Compare Source](https://github.com/pmndrs/zustand/compare/v4.4.7...v4.5.0)

This version adds a new capability for SSR/Hydration.

#### What's Changed

-   feat: getInitialState by [@&#8203;TkDodo](https://github.com/TkDodo) in [https://github.com/pmndrs/zustand/pull/2277](https://github.com/pmndrs/zustand/pull/2277)
-   fix: Add deprecation notice for getServerState() in WithReact type by [@&#8203;charkour](https://github.com/charkour) in [https://github.com/pmndrs/zustand/pull/2266](https://github.com/pmndrs/zustand/pull/2266)

#### New Contributors

-   [@&#8203;Jontii](https://github.com/Jontii) made their first contribution in [https://github.com/pmndrs/zustand/pull/2228](https://github.com/pmndrs/zustand/pull/2228)
-   [@&#8203;wherehows](https://github.com/wherehows) made their first contribution in [https://github.com/pmndrs/zustand/pull/2239](https://github.com/pmndrs/zustand/pull/2239)
-   [@&#8203;ahulterstrom](https://github.com/ahulterstrom) made their first contribution in [https://github.com/pmndrs/zustand/pull/2252](https://github.com/pmndrs/zustand/pull/2252)
-   [@&#8203;JaeBrian](https://github.com/JaeBrian) made their first contribution in [https://github.com/pmndrs/zustand/pull/2267](https://github.com/pmndrs/zustand/pull/2267)
-   [@&#8203;CodyCodes95](https://github.com/CodyCodes95) made their first contribution in [https://github.com/pmndrs/zustand/pull/2218](https://github.com/pmndrs/zustand/pull/2218)

**Full Changelog**: pmndrs/zustand@v4.4.7...v4.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone Europe/Berlin, 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.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/mheob/ef-calc).
renovate bot referenced this pull request in ettorepuccetti/terrarossa Mar 29, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zustand](https://github.com/pmndrs/zustand) | [`4.4.7` ->
`4.5.2`](https://renovatebot.com/diffs/npm/zustand/4.4.7/4.5.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zustand/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zustand/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zustand/4.4.7/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zustand/4.4.7/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pmndrs/zustand (zustand)</summary>

### [`v4.5.2`](https://github.com/pmndrs/zustand/releases/tag/v4.5.2)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.5.1...v4.5.2)

It should improve the compatibility with old browsers.

#### What's Changed

- refactor(shallow): Use for..of instead of C-style for by
[@&#8203;onlined](https://github.com/onlined) in
[https://github.com/pmndrs/zustand/pull/2374](https://github.com/pmndrs/zustand/pull/2374)
- fix: return type of persist migrate function changed to PersistedState
by [@&#8203;bobdepreziz](https://github.com/bobdepreziz) in
[https://github.com/pmndrs/zustand/pull/2360](https://github.com/pmndrs/zustand/pull/2360)
- build: target es2018 by
[@&#8203;dai-shi](https://github.com/dai-shi) in
[https://github.com/pmndrs/zustand/pull/2361](https://github.com/pmndrs/zustand/pull/2361)

#### New Contributors

- [@&#8203;medyahyejoud](https://github.com/medyahyejoud) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2353](https://github.com/pmndrs/zustand/pull/2353)
- [@&#8203;yankycranky](https://github.com/yankycranky) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2348](https://github.com/pmndrs/zustand/pull/2348)
- [@&#8203;cheeZery](https://github.com/cheeZery) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2364](https://github.com/pmndrs/zustand/pull/2364)
- [@&#8203;Cadienvan](https://github.com/Cadienvan) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2378](https://github.com/pmndrs/zustand/pull/2378)
- [@&#8203;bobdepreziz](https://github.com/bobdepreziz) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2360](https://github.com/pmndrs/zustand/pull/2360)

**Full Changelog**:
pmndrs/zustand@v4.5.1...v4.5.2

### [`v4.5.1`](https://github.com/pmndrs/zustand/releases/tag/v4.5.1)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.5.0...v4.5.1)

People might have misunderstood with `useStore` deprecation message.
Hope this mitigates it.

#### What's Changed

- Relax types for `persist` middleware by
[@&#8203;rafaeelaudibert](https://github.com/rafaeelaudibert) in
[https://github.com/pmndrs/zustand/pull/2332](https://github.com/pmndrs/zustand/pull/2332)
- chore: clarify deprecation message by
[@&#8203;dai-shi](https://github.com/dai-shi) in
[https://github.com/pmndrs/zustand/pull/2337](https://github.com/pmndrs/zustand/pull/2337)

#### New Contributors

- [@&#8203;alexander-densley](https://github.com/alexander-densley)
made their first contribution in
[https://github.com/pmndrs/zustand/pull/2321](https://github.com/pmndrs/zustand/pull/2321)
- [@&#8203;rafaeelaudibert](https://github.com/rafaeelaudibert) made
their first contribution in
[https://github.com/pmndrs/zustand/pull/2332](https://github.com/pmndrs/zustand/pull/2332)

**Full Changelog**:
pmndrs/zustand@v4.5.0...v4.5.1

### [`v4.5.0`](https://github.com/pmndrs/zustand/releases/tag/v4.5.0)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.4.7...v4.5.0)

This version adds a new capability for SSR/Hydration.

#### What's Changed

- feat: getInitialState by [@&#8203;TkDodo](https://github.com/TkDodo)
in
[https://github.com/pmndrs/zustand/pull/2277](https://github.com/pmndrs/zustand/pull/2277)
- fix: Add deprecation notice for getServerState() in WithReact type by
[@&#8203;charkour](https://github.com/charkour) in
[https://github.com/pmndrs/zustand/pull/2266](https://github.com/pmndrs/zustand/pull/2266)

#### New Contributors

- [@&#8203;Jontii](https://github.com/Jontii) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2228](https://github.com/pmndrs/zustand/pull/2228)
- [@&#8203;wherehows](https://github.com/wherehows) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2239](https://github.com/pmndrs/zustand/pull/2239)
- [@&#8203;ahulterstrom](https://github.com/ahulterstrom) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2252](https://github.com/pmndrs/zustand/pull/2252)
- [@&#8203;JaeBrian](https://github.com/JaeBrian) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2267](https://github.com/pmndrs/zustand/pull/2267)
- [@&#8203;CodyCodes95](https://github.com/CodyCodes95) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2218](https://github.com/pmndrs/zustand/pull/2218)

**Full Changelog**:
pmndrs/zustand@v4.4.7...v4.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on Friday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ettorepuccetti/terrarossa).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@charkour charkour deleted the deprecate-get-server-state branch April 6, 2024 16:50
renovate bot referenced this pull request in ettorepuccetti/t3-template Apr 11, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zustand](https://github.com/pmndrs/zustand) | [`4.4.7` ->
`4.5.2`](https://renovatebot.com/diffs/npm/zustand/4.4.7/4.5.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zustand/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zustand/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zustand/4.4.7/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zustand/4.4.7/4.5.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>pmndrs/zustand (zustand)</summary>

### [`v4.5.2`](https://github.com/pmndrs/zustand/releases/tag/v4.5.2)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.5.1...v4.5.2)

It should improve the compatibility with old browsers.

#### What's Changed

- refactor(shallow): Use for..of instead of C-style for by
[@&#8203;onlined](https://github.com/onlined) in
[https://github.com/pmndrs/zustand/pull/2374](https://github.com/pmndrs/zustand/pull/2374)
- fix: return type of persist migrate function changed to PersistedState
by [@&#8203;bobdepreziz](https://github.com/bobdepreziz) in
[https://github.com/pmndrs/zustand/pull/2360](https://github.com/pmndrs/zustand/pull/2360)
- build: target es2018 by
[@&#8203;dai-shi](https://github.com/dai-shi) in
[https://github.com/pmndrs/zustand/pull/2361](https://github.com/pmndrs/zustand/pull/2361)

#### New Contributors

- [@&#8203;medyahyejoud](https://github.com/medyahyejoud) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2353](https://github.com/pmndrs/zustand/pull/2353)
- [@&#8203;yankycranky](https://github.com/yankycranky) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2348](https://github.com/pmndrs/zustand/pull/2348)
- [@&#8203;cheeZery](https://github.com/cheeZery) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2364](https://github.com/pmndrs/zustand/pull/2364)
- [@&#8203;Cadienvan](https://github.com/Cadienvan) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2378](https://github.com/pmndrs/zustand/pull/2378)
- [@&#8203;bobdepreziz](https://github.com/bobdepreziz) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2360](https://github.com/pmndrs/zustand/pull/2360)

**Full Changelog**:
pmndrs/zustand@v4.5.1...v4.5.2

### [`v4.5.1`](https://github.com/pmndrs/zustand/releases/tag/v4.5.1)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.5.0...v4.5.1)

People might have misunderstood with `useStore` deprecation message.
Hope this mitigates it.

#### What's Changed

- Relax types for `persist` middleware by
[@&#8203;rafaeelaudibert](https://github.com/rafaeelaudibert) in
[https://github.com/pmndrs/zustand/pull/2332](https://github.com/pmndrs/zustand/pull/2332)
- chore: clarify deprecation message by
[@&#8203;dai-shi](https://github.com/dai-shi) in
[https://github.com/pmndrs/zustand/pull/2337](https://github.com/pmndrs/zustand/pull/2337)

#### New Contributors

- [@&#8203;alexander-densley](https://github.com/alexander-densley)
made their first contribution in
[https://github.com/pmndrs/zustand/pull/2321](https://github.com/pmndrs/zustand/pull/2321)
- [@&#8203;rafaeelaudibert](https://github.com/rafaeelaudibert) made
their first contribution in
[https://github.com/pmndrs/zustand/pull/2332](https://github.com/pmndrs/zustand/pull/2332)

**Full Changelog**:
pmndrs/zustand@v4.5.0...v4.5.1

### [`v4.5.0`](https://github.com/pmndrs/zustand/releases/tag/v4.5.0)

[Compare
Source](https://github.com/pmndrs/zustand/compare/v4.4.7...v4.5.0)

This version adds a new capability for SSR/Hydration.

#### What's Changed

- feat: getInitialState by [@&#8203;TkDodo](https://github.com/TkDodo)
in
[https://github.com/pmndrs/zustand/pull/2277](https://github.com/pmndrs/zustand/pull/2277)
- fix: Add deprecation notice for getServerState() in WithReact type by
[@&#8203;charkour](https://github.com/charkour) in
[https://github.com/pmndrs/zustand/pull/2266](https://github.com/pmndrs/zustand/pull/2266)

#### New Contributors

- [@&#8203;Jontii](https://github.com/Jontii) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2228](https://github.com/pmndrs/zustand/pull/2228)
- [@&#8203;wherehows](https://github.com/wherehows) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2239](https://github.com/pmndrs/zustand/pull/2239)
- [@&#8203;ahulterstrom](https://github.com/ahulterstrom) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2252](https://github.com/pmndrs/zustand/pull/2252)
- [@&#8203;JaeBrian](https://github.com/JaeBrian) made their first
contribution in
[https://github.com/pmndrs/zustand/pull/2267](https://github.com/pmndrs/zustand/pull/2267)
- [@&#8203;CodyCodes95](https://github.com/CodyCodes95) made their
first contribution in
[https://github.com/pmndrs/zustand/pull/2218](https://github.com/pmndrs/zustand/pull/2218)

**Full Changelog**:
pmndrs/zustand@v4.4.7...v4.5.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 10am on Thursday" (UTC),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **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.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ettorepuccetti/t3-template).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants