Skip to content

chore(deps): redis 6.4 and react-i18next 18 - #381

Merged
Aizen93 merged 2 commits into
developfrom
chore/redis-6-and-react-i18next-18
Nov 28, 2026
Merged

Aizen93 merged 2 commits into
developfrom
chore/redis-6-and-react-i18next-18

Conversation

@Aizen93

@Aizen93 Aizen93 commented Nov 28, 2026

Copy link
Copy Markdown
Owner

What this brings

Two dependency majors, one commit each. They take the place of #376 and #375.

redis 5.11 to 6.4 (server)

Major 6 of the client changes three defaults. The server now states the three it ran with before, so what it does while Redis is away does not change:

  • A command issued while the connection is down waits for the reconnect. The new default rejects it after 5 s, unsent. The few calls that must not wait bound themselves (the statistics cache, the visibility resync's publish); the rest wait, as they did. Waiting is kept on purpose: this is a client upgrade, not a change of what the server does during an outage.
  • A connection's hand-shake sends no maintenance-notification command. The new default sends one and resolves the host's address for it.
  • The first keep-alive probe of an idle connection goes out after 5 s. The new default is 30 s.

The wire protocol is the client's new default, RESP3, which a Redis server speaks from version 6 (Redis 7 is what the project documents). The replies the server reads keep their shape under it: its Lua scripts return numbers, strings, arrays and nil, never a boolean, and the client maps a set to an array and a hash to an object in both protocols.

redisClientOptions() builds the options of every client; the pub/sub duplicates inherit them.

react-i18next 16.6 to 18.0 (desktop)

No call site changes: i18next 27 and React 19 already meet the new major's minimums.

Three sentences place a name a person chose inside a translation through <Trans values>: the role delete question, the space's "type to confirm" and the e-mail verification notice. Under 16.6.6 a name shaped like one of the translation's numbered tags lost the tag, a name holding an angle bracket showed an entity in its place, a name holding a placeholder had it filled a second time, and such a sentence did not follow a change of language until its parent rendered again. Under 18 the name is shown as written, and the sentence follows the language by itself.

Key files

  • apps/server/src/utils/redis.ts (redisClientOptions)
  • apps/server/src/__tests__/utils/redisClientOptions.test.ts
  • apps/desktop/src/__tests__/i18n/transValues.test.tsx

Migrations

None.

Tests

  • redisClientOptions.test.ts hands the options to the real client, never connected, and reads what it resolved: no timeout on a command waiting to be sent, no maintenance notifications, the keep-alive delay, and the same on a duplicate. Beside it, what the client resolves for the timeout and the notifications when given no such option, so one of those defaults moving again fails there first.
  • transValues.test.tsx renders the three sentences with the real library and the app's own i18n instance, in the eleven languages, with names holding tags, placeholders, entities, quotes and an ampersand, and reads the DOM. Ten of its 29 cases fail under 16.6.6.
  • pnpm typecheck, pnpm lint and the server, desktop and admin unit suites pass on the branch.

To check by hand

  • Change the app's language once with the role delete question or the space's "type to confirm" on screen: the sentence follows.

Major 6 of the Redis client changes three defaults. The server now states
the three it ran with under major 5, so the upgrade does not change what
it does while Redis is away:

- A command issued while the connection is down waits for the reconnect.
  The new default rejects it after 5 s, unsent. The few calls that must
  not wait bound themselves (the statistics cache, the visibility
  resync's publish); the rest wait, as they did.
- A connection's hand-shake sends no maintenance-notification command.
  The new default sends one, and resolves the host's address for it; the
  server uses neither.
- The first keep-alive probe of an idle connection goes out after 5 s.
  The new default is 30 s.

The wire protocol is the client's new default, RESP3. The replies the
server reads keep their shape under it: its Lua scripts return numbers,
strings, arrays and nil, never a boolean, and the client maps a set to an
array and a hash to an object in both protocols.

One function, redisClientOptions(), builds the options of every client
(the pub/sub duplicates inherit them). A test hands them to the real
client, never connected, and reads what it resolved, beside what it
resolves for the first two when given no such option: the day one of
those defaults moves again, that test fails first.

Node 20 is the client's new minimum; the server already needs more.
The desktop app is the only user. Its i18next (27) and React (19) already
meet the new major's minimums, and no call site changes.

Three sentences place a name a person chose inside a translation through
<Trans values>: a role's (the delete question), a space's (type to
confirm) and an e-mail address (the verification notice). A new test
renders them with the real library and the app's own i18n instance, in
the eleven languages, and reads the DOM: the name is shown as written,
inside the one emphasised element, whatever it holds.

Under 16.6.6 ten of that test's cases fail: a name shaped like one of the
translation's own numbered tags lost the tag, a name holding an angle
bracket showed an entity in its place, a name holding a placeholder had
it filled a second time, and a sentence on screen did not follow a change
of language until its parent rendered again. Under 18 every case holds.
@Aizen93
Aizen93 merged commit 613c262 into develop Nov 28, 2026
9 checks passed
@Aizen93
Aizen93 deleted the chore/redis-6-and-react-i18next-18 branch November 28, 2026 17:50
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.

1 participant