forge-select 0.7.4 → 0.7.5

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/README.md +11 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -205,6 +205,17 @@ Forge Select is vanilla TypeScript/JavaScript, so it can be mounted inside any f
205
205
 
206
206
  Forge Select is designed as a drop-in-concept replacement for Select2: no jQuery dependency, native accessibility, and a smaller API surface. A full option/event/method mapping table and a step-by-step migration checklist are available in [`docs/migration-from-select2.md`](./docs/migration-from-select2.md).
207
207
 
208
+ ## Bundle size
209
+
210
+ Forge Select ships as a single class, so **the whole feature set is in the bundle whether or not you use it** — tree select, AJAX, tags, sortable tags and virtualization cannot be tree-shaken away. Measured with esbuild (minified + gzipped):
211
+
212
+ | Usage | JS |
213
+ | --------------------------------------------------------------- | ------- |
214
+ | Minimal — `new ForgeSelect(el, { placeholder })` | 13.3 KB |
215
+ | Every feature — tree, AJAX, tags, sortable, measured rows, etc. | 13.4 KB |
216
+
217
+ Plus 1.7 KB gzipped for `forge-select/styles.css`. Budget ~15 KB gzipped total and the number won't move as you adopt more of the API. Splitting the core into opt-in subpath entrypoints is under consideration for a future major version; it is not planned as a patch, since it would change the public import surface.
218
+
208
219
  ## Benchmarks
209
220
 
210
221
  Run `npm run bench` for a reproducible JSON baseline covering bundle size, initialization, 10,000-option search latency, and virtual-scroll performance. The methodology and result fields are documented in [`docs/benchmarks.md`](./docs/benchmarks.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forge-select",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "A modern, lightweight, highly customizable replacement for Select2.",
5
5
  "keywords": [
6
6
  "select",
@@ -46,7 +46,9 @@
46
46
  "dist",
47
47
  "styles"
48
48
  ],
49
- "sideEffects": false,
49
+ "sideEffects": [
50
+ "**/*.css"
51
+ ],
50
52
  "overrides": {
51
53
  "esbuild": "0.28.1"
52
54
  },