@dogsbay/icons 0.2.0-beta.50 → 0.2.0-beta.51

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.
Files changed (2) hide show
  1. package/dist/registry.js +6 -2
  2. package/package.json +8 -2
package/dist/registry.js CHANGED
@@ -134,8 +134,12 @@ export class IconRegistry {
134
134
  return this.iconifyCache.get(prefix);
135
135
  }
136
136
  try {
137
- // Dynamic require to load icon data
138
- const { icons, width, height } = require(`@iconify/json/json/${prefix}.json`);
137
+ // Dynamic require to load icon data. We depend on the individual
138
+ // per-set packages (@iconify-json/mdi, …/lucide, etc.) rather than
139
+ // the monolithic @iconify/json (399 MB — the whole catalog) so a
140
+ // consuming site only pulls the ~7 sets we map. The prefix equals
141
+ // the package suffix, and each set ships `icons.json` at its root.
142
+ const { icons, width, height } = require(`@iconify-json/${prefix}/icons.json`);
139
143
  const w = width || 24;
140
144
  const h = height || 24;
141
145
  const result = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogsbay/icons",
3
- "version": "0.2.0-beta.50",
3
+ "version": "0.2.0-beta.51",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -13,7 +13,13 @@
13
13
  "README.md"
14
14
  ],
15
15
  "dependencies": {
16
- "@iconify/json": "^2.2.0"
16
+ "@iconify-json/mdi": "^1.2.0",
17
+ "@iconify-json/fa6-solid": "^1.2.0",
18
+ "@iconify-json/fa6-regular": "^1.2.0",
19
+ "@iconify-json/fa6-brands": "^1.2.0",
20
+ "@iconify-json/octicon": "^1.2.0",
21
+ "@iconify-json/simple-icons": "^1.2.0",
22
+ "@iconify-json/lucide": "^1.2.0"
17
23
  },
18
24
  "devDependencies": {
19
25
  "@types/node": "^22.0.0",