@ai-matrx/icons 0.1.0 → 0.1.2
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/CHANGELOG.md +25 -0
- package/README.md +5 -3
- package/dist/index.cjs +9777 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9768 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.2 — 2026-08-30
|
|
4
|
+
|
|
5
|
+
- Peer-dependency retrofit (register row X3 / law C23): `lucide-react` is now a
|
|
6
|
+
REAL dependency (the dynamic-import resolution machinery is the product — the
|
|
7
|
+
package carries its own catalog instead of demanding the host resolve one),
|
|
8
|
+
and `react-icons` moved from optional peer to `optionalDependencies` (same
|
|
9
|
+
lazy-import graceful degradation when absent). `react` is the only remaining
|
|
10
|
+
peer. Installing this package no longer asks the host to satisfy icon-library
|
|
11
|
+
peers. No code changes.
|
|
12
|
+
|
|
13
|
+
## 0.1.1 — 2026-08-29
|
|
14
|
+
|
|
15
|
+
- `getIconWithColorAndSize`: a hex color rendered a literal `null` token in the
|
|
16
|
+
className (the faithful-port quirk recorded at 0.1.0); hex colors now color
|
|
17
|
+
via inline style — the behavior the code's own comment always described —
|
|
18
|
+
and the class list never contains `null`.
|
|
19
|
+
- `IconResolver`'s load effect now cancels on unmount / icon change: a slow
|
|
20
|
+
dynamic import can no longer set state on a dead effect or clobber a newer
|
|
21
|
+
icon's resolution.
|
|
22
|
+
- All module-level mutable state moved to `globalThis` `Symbol.for` slots
|
|
23
|
+
(`ai-matrx.icons.svg-registry`, `.custom-icon-cache`, `.dynamic-icon-cache`):
|
|
24
|
+
with dual ESM/CJS unsplit bundles, per-module state silently splits across
|
|
25
|
+
loader graphs — a host's `registerSvgIcons` call could be invisible to a
|
|
26
|
+
consumer resolving through the other graph.
|
|
27
|
+
|
|
3
28
|
## 0.1.0 — 2026-08-28
|
|
4
29
|
|
|
5
30
|
- Created the package, ported verbatim from the Matrx frontend icon system
|
package/README.md
CHANGED
|
@@ -9,9 +9,11 @@ flash-of-nothing:
|
|
|
9
9
|
- **The full Lucide catalog via a validated dynamic `import("lucide-react")`** — resolved
|
|
10
10
|
once, cached at module level, with the export checked to actually be a renderable
|
|
11
11
|
component before it is ever rendered.
|
|
12
|
-
- **Curated brand icons from the
|
|
13
|
-
use; when `react-icons` is
|
|
14
|
-
|
|
12
|
+
- **Curated brand icons from the `react-icons` optional dependency** — installed by
|
|
13
|
+
default, lazy-imported on first use; when `react-icons` is absent (install with
|
|
14
|
+
`--omit=optional`, or a failed optional install) the resolver degrades to the
|
|
15
|
+
fallback icon instead of failing. `lucide-react` itself is a real dependency —
|
|
16
|
+
the package carries its own catalog; `react` is the only peer.
|
|
15
17
|
- **Your own SVG assets via `svg:` ids** — an injectable registry maps
|
|
16
18
|
`svg:icons/Home` → `/icons/Home.svg` and renders an `<img>`; you register your app's
|
|
17
19
|
asset paths once at startup.
|