@sylphx/lens-server 2.10.1 → 2.11.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/index.js CHANGED
@@ -623,7 +623,7 @@ class LensServerImpl {
623
623
  currentState = state;
624
624
  }, emitIfChanged, select, context, onCleanup) : undefined;
625
625
  const lensContext = { ...context, emit, onCleanup };
626
- const result = resolver({ input: cleanInput, ctx: lensContext });
626
+ const result = resolver({ args: cleanInput, input: cleanInput, ctx: lensContext });
627
627
  if (isAsyncIterable(result)) {
628
628
  for await (const value of result) {
629
629
  if (cancelled)
@@ -645,6 +645,7 @@ class LensServerImpl {
645
645
  if (liveQuery._subscriber) {
646
646
  try {
647
647
  const publisher = liveQuery._subscriber({
648
+ args: cleanInput,
648
649
  input: cleanInput,
649
650
  ctx: context
650
651
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/lens-server",
3
- "version": "2.10.1",
3
+ "version": "2.11.0",
4
4
  "description": "Server runtime for Lens API framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -30,7 +30,7 @@
30
30
  "author": "SylphxAI",
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
- "@sylphx/lens-core": "^2.8.0"
33
+ "@sylphx/lens-core": "^2.9.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "typescript": "^5.9.3",
@@ -657,7 +657,7 @@ class LensServerImpl<
657
657
  : undefined;
658
658
 
659
659
  const lensContext = { ...context, emit, onCleanup };
660
- const result = resolver({ input: cleanInput, ctx: lensContext });
660
+ const result = resolver({ args: cleanInput, input: cleanInput, ctx: lensContext });
661
661
 
662
662
  if (isAsyncIterable(result)) {
663
663
  // Streaming: emit each yielded value
@@ -701,7 +701,8 @@ class LensServerImpl<
701
701
  try {
702
702
  // Get publisher function from subscriber
703
703
  const publisher = liveQuery._subscriber({
704
- input: cleanInput as never, // Type-safe at runtime via input validation
704
+ args: cleanInput as never, // Preferred parameter name
705
+ input: cleanInput as never, // Deprecated alias for backwards compatibility
705
706
  ctx: context as TContext,
706
707
  });
707
708
  // Call publisher with emit/onCleanup callbacks