vlist 3.0.0-next.5 → 3.0.0
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/README.github.md +14 -14
- package/README.md +14 -14
- package/dist/config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/size.json +1 -1
- package/package.json +1 -1
package/README.github.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The virtual list library for every framework. Ultra efficient, batteries-included, and accessible with composable plugins.
|
|
4
4
|
|
|
5
|
-
**v3.0.0
|
|
5
|
+
**v3.0.0** — Native scrolling by default, opt-in `vlist/synthetic`, and removal of deprecated scroll configuration and plugin hooks. See the [changelog](https://github.com/floor/vlist/blob/next/CHANGELOG.md).
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/vlist)
|
|
8
8
|
[](https://bundlephobia.com/package/vlist)
|
|
@@ -11,7 +11,7 @@ The virtual list library for every framework. Ultra efficient, batteries-include
|
|
|
11
11
|
|
|
12
12
|
- **Accessible** — `a11y()` or a selection mode adds WAI-ARIA, 2D keyboard navigation, focus recovery, screen-reader DOM ordering
|
|
13
13
|
- **Zero dependencies** — framework-agnostic core with tiny adapters for Vue, Svelte, Solid, React
|
|
14
|
-
- **10.0 KB gzipped
|
|
14
|
+
- **10.0 KB gzipped** — composable plugins with perfect tree-shaking
|
|
15
15
|
- **Constant memory** — ~0.1 MB overhead at any scale, from 10K to 1M+ items
|
|
16
16
|
- **Tree, grid, masonry, carousel, table, groups, data, selection, search, sortable, transition** — all opt-in
|
|
17
17
|
- **Axis-neutral** — vertical and horizontal scrolling through a single code path, all plugins work in both orientations
|
|
@@ -42,7 +42,7 @@ The virtual list library for every framework. Ultra efficient, batteries-include
|
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
44
|
npm install vlist # vanilla JS
|
|
45
|
-
npm install vlist@
|
|
45
|
+
npm install vlist@2 # the 2.x line, still maintained
|
|
46
46
|
npm install vlist vlist-vue # or vlist-svelte / vlist-solidjs / vlist-react
|
|
47
47
|
```
|
|
48
48
|
|
|
@@ -178,29 +178,29 @@ Removed mode/runway options throw a migration error before creating DOM. `vlist/
|
|
|
178
178
|
|
|
179
179
|
| Entry / export | Minified | Gzipped |
|
|
180
180
|
|---|---:|---:|
|
|
181
|
-
| **Base (`vlist`)** |
|
|
182
|
-
| `vlist/synthetic` | 33.
|
|
183
|
-
| `vlist/native` (alias) |
|
|
184
|
-
| `a11y()` | 30.
|
|
185
|
-
| `selection()` | 36.
|
|
181
|
+
| **Base (`vlist`)** | 27.0 KB | 10.0 KB |
|
|
182
|
+
| `vlist/synthetic` | 33.9 KB | 12.6 KB |
|
|
183
|
+
| `vlist/native` (alias) | 27.0 KB | 10.0 KB |
|
|
184
|
+
| `a11y()` | 30.8 KB | 11.4 KB |
|
|
185
|
+
| `selection()` | 36.5 KB | 12.9 KB |
|
|
186
186
|
| `data()` | 40.6 KB | 14.8 KB |
|
|
187
187
|
| `scrollbar()` | 35.1 KB | 12.8 KB |
|
|
188
|
-
| `sortable()` | 38.
|
|
188
|
+
| `sortable()` | 38.9 KB | 13.6 KB |
|
|
189
189
|
| `groups()` | 43.0 KB | 15.4 KB |
|
|
190
190
|
| `page()` | 29.5 KB | 10.9 KB |
|
|
191
|
-
| `snapshots()` | 30.
|
|
191
|
+
| `snapshots()` | 30.3 KB | 11.1 KB |
|
|
192
192
|
| `transition()` | 33.7 KB | 12.0 KB |
|
|
193
|
-
| `autosize()` | 30.
|
|
193
|
+
| `autosize()` | 30.2 KB | 11.1 KB |
|
|
194
194
|
| `grid()` | 34.4 KB | 12.5 KB |
|
|
195
195
|
| `table()` | 45.4 KB | 15.9 KB |
|
|
196
196
|
| `masonry()` | 39.0 KB | 14.4 KB |
|
|
197
197
|
| `tree()` | 43.1 KB | 15.3 KB |
|
|
198
198
|
| `search()` | 36.5 KB | 13.3 KB |
|
|
199
|
-
| `carousel()` | 41.7 KB | 15.
|
|
199
|
+
| `carousel()` | 41.7 KB | 15.2 KB |
|
|
200
200
|
| `vlist/synthetic` + `carousel()` | 47.8 KB | 17.4 KB |
|
|
201
|
-
| `vlist/synthetic` + `sortable()` | 45.
|
|
201
|
+
| `vlist/synthetic` + `sortable()` | 45.8 KB | 16.2 KB |
|
|
202
202
|
|
|
203
|
-
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin. The base is **10,
|
|
203
|
+
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin. The base is **10,201 bytes gzipped**, within the 10.0 KB budget (10,240 bytes). `bun run size` fails if a scenario fails to build, an unused plugin leaks into a bundle, or any published size exceeds its gzip budget. Synthetic input is **12,893 bytes** before plugins. The alias row measures the same source factory; the distributed alias re-exports it without duplicating the implementation.
|
|
204
204
|
|
|
205
205
|
## Examples
|
|
206
206
|
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
The virtual list library for every framework. Ultra efficient, batteries-included, and accessible with composable plugins.
|
|
4
4
|
|
|
5
|
-
**v3.0.0
|
|
5
|
+
**v3.0.0** — Native scrolling by default, opt-in `vlist/synthetic`, and removal of deprecated scroll configuration and plugin hooks. See the [changelog](https://github.com/floor/vlist/blob/next/CHANGELOG.md).
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/vlist)
|
|
8
8
|
[](https://bundlephobia.com/package/vlist)
|
|
@@ -11,7 +11,7 @@ The virtual list library for every framework. Ultra efficient, batteries-include
|
|
|
11
11
|
|
|
12
12
|
- **Accessible** — `a11y()` or a selection mode adds WAI-ARIA, 2D keyboard navigation, focus recovery, screen-reader DOM ordering
|
|
13
13
|
- **Zero dependencies** — framework-agnostic core, tiny adapters for Vue, Svelte, Solid, React
|
|
14
|
-
- **10.0 KB gzipped
|
|
14
|
+
- **10.0 KB gzipped** — composable plugins with perfect tree-shaking
|
|
15
15
|
- **Constant memory** — ~0.1 MB overhead at any scale, from 10K to 1M+ items
|
|
16
16
|
- **Axis-neutral** — vertical and horizontal scrolling through a single code path, all plugins work in both orientations
|
|
17
17
|
|
|
@@ -19,7 +19,7 @@ The virtual list library for every framework. Ultra efficient, batteries-include
|
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
21
|
npm install vlist
|
|
22
|
-
npm install vlist@
|
|
22
|
+
npm install vlist@2 # the 2.x line, still maintained
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Quick Start
|
|
@@ -124,29 +124,29 @@ Removed mode/runway options throw a migration error before creating DOM. `vlist/
|
|
|
124
124
|
|
|
125
125
|
| Entry / export | Minified | Gzipped |
|
|
126
126
|
|---|---:|---:|
|
|
127
|
-
| **Base (`vlist`)** |
|
|
128
|
-
| `vlist/synthetic` | 33.
|
|
129
|
-
| `vlist/native` (alias) |
|
|
130
|
-
| `a11y()` | 30.
|
|
131
|
-
| `selection()` | 36.
|
|
127
|
+
| **Base (`vlist`)** | 27.0 KB | 10.0 KB |
|
|
128
|
+
| `vlist/synthetic` | 33.9 KB | 12.6 KB |
|
|
129
|
+
| `vlist/native` (alias) | 27.0 KB | 10.0 KB |
|
|
130
|
+
| `a11y()` | 30.8 KB | 11.4 KB |
|
|
131
|
+
| `selection()` | 36.5 KB | 12.9 KB |
|
|
132
132
|
| `data()` | 40.6 KB | 14.8 KB |
|
|
133
133
|
| `scrollbar()` | 35.1 KB | 12.8 KB |
|
|
134
|
-
| `sortable()` | 38.
|
|
134
|
+
| `sortable()` | 38.9 KB | 13.6 KB |
|
|
135
135
|
| `groups()` | 43.0 KB | 15.4 KB |
|
|
136
136
|
| `page()` | 29.5 KB | 10.9 KB |
|
|
137
|
-
| `snapshots()` | 30.
|
|
137
|
+
| `snapshots()` | 30.3 KB | 11.1 KB |
|
|
138
138
|
| `transition()` | 33.7 KB | 12.0 KB |
|
|
139
|
-
| `autosize()` | 30.
|
|
139
|
+
| `autosize()` | 30.2 KB | 11.1 KB |
|
|
140
140
|
| `grid()` | 34.4 KB | 12.5 KB |
|
|
141
141
|
| `table()` | 45.4 KB | 15.9 KB |
|
|
142
142
|
| `masonry()` | 39.0 KB | 14.4 KB |
|
|
143
143
|
| `tree()` | 43.1 KB | 15.3 KB |
|
|
144
144
|
| `search()` | 36.5 KB | 13.3 KB |
|
|
145
|
-
| `carousel()` | 41.7 KB | 15.
|
|
145
|
+
| `carousel()` | 41.7 KB | 15.2 KB |
|
|
146
146
|
| `vlist/synthetic` + `carousel()` | 47.8 KB | 17.4 KB |
|
|
147
|
-
| `vlist/synthetic` + `sortable()` | 45.
|
|
147
|
+
| `vlist/synthetic` + `sortable()` | 45.8 KB | 16.2 KB |
|
|
148
148
|
|
|
149
|
-
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin. The base is **10,
|
|
149
|
+
Sizes are tree-shaken totals from `bun run size`, not additive plugin costs. Plugin rows include the native default factory plus that plugin. The base is **10,201 bytes gzipped**, within the 10.0 KB budget (10,240 bytes). `bun run size` fails if a scenario fails to build, an unused plugin leaks into a bundle, or any published size exceeds its gzip budget. Synthetic input is **12,893 bytes** before plugins. The alias row measures the same source factory; the distributed alias re-exports it without duplicating the implementation.
|
|
150
150
|
|
|
151
151
|
## Framework Adapters
|
|
152
152
|
|