Repository navigation
chore(deps): redis 6.4 and react-i18next 18 - #381
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.tsapps/desktop/src/__tests__/i18n/transValues.test.tsxMigrations
None.
Tests
redisClientOptions.test.tshands 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.tsxrenders 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 lintand the server, desktop and admin unit suites pass on the branch.To check by hand