@vite-hub/source 0.5.1 → 0.6.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.
@@ -143,6 +143,7 @@ function defineCollection(input, options) {
143
143
  });
144
144
  request.signal?.throwIfAborted();
145
145
  if (!result || !Array.isArray(result.items) || result.nextCursor !== null && !isProviderCursor(result.nextCursor)) throw sourceErrorDiagnostics.SOURCE_R0009({ message: "[vitehub] Provider Collection load() must return items and nextCursor." });
146
+ if (result.items.length > limit) throw sourceErrorDiagnostics.SOURCE_R0009({ message: "[vitehub] Provider Collection load() returned more items than the requested limit." });
146
147
  const transformedItems = definition.transform ? await Promise.all(result.items.map(definition.transform)) : result.items;
147
148
  request.signal?.throwIfAborted();
148
149
  const page = {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as sourceErrorDiagnostics } from "./error-diagnostics-TunlTPXq.js";
2
- import { a as parseCollectionSchema, i as createCollectionCursorCodec, n as defineCollection, r as CollectionCursorError } from "./collection-BNG6XUBS.js";
2
+ import { a as parseCollectionSchema, i as createCollectionCursorCodec, n as defineCollection, r as CollectionCursorError } from "./collection-C68RxIKq.js";
3
3
  import { r as isRecordOrFunction } from "./object-D8cOtgW3.js";
4
4
  import { i as sourceError, n as normalizeSafeSourcePath, o as sourcePathError, r as normalizeSourcePath } from "./path-ZomRTEWV.js";
5
5
  import { a as useSource } from "./registry-BNY8hxZp.js";
package/dist/server.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as CollectionCursorError, t as assertCollectionAccess } from "./collection-BNG6XUBS.js";
1
+ import { r as CollectionCursorError, t as assertCollectionAccess } from "./collection-C68RxIKq.js";
2
2
  import { t as sourceErrorDiagnostics } from "./error-diagnostics-TunlTPXq.js";
3
3
  // src/cached-source.ts
4
4
  /** Cache `get(key)` in the Nitro `cache` storage. Other reader operations pass through unchanged. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vite-hub/source",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Typed source retrieval primitives for ViteHub.",
5
5
  "keywords": [
6
6
  "content",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@standard-schema/spec": "^1.1.0",
70
- "@vite-hub/runtime": "0.5.1",
70
+ "@vite-hub/runtime": "0.6.0",
71
71
  "mrmime": "^2.0.1",
72
72
  "nostics": "1.4.0",
73
73
  "ocache": "^0.3.2"
@@ -76,7 +76,7 @@
76
76
  "@modelcontextprotocol/sdk": "^1.32.2",
77
77
  "@types/node": "^24.19.2",
78
78
  "@types/picomatch": "^4.0.3",
79
- "@vite-hub/forge": "0.5.1",
79
+ "@vite-hub/forge": "0.6.0",
80
80
  "@vite-hub/internal": "0.0.1",
81
81
  "drizzle-orm": "1.0.0-rc.6",
82
82
  "h3": "^2.0.8",
@@ -97,7 +97,7 @@
97
97
  "nitro": "3.0.261102-rc || ^3.0.261103-rc",
98
98
  "vite": ">=8.0.0",
99
99
  "vue": "^3.5.0",
100
- "@vite-hub/forge": "0.5.1"
100
+ "@vite-hub/forge": "0.6.0"
101
101
  },
102
102
  "peerDependenciesMeta": {
103
103
  "@modelcontextprotocol/sdk": {