@mittwald/flow-react-components 1.2.0-next.49 → 1.2.0-next.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/MIGRATION.md CHANGED
@@ -28,6 +28,45 @@ The CLI's own output does detect it and prints the right form.
28
28
 
29
29
  ---
30
30
 
31
+ <a id="tabler-icons-no-longer-transitive"></a>
32
+
33
+ ## @tabler/icons-react is no longer installed alongside Flow
34
+
35
+ **Since `1.1.40`** · migration · manual change · also applies to
36
+ `@mittwald/flow-remote-react-components`
37
+
38
+ Flow no longer depends on `@tabler/icons-react`. `@mittwald/flow-icons` carries
39
+ the path data of the 123 icons it uses directly, so a Flow install stops pulling
40
+ in 74 MB and ~24,000 files it never needed.
41
+
42
+ The icons themselves do not change: same names, same exports, same rendered
43
+ `<svg>` including the `tabler-icon` and `tabler-icon-<name>` classes.
44
+
45
+ The one thing that breaks is code which imported `@tabler/icons-react` without
46
+ declaring it, and got it because npm hoisted Flow's copy into the project's
47
+ `node_modules`. That copy is gone. Declare the package where you use it:
48
+
49
+ ```shell
50
+ npm i @tabler/icons-react
51
+ ```
52
+
53
+ ```tsx
54
+ // unchanged — it just needs the package in your own dependencies now
55
+ import { IconStar } from "@tabler/icons-react";
56
+
57
+ <Icon>
58
+ <IconStar />
59
+ </Icon>;
60
+ ```
61
+
62
+ **Apply:** Only affects code that imports from `@tabler/icons-react` — typically
63
+ a `<Icon><IconSomething /></Icon>` using an icon that is not in Flow's own set.
64
+ Add the package to your own dependencies (`npm i @tabler/icons-react`); the
65
+ imports themselves stay unchanged. Flow's own `Icon*` components are unaffected,
66
+ keep their names, and render exactly as before.
67
+
68
+ ---
69
+
31
70
  <a id="option-value-inferred-from-mixed-children"></a>
32
71
 
33
72
  ## Option: value is inferred from mixed children