18.19.0
18.19.0 (2025-05-08)
Feature
-
Refactor the UniversalLink component using typescript.
Use union types for deciding between href or item.
Modify tsconfig, include types located intypesfolder, otherwise d.ts files will noch be recognized in .tsx files, e.g. inside components. I need this for thereact-router-hash-linkpackage, that we use in the UniversalLink component. The specific file is/types/react-router-hash-link.d.ts.
Modify lint-staged.config.js to exclude d.ts files.
Use newest version of classnames (with types).
Create tests and negative tests for optimization with React.memo (add render counter for testing this behavior) -
ConditionalLinkin TypeScript. @sneridagh #6959
Internal
- Fixed types of #6826 in build:types. @sneridagh