@simpleapps-com/augur-server 0.4.3 → 0.5.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/dist/testing.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { ak as SiteActions } from './site-IpNMQZr5.js';
1
+ import { am as SiteActions } from './site-D21WJ8z1.js';
2
+ import '@simpleapps-com/augur-api';
2
3
  import '@simpleapps-com/augur-utils';
3
4
 
4
5
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpleapps-com/augur-server",
3
- "version": "0.4.3",
3
+ "version": "0.5.0",
4
4
  "description": "Server-side utilities for Augur ecommerce sites (Redis caching, SDK helpers, auth)",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  ],
42
42
  "dependencies": {
43
43
  "valibot": "^1.0.0",
44
- "@simpleapps-com/augur-utils": "0.4.3"
44
+ "@simpleapps-com/augur-utils": "0.5.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@simpleapps-com/augur-api": "^0.9.11",
@@ -50,7 +50,7 @@
50
50
  "next": "^16.1.6",
51
51
  "next-auth": ">=5.0.0-beta.30",
52
52
  "react": "^19.0.0",
53
- "@simpleapps-com/augur-hooks": "0.4.3"
53
+ "@simpleapps-com/augur-hooks": "0.5.0"
54
54
  },
55
55
  "peerDependenciesMeta": {
56
56
  "ioredis": {
@@ -73,7 +73,7 @@
73
73
  "tsup": "^8.5.0",
74
74
  "vitest": "^3.2.0",
75
75
  "@augur-packages/tsconfig": "0.0.0",
76
- "@simpleapps-com/augur-hooks": "0.4.3"
76
+ "@simpleapps-com/augur-hooks": "0.5.0"
77
77
  },
78
78
  "scripts": {
79
79
  "build": "tsup",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/server-query-client.ts"],"sourcesContent":["import { cache } from \"react\";\nimport { QueryClient } from \"@tanstack/react-query\";\nimport { CACHE_CONFIG } from \"@simpleapps-com/augur-utils\";\n\n/**\n * Creates a server-side query client optimised for prefetching.\n *\n * - No persistence (server-only)\n * - Longer cache times for prefetched data\n * - No retries (fail fast on server)\n * - No refetching (server renders are one-shot)\n */\nexport function createServerQueryClient(): QueryClient {\n return new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: CACHE_CONFIG.STATIC.staleTime,\n gcTime: CACHE_CONFIG.STATIC.staleTime,\n retry: 0,\n refetchOnMount: false,\n refetchOnWindowFocus: false,\n refetchOnReconnect: false,\n },\n },\n });\n}\n\n/**\n * Returns a per-request singleton QueryClient for React Server Components.\n *\n * React's `cache()` deduplicates calls within a single server request,\n * so each request gets its own QueryClient while avoiding the cross-request\n * state leakage that a module-level singleton would cause.\n */\nexport const getServerQueryClient = cache(\n (): QueryClient => createServerQueryClient(),\n);\n"],"mappings":";AAAA,SAAS,aAAa;AACtB,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAUtB,SAAS,0BAAuC;AACrD,SAAO,IAAI,YAAY;AAAA,IACrB,gBAAgB;AAAA,MACd,SAAS;AAAA,QACP,WAAW,aAAa,OAAO;AAAA,QAC/B,QAAQ,aAAa,OAAO;AAAA,QAC5B,OAAO;AAAA,QACP,gBAAgB;AAAA,QAChB,sBAAsB;AAAA,QACtB,oBAAoB;AAAA,MACtB;AAAA,IACF;AAAA,EACF,CAAC;AACH;AASO,IAAM,uBAAuB;AAAA,EAClC,MAAmB,wBAAwB;AAC7C;","names":[]}