|
1 | | -- attr lazy prop |
2 | | -- signal getter |
| 1 | +- for loop array or empty check for else |
| 2 | +- rework return slot$ to look like element/component? fn.prop is faster than {f,p} |
3 | 3 | - util to transform static props to signal props? |
4 | 4 | - rename decide? export as public - as Dynamic in solidjs |
5 | 5 | - typed effectattrs <T> |
6 | 6 | - additional arg for record in for$? as$ |
| 7 | + |
| 8 | +for$($items)( |
| 9 | + as$(record, ($item) => li()($item.$name)) |
| 10 | +) |
| 11 | + |
7 | 12 | - serialize - start all marked stores? |
8 | | -- bundle types |
| 13 | +- bundle types? |
9 | 14 | - static index for untracked loop? |
10 | 15 | - controls addEventListener to events system |
11 | | -- lazy scope to start and stop methods? |
| 16 | +- lazy scope to start and stop methods? - ??? wtf??? |
12 | 17 | - later: resort effects |
13 | 18 |
|
| 19 | +do not export all through root index? split entrypoints by groups |
| 20 | + |
| 21 | +import { |
| 22 | + div, |
| 23 | + button |
| 24 | +} from 'nanoviews/elements' |
| 25 | +import { |
| 26 | + classList$, |
| 27 | + focus$ |
| 28 | +} from 'nanoviews/attributes' |
| 29 | +import { |
| 30 | + signal |
| 31 | +} from 'nanoviews/store' |
| 32 | +import { |
| 33 | + if$, |
| 34 | + for$ |
| 35 | +} from 'nanoviews/logic' |
| 36 | + |
| 37 | +vs |
| 38 | + |
| 39 | +import { |
| 40 | + div, |
| 41 | + button, |
| 42 | + classList$, |
| 43 | + focus$, |
| 44 | + signal, |
| 45 | + if$, |
| 46 | + for$ |
| 47 | +} from 'nanoviews' |
| 48 | + |
| 49 | +there are many exports, so it can look like a mess, may be we can push devs to write structured code by splitting exports by entrypoints. |
| 50 | + |
14 | 51 | - !== undefined is faster |
15 | 52 | - prop: undefined is faster |
16 | 53 | - for let i faster than array methods |
|
20 | 57 | - Reflect.get is slow |
21 | 58 | - arr.length = 0 is slower than arr = [] |
22 | 59 |
|
23 | | -- store injection effectScope to stop effects after context stop? |
| 60 | +- store injection effectScope to stop effects after context stop? - UPD: wtf is this? i dont remember what it mean. Wrap serialize in effectScope? Or wrap inject ? bad practice, maybe just for safety into serialize |
24 | 61 |
|
25 | 62 | - html + head components |
26 | 63 | - universal dom |
27 | 64 | - ssr |
28 | 65 | - hydration |
29 | 66 |
|
30 | | -- enhance events / modifiers? |
| 67 | +- events modifiers? |
31 | 68 | - svg ? |
32 | | -- transitions ? |
33 | 69 |
|
34 | 70 | - error boundaries |
35 | 71 |
|
36 | 72 | - hmr |
37 | | -- more informative errors |
38 | | - |
39 | | - All publics |
40 | | - Size limit: 1.8 kB |
41 | | - Size: 1.78 kB with all dependencies, minified and brotlied |
42 | | - |
43 | | - Signal |
44 | | - Package size limit has exceeded by 249 B |
45 | | - Size limit: 1.22 kB |
46 | | - Size: 1.47 kB with all dependencies, minified and brotlied |
47 | 73 |
|
48 | | - Popular set |
49 | | - Package size limit has exceeded by 235 B |
50 | | - Size limit: 1.33 kB |
51 | | - Size: 1.57 kB with all dependencies, minified and brotlied |
| 74 | +- COMPILER to compete with svelte and solid |
52 | 75 |
|
53 | 76 | SSR |
54 | 77 |
|
|
0 commit comments