@supacloud/elysia 0.42.1 → 0.42.2
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 +1 -1
- package/dist/bun-aot.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/worker.d.ts +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ network listener. It is included in the normal `bun test` discovery.
|
|
|
144
144
|
A configured `errorMapper` retains precedence. Capacity errors thrown later
|
|
145
145
|
by application code are not automatically treated as admission failures.
|
|
146
146
|
The transport-neutral registry exports `PendingWorkCapacityError` from
|
|
147
|
-
`@supacloud/app/
|
|
147
|
+
`@supacloud/app/pending-work`; it remains a `RangeError` subclass.
|
|
148
148
|
|
|
149
149
|
### Not Yet Proven by This Suite
|
|
150
150
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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.
|
|
3
|
+
"version": "0.42.2",
|
|
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",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typebox": "1.4.3"
|
|
64
64
|
},
|
|
65
65
|
"overrides": {
|
|
66
|
-
"@supacloud/delivery": "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",
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"elysia": "2.0.0-rc.1"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@supacloud/compiler": "0.
|
|
78
|
-
"@supacloud/delivery": "0.
|
|
79
|
-
"@supacloud/db": "0.24.
|
|
77
|
+
"@supacloud/compiler": "0.62.1",
|
|
78
|
+
"@supacloud/delivery": "0.27.0",
|
|
79
|
+
"@supacloud/db": "0.24.2",
|
|
80
80
|
"@types/bun": "^1.4.4",
|
|
81
81
|
"elysia": "2.0.0-rc.1",
|
|
82
82
|
"typescript": "7.1.0-beta"
|