Repository navigation
Update dependency i18next-cli to ^1.75.1 (main) - #6947
red-hat-konflux[bot] wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: red-hat-konflux[bot] The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
0ba23c9 to
c6a946b
Compare
34ac92b to
473dabd
Compare
Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
473dabd to
f739a1b
Compare
|
@red-hat-konflux[bot]: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|



This PR contains the following updates:
^1.74.4→^1.75.1Release Notes
i18next/i18next-cli (i18next-cli)
v1.75.1Compare Source
import * as Types from './types', a qualified type ((color: Types.Color) => …,x as Types.Color,FC<Types.Props>,declare const s: Types.Status) and a namespace member (Types.SIZES.map(…),Types.Status.Done,t(Types.LABELS.save),Object.keys(Types.LABELS)) now extract their keys, alsofor a namespace re-exported from a barrel (
export * as Shared from './types'). Fixes#305.
as constobject resolves in the files that import it:t(LABELS.save)andObject.keys(LABELS)only worked in the declaring file before.keyof typeof MAPresolves to the map's keys, sot(`label.${key}`)withdeclare const key: keyof typeof LABELSextractslabel.saveandlabel.cancel. This branch never matched before.v1.75.0Compare Source
extract.maxTypeDepthoption sets how many levels of nested object members arefollowed when a dynamic key reads a typed value (default: 5). Higher values cost time and memory on
large recursive types such as OpenAPI schemas. Requested in
#302.
wrapper type.
type Pet = components['schemas']['Pet']gets the full depth belowPet, where thecomponents/schemaswrapper used to take two of the five levels.response types work:
operations['getPet']['responses'][200]['content']['application/json']andop.responses[200].content['application/json'].statusresolved nothing before.v1.74.8Compare Source
// t(`QUARTER.${q}`)extractedQUARTER.${q}and// t(`status.${deepObject.status}`)extractedstatus.${deepObject.status}. Such a comment now keeps the existing keys it matches (QUARTER.1,QUARTER.2, …) even withremoveUnusedKeys, the way a commented static key keeps its key, while code canstill add new matching keys. A pattern without any static part (
`${a}.${b}`) is ignored. Fixes#304.
v1.74.7Compare Source
i18nKeyon<Trans t={t}>now routes into the hook's namespaces the same wayt()does, matching react-i18next 17.0.16. Withconst { t } = useTranslation(['ns1', 'ns2']),<Trans t={t} i18nKey={$ => $.ns2.message} />was filed asns1:ns2.message; it is now filed asns2:message, liket($ => $.ns2.message). Undertypes.enableSelector: 'strict'a leading primarynamespace is stripped too (
useTranslation('only')with$ => $.only.keyfilesonly:key). Reported inreact-i18next#1933.
React.FC<Props>(alsoFC,FunctionComponent),forwardRef<Ref, Props>(…)ormemo<Props>(…)are typed byProps, and iterating a typed member bindsthe element.
props.colors.map((color) => t(\Color.${color}`))withcolors: Color[]extracted nothing before unlesscolorwas asserted withas Color. Arrays of objects work the same way:props.items.map(({ kind }) => …),for (const item of props.items)and a destructured({ items }) => items.map(…)`. Fixes #303.v1.74.6Compare Source
does.
([1, 2, 3, 4] as const).map((q) => t(\QUARTER.${q}`)),for (const unit of ['day', 'hour'] as const)`and inline arrays of objects extracted nothing before. Fixes
#301.
t(\barStatus.${deepObject.Bar.status}`)andt(`fooBarStatus.${deepObject.Foo.Bar.status}`)now extract the nested union's values, also through references to other types, optional chaining (pet.category?.kind), destructuring (const { kind } = pet.category) and indexed access types (DeepObject['Bar']['status'],components['schemas']['Pet']), so types generated by openapi-typescript work. Nested members are followed up to five levels below the declared type, as incomponents.schemas.Pet.category.kind`.Fixes #302.
v1.74.5Compare Source
Color[],readonly Color[],Array<Color>or an alias of one) now resolves to the union's values, socolors.map((color) => t(\color.${color}`))andfor (const color of colors)extract every key instead of nothing. Before, this only worked withcolor as Color`. Fixes#300.
Configuration
📅 Schedule: (in timezone America/New_York)
🚦 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.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.