lazy-render-virtual-scroll 1.7.0 → 1.8.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.
Files changed (2) hide show
  1. package/README.md +10 -32
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,25 +2,9 @@
2
2
 
3
3
  High-performance virtual scrolling library with intelligent scroll detection, adaptive buffering, and multi-framework support.
4
4
 
5
- ## 🏆 PRODUCTION PROVEN: 1 MILLION CARDS
5
+ ![lazy card load](https://github.com/sannuk79/PROJECTS-AND-NPM-PACKAGES-/blob/main/cutcard.png)
6
6
 
7
- ### **Performance Benchmark**
8
-
9
- ```
10
- 📊 Tested with 10,00,000 cards
11
- ⚡ Response Time: 3378ms → <100ms (33x faster)
12
- 🚀 Scroll: Smooth 60 FPS
13
- 💾 Memory: 99% reduction
14
- 📉 Data: 500MB → 25KB per request
15
- ```
16
-
17
- **Backend Integration:**
18
- - ✅ Cursor-based pagination
19
- - ✅ Adaptive batch sizing (20-200 items)
20
- - ✅ Network-aware prefetching
21
- - ✅ Redis caching with TTL
22
-
23
- ---
7
+ ![lazy one million card](https://github.com/sannuk79/PROJECTS-AND-NPM-PACKAGES-/blob/main/onemillioncard.png)
24
8
 
25
9
  ## Installation
26
10
 
@@ -45,18 +29,14 @@ import { LazyList } from 'lazy-render-virtual-scroll';
45
29
 
46
30
  ### Enhanced Hooks
47
31
  ```tsx
48
- import { useIntelligentScroll } from 'lazy-render-virtual-scroll';
32
+ import { useIntelligentScroll, useAdaptiveLoading, useSmartPagination } from 'lazy-render-virtual-scroll';
49
33
 
50
- const { visibleRange, isLoading, scrollPattern } = useIntelligentScroll({
51
- itemHeight: 50,
52
- viewportHeight: 400,
53
- fetchMore
54
- });
34
+ const { visibleRange, isLoading } = useIntelligentScroll({ itemHeight: 50, viewportHeight: 400, fetchMore });
55
35
  ```
56
36
 
57
37
  ### Advanced Components
58
38
  ```tsx
59
- import { IntelligentLazyList, SmartInfiniteScroll } from 'lazy-render-virtual-scroll';
39
+ import { IntelligentLazyList, AdaptiveScrollView, SmartInfiniteScroll } from 'lazy-render-virtual-scroll';
60
40
  ```
61
41
 
62
42
  ## Features
@@ -71,13 +51,11 @@ import { IntelligentLazyList, SmartInfiniteScroll } from 'lazy-render-virtual-sc
71
51
 
72
52
  ## Performance
73
53
 
74
- | Metric | Before | After | Improvement |
75
- |--------|---------|-------|-------------|
76
- | 10K items render | 1800ms | 45ms | **40x faster** |
77
- | 1M items API | 3378ms | <100ms | **33x faster** |
78
- | Memory usage | High | Low | **99% reduction** |
79
- | Data transfer | 500MB | 25KB | **20,000x less** |
80
- | Scroll FPS | 30 FPS | 60 FPS | **2x smoother** |
54
+ | Metric | Improvement |
55
+ |--------|-------------|
56
+ | 10K items render | 1800ms 45ms |
57
+ | Memory usage | 99% reduction |
58
+ | Scroll performance | Smooth 60 FPS |
81
59
 
82
60
  ## Documentation
83
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lazy-render-virtual-scroll",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "A framework-agnostic virtual scrolling and lazy rendering solution",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",