@supacloud/elysia 0.42.1 → 0.42.3

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/README.md CHANGED
@@ -62,8 +62,11 @@ do not establish a wider RC version matrix or Node.js runtime compatibility.
62
62
 
63
63
  Keep the exact Elysia peer until additional versions have their own acceptance
64
64
  evidence. A server using this adapter still installs Elysia; application metadata
65
- and business modules need not import native Elysia types. See the
66
- [dependency boundary and upgrade policy](../../docs/elysia-compatibility.md).
65
+ and business modules need not import native Elysia types. Publication rewrites
66
+ `@supacloud/app` from `file:../app` to that sibling's exact version. Every static
67
+ import of `@supacloud/app` or a subpath, including `@supacloud/app/pending-work`,
68
+ must be an export of the published app tarball, runtime JavaScript file included.
69
+ See the [dependency boundary and upgrade policy](../../docs/elysia-compatibility.md).
67
70
 
68
71
  ## Identity-bound ZenStack read adapter
69
72
 
@@ -144,7 +147,7 @@ network listener. It is included in the normal `bun test` discovery.
144
147
  A configured `errorMapper` retains precedence. Capacity errors thrown later
145
148
  by application code are not automatically treated as admission failures.
146
149
  The transport-neutral registry exports `PendingWorkCapacityError` from
147
- `@supacloud/app/runtime`; it remains a `RangeError` subclass.
150
+ `@supacloud/app/pending-work`; it remains a `RangeError` subclass.
148
151
 
149
152
  ### Not Yet Proven by This Suite
150
153
 
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "bun": "1.4.4",
3
3
  "packages": {
4
- "elysia": "2.0.0-rc.1",
4
+ "elysia": "2.0.0-rc.3",
5
5
  "effect": "4.0.5",
6
6
  "typescript": "7.1.0-beta",
7
7
  "typebox": "1.4.3",
8
- "exact-mirror": "1.2.6"
8
+ "exact-mirror": "1.2.7"
9
9
  }
10
10
  }
package/dist/bun-aot.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Elysia as Elysia4, setupTypebox, Validator as Validator2 } from "elysia";
3
3
  import { requireFeatureRequestContext } from "@supacloud/app";
4
4
  import { composeAspects as composeApplicationAspects, invokeAspect, freezeAspectData } from "@supacloud/app/execution";
5
- import { PendingWorkRegistry as PendingWorkRegistry2, PendingWorkTimeoutError, PendingWorkCapacityError } from "@supacloud/app/runtime";
5
+ import { PendingWorkRegistry as PendingWorkRegistry2, PendingWorkTimeoutError, PendingWorkCapacityError } from "@supacloud/app/pending-work";
6
6
  import { commandFailureMetadata as commandFailureMetadata3, decodeCommandPreview } from "@supacloud/contracts";
7
7
 
8
8
  // src/command-errors.ts
@@ -1690,7 +1690,7 @@ function cloneValue(value) {
1690
1690
  return structuredClone(value);
1691
1691
  }
1692
1692
  // src/worker.ts
1693
- import { PendingWorkRegistry } from "@supacloud/app/runtime";
1693
+ import { PendingWorkRegistry } from "@supacloud/app/pending-work";
1694
1694
  function createRabbitMqQueuePort(options) {
1695
1695
  if (!options.channel || typeof options.channel.consume !== "function" || typeof options.channel.ack !== "function" || typeof options.channel.nack !== "function" || !/^[A-Za-z0-9_.:-]{1,255}$/.test(options.queue)) {
1696
1696
  throw new TypeError("RabbitMQ queue port options are invalid");
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Elysia, type AnyElysia, type Context, type StatusMap } from "elysia";
2
2
  import type { CommandRuntimeAudit, CommandRuntimeAuthorizer, CommandRuntimeGovernance, CommandRuntimeInvocation, CommandRuntimeMiddleware } from "@supacloud/app";
3
- import { PendingWorkRegistry } from "@supacloud/app/runtime";
3
+ import { PendingWorkRegistry } from "@supacloud/app/pending-work";
4
4
  import { type CommandPreview, type ErrorMetadata } from "@supacloud/contracts";
5
5
  import { type HttpPolicyRegistry } from "./http-policy";
6
6
  export { HttpPolicyConfigurationError } from "./http-policy";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { Elysia as Elysia4, setupTypebox, Validator as Validator2 } from "elysia";
3
3
  import { requireFeatureRequestContext } from "@supacloud/app";
4
4
  import { composeAspects as composeApplicationAspects, invokeAspect, freezeAspectData } from "@supacloud/app/execution";
5
- import { PendingWorkRegistry as PendingWorkRegistry2, PendingWorkTimeoutError, PendingWorkCapacityError } from "@supacloud/app/runtime";
5
+ import { PendingWorkRegistry as PendingWorkRegistry2, PendingWorkTimeoutError, PendingWorkCapacityError } from "@supacloud/app/pending-work";
6
6
  import { commandFailureMetadata as commandFailureMetadata3, decodeCommandPreview } from "@supacloud/contracts";
7
7
 
8
8
  // src/command-errors.ts
@@ -1690,7 +1690,7 @@ function cloneValue(value) {
1690
1690
  return structuredClone(value);
1691
1691
  }
1692
1692
  // src/worker.ts
1693
- import { PendingWorkRegistry } from "@supacloud/app/runtime";
1693
+ import { PendingWorkRegistry } from "@supacloud/app/pending-work";
1694
1694
  function createRabbitMqQueuePort(options) {
1695
1695
  if (!options.channel || typeof options.channel.consume !== "function" || typeof options.channel.ack !== "function" || typeof options.channel.nack !== "function" || !/^[A-Za-z0-9_.:-]{1,255}$/.test(options.queue)) {
1696
1696
  throw new TypeError("RabbitMQ queue port options are invalid");
package/dist/worker.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { PendingWorkRegistry } from "@supacloud/app/runtime";
1
+ import { PendingWorkRegistry } from "@supacloud/app/pending-work";
2
2
  import { type CompiledJob, type CompiledModule, type ExecutionObserver, type JobExecutor } from "./index";
3
3
  export type WorkerState = "idle" | "starting" | "running" | "stopping" | "stopped";
4
4
  /** The transport-specific claim is mapped to this small execution contract. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@supacloud/elysia",
3
- "version": "0.42.1",
3
+ "version": "0.42.3",
4
4
  "description": "Elysia runtime adapter for SupaCloud compiled modules: application/request scopes, route registration and validation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -54,16 +54,16 @@
54
54
  "directory": "packages/elysia"
55
55
  },
56
56
  "dependencies": {
57
- "@supacloud/app": "0.39.1",
57
+ "@supacloud/app": "0.39.2",
58
58
  "@supacloud/commands": "0.12.0",
59
59
  "@supacloud/contracts": "0.16.1",
60
60
  "effect": "4.0.5",
61
- "exact-mirror": "1.2.6",
61
+ "exact-mirror": "1.2.7",
62
62
  "jose": "^6.2.13",
63
63
  "typebox": "1.4.3"
64
64
  },
65
65
  "overrides": {
66
- "@supacloud/delivery": "0.26.0",
66
+ "@supacloud/delivery": "0.27.0",
67
67
  "@supacloud/contracts": "0.16.1",
68
68
  "@supacloud/commands": "0.12.0",
69
69
  "@graphql-tools/utils": "^12.0.4",
@@ -71,14 +71,14 @@
71
71
  "prisma": "6.19.3"
72
72
  },
73
73
  "peerDependencies": {
74
- "elysia": "2.0.0-rc.1"
74
+ "elysia": "2.0.0-rc.3"
75
75
  },
76
76
  "devDependencies": {
77
- "@supacloud/compiler": "0.60.0",
78
- "@supacloud/delivery": "0.26.0",
79
- "@supacloud/db": "0.24.0",
77
+ "@supacloud/compiler": "0.62.3",
78
+ "@supacloud/delivery": "0.27.0",
79
+ "@supacloud/db": "0.24.2",
80
80
  "@types/bun": "^1.4.4",
81
- "elysia": "2.0.0-rc.1",
81
+ "elysia": "2.0.0-rc.3",
82
82
  "typescript": "7.1.0-beta"
83
83
  }
84
84
  }