@xhub-short/core 1.0.0-beta.21 → 1.0.0-beta.22

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/index.js +7 -7
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -2101,18 +2101,18 @@ function mapNetworkType(type) {
2101
2101
  }
2102
2102
  var DEFAULT_SCROLL_THRASHING_CONFIG = {
2103
2103
  windowMs: 1e3,
2104
- maxChangesInWindow: 3,
2105
- cooldownMs: 500
2104
+ maxChangesInWindow: 6,
2105
+ cooldownMs: 300
2106
2106
  };
2107
2107
  var DEFAULT_PREFETCH_CONFIG = {
2108
2108
  wifi: {
2109
- posterCount: 5,
2110
- videoSegmentCount: 2,
2109
+ posterCount: 15,
2110
+ videoSegmentCount: 10,
2111
2111
  prefetchVideo: true
2112
2112
  },
2113
2113
  cellular: {
2114
- posterCount: 3,
2115
- videoSegmentCount: 1,
2114
+ posterCount: 10,
2115
+ videoSegmentCount: 5,
2116
2116
  prefetchVideo: true
2117
2117
  },
2118
2118
  offline: {
@@ -2567,7 +2567,7 @@ var ResourceGovernor = class {
2567
2567
  newPreloadingIndices.add(index);
2568
2568
  }
2569
2569
  this.store.setState({ preloadingIndices: newPreloadingIndices });
2570
- const maxParallel = 2;
2570
+ const maxParallel = 3;
2571
2571
  const executeInBatches = async () => {
2572
2572
  for (let i = 0; i < indicesToPreload.length; i += maxParallel) {
2573
2573
  const batch = indicesToPreload.slice(i, i + maxParallel);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xhub-short/core",
3
3
  "sideEffects": false,
4
- "version": "1.0.0-beta.21",
4
+ "version": "1.0.0-beta.22",
5
5
  "type": "module",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -21,14 +21,14 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "zustand": "^5.0.0",
24
- "@xhub-short/contracts": "1.0.0-beta.21"
24
+ "@xhub-short/contracts": "1.0.0-beta.22"
25
25
  },
26
26
  "devDependencies": {
27
27
  "tsup": "^8.3.0",
28
28
  "typescript": "^5.7.0",
29
29
  "vitest": "^2.1.0",
30
- "@xhub-short/tsconfig": "0.0.1-beta.2",
31
- "@xhub-short/vitest-config": "0.1.0-beta.13"
30
+ "@xhub-short/tsconfig": "0.1.0-beta.3",
31
+ "@xhub-short/vitest-config": "0.1.0-beta.14"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "tsup",