Fix/react i18next 11 - #2
Open
benjaminLedel wants to merge 9 commits into
Open
Conversation
Item based icon override
Compiling changes
Item based icon override
react-i18next hat withNamespaces in v10 entfernt und in withTranslation umbenannt. Der Pin auf ^9.0.10 hielt in jedem konsumierenden Projekt eine zweite, alte react-i18next-Kopie im Bundle - und zog html-parse-stringify2 mit, das eine ReDoS-Schwachstelle hat (GHSA, kein Fix in der 2.x-Reihe verfuegbar). Reine Umbenennung in 9 Dateien, keine Verhaltensaenderung: withTranslation injiziert dieselben Props (t, i18n, tReady) wie withNamespaces zuvor. i18next bleibt auf ^19.8.4, das erfuellt die Peer-Anforderung von react-i18next 11 (>=19). dist/react-keyed-file-browser.js neu gebaut (webpack --mode=production). dist/react-keyed-file-browser.css unveraendert - das SASS ist nicht betroffen, und node-sass 4 laesst sich auf aktuellem Node nicht mehr bauen. Fuer den JS-Build auf Node 20+ wird NODE_OPTIONS=--openssl-legacy-provider benoetigt (webpack 4 nutzt MD4, das OpenSSL 3 nicht mehr anbietet).
Der Name wurde in 7564b1f versehentlich auf den Upstream-Namen react-keyed-file-browser zurueckgesetzt - vermutlich beim Uebernehmen von Aenderungen aus uptick/react-keyed-file-browser. Folge: master war seitdem fuer die konsumierende App unbrauchbar. Deren package.json referenziert "react-keyed-file-browser-educa": "github:digital-learning-gmbh/react-keyed-file-browser#master" und importiert unter diesem Namen. Nur weil das Lockfile noch den aelteren Commit dc35db9 (v1.10.0, letzter mit korrektem Namen) pinnt, faellt das bisher nicht auf. Eine Neuaufloesung des Lockfiles haette den Dateibrowser gebrochen. Version auf 1.12.0, weil 1.11.0 unter dem falschen Namen existiert.
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.
No description provided.