veryfront 0.0.74 → 0.0.75

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/dist/data.js CHANGED
@@ -21,10 +21,8 @@ globalThis.Deno = globalThis.Deno || {
21
21
 
22
22
  // src/core/utils/cache/stores/memory/lru-list-manager.ts
23
23
  var LRUListManager = class {
24
- constructor() {
25
- this.head = null;
26
- this.tail = null;
27
- }
24
+ head = null;
25
+ tail = null;
28
26
  getHead() {
29
27
  return this.head;
30
28
  }
@@ -73,6 +71,7 @@ var LRUListManager = class {
73
71
 
74
72
  // src/core/utils/cache/eviction/eviction-manager.ts
75
73
  var EvictionManager = class {
74
+ onEvict;
76
75
  constructor(options = {}) {
77
76
  this.onEvict = options.onEvict;
78
77
  }
@@ -259,11 +258,17 @@ function defaultSizeEstimator(value) {
259
258
  }
260
259
  }
261
260
  var LRUCacheAdapter = class {
261
+ store = /* @__PURE__ */ new Map();
262
+ tagIndex = /* @__PURE__ */ new Map();
263
+ listManager = new LRUListManager();
264
+ evictionManager;
265
+ entryManager;
266
+ currentSize = 0;
267
+ maxEntries;
268
+ maxSizeBytes;
269
+ defaultTtlMs;
270
+ onEvict;
262
271
  constructor(options = {}) {
263
- this.store = /* @__PURE__ */ new Map();
264
- this.tagIndex = /* @__PURE__ */ new Map();
265
- this.listManager = new LRUListManager();
266
- this.currentSize = 0;
267
272
  this.maxEntries = options.maxEntries || 1e3;
268
273
  this.maxSizeBytes = options.maxSizeBytes || 50 * 1024 * 1024;
269
274
  this.defaultTtlMs = options.ttlMs;
@@ -472,11 +477,11 @@ var ConsoleLogger = class _ConsoleLogger {
472
477
  this.prefix = prefix;
473
478
  this.level = level;
474
479
  this.format = format;
475
- this.boundContext = {};
476
480
  if (boundContext) {
477
481
  this.boundContext = boundContext;
478
482
  }
479
483
  }
484
+ boundContext = {};
480
485
  setLevel(level) {
481
486
  this.level = level;
482
487
  }
@@ -635,7 +640,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
635
640
  // deno.json
636
641
  var deno_default = {
637
642
  name: "veryfront",
638
- version: "0.0.74",
643
+ version: "0.0.75",
639
644
  nodeModulesDir: "auto",
640
645
  exclude: [
641
646
  "npm/",
@@ -667,7 +672,11 @@ var deno_default = {
667
672
  "./oauth": "./src/core/oauth/index.ts",
668
673
  "./oauth/providers": "./src/core/oauth/providers/index.ts",
669
674
  "./oauth/handlers": "./src/core/oauth/handlers/index.ts",
670
- "./oauth/token-store": "./src/core/oauth/token-store/index.ts"
675
+ "./oauth/token-store": "./src/core/oauth/token-store/index.ts",
676
+ "./head": "./src/exports/head.ts",
677
+ "./router": "./src/exports/router.ts",
678
+ "./context": "./src/exports/context.ts",
679
+ "./fonts": "./src/exports/fonts.ts"
671
680
  },
672
681
  imports: {
673
682
  "@veryfront": "./src/index.ts",
@@ -722,7 +731,7 @@ var deno_default = {
722
731
  "@types/react-dom": "https://esm.sh/@types/react-dom@18.3.7?deps=csstype@3.2.3",
723
732
  react: "npm:react@18.3.1",
724
733
  "react-dom": "npm:react-dom@18.3.1",
725
- "react-dom/server": "npm:react-dom@18.3.1/server.node",
734
+ "react-dom/server": "npm:react-dom@18.3.1/server",
726
735
  "react-dom/client": "npm:react-dom@18.3.1/client",
727
736
  "react/jsx-runtime": "npm:react@18.3.1/jsx-runtime",
728
737
  "react/jsx-dev-runtime": "npm:react@18.3.1/jsx-dev-runtime",
@@ -752,7 +761,7 @@ var deno_default = {
752
761
  unocss: "https://esm.sh/unocss@0.59.0",
753
762
  "@unocss/core": "https://esm.sh/@unocss/core@0.59.0",
754
763
  "@unocss/preset-wind": "https://esm.sh/@unocss/preset-wind@0.59.0",
755
- "next-themes": "npm:next-themes@0.3.0",
764
+ "next-themes": "npm:next-themes@0.4",
756
765
  redis: "npm:redis",
757
766
  pg: "npm:pg",
758
767
  "@opentelemetry/api": "npm:@opentelemetry/api@1",
@@ -975,11 +984,9 @@ var VERYFRONT_PATHS = {
975
984
 
976
985
  // src/core/utils/bundle-manifest.ts
977
986
  var InMemoryBundleManifestStore = class {
978
- constructor() {
979
- this.metadata = /* @__PURE__ */ new Map();
980
- this.code = /* @__PURE__ */ new Map();
981
- this.sourceIndex = /* @__PURE__ */ new Map();
982
- }
987
+ metadata = /* @__PURE__ */ new Map();
988
+ code = /* @__PURE__ */ new Map();
989
+ sourceIndex = /* @__PURE__ */ new Map();
983
990
  getBundleMetadata(key) {
984
991
  const entry = this.metadata.get(key);
985
992
  if (!entry)
@@ -1170,13 +1177,11 @@ function isLruIntervalDisabled() {
1170
1177
  }
1171
1178
  }
1172
1179
  var CacheManager = class {
1173
- constructor() {
1174
- this.cache = new LRUCache({
1175
- maxEntries: DATA_FETCHING_MAX_ENTRIES,
1176
- ttlMs: isLruIntervalDisabled() ? void 0 : DATA_FETCHING_TTL_MS
1177
- });
1178
- this.cacheKeys = /* @__PURE__ */ new Set();
1179
- }
1180
+ cache = new LRUCache({
1181
+ maxEntries: DATA_FETCHING_MAX_ENTRIES,
1182
+ ttlMs: isLruIntervalDisabled() ? void 0 : DATA_FETCHING_TTL_MS
1183
+ });
1184
+ cacheKeys = /* @__PURE__ */ new Set();
1180
1185
  get(key) {
1181
1186
  const entry = this.cache.get(key);
1182
1187
  return entry ?? null;
@@ -1256,8 +1261,8 @@ var StaticDataFetcher = class {
1256
1261
  constructor(cacheManager, adapter) {
1257
1262
  this.cacheManager = cacheManager;
1258
1263
  this.adapter = adapter;
1259
- this.pendingRevalidations = /* @__PURE__ */ new Map();
1260
1264
  }
1265
+ pendingRevalidations = /* @__PURE__ */ new Map();
1261
1266
  async fetch(pageModule, context) {
1262
1267
  if (!pageModule.getStaticData) {
1263
1268
  return { props: {} };
@@ -1346,6 +1351,10 @@ var StaticPathsFetcher = class {
1346
1351
 
1347
1352
  // src/data/data-fetcher.ts
1348
1353
  var DataFetcher = class {
1354
+ cacheManager;
1355
+ serverFetcher;
1356
+ staticFetcher;
1357
+ pathsFetcher;
1349
1358
  constructor(adapter) {
1350
1359
  this.cacheManager = new CacheManager();
1351
1360
  this.serverFetcher = new ServerDataFetcher(adapter);