@lage-run/rpc 1.2.2 → 1.2.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/CHANGELOG.json +16 -1
- package/CHANGELOG.md +10 -2
- package/lib/createClient.js +1 -1
- package/lib/createServer.d.ts +1 -1
- package/lib/createServer.js +5 -2
- package/lib/gen/lage/v1/lage_pb.d.ts +8 -0
- package/lib/gen/lage/v1/lage_pb.js +18 -0
- package/package.json +1 -1
- package/proto/lage/v1/lage.proto +2 -0
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@lage-run/rpc",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 04 Oct 2024 23:41:31 GMT",
|
|
6
|
+
"version": "1.2.3",
|
|
7
|
+
"tag": "@lage-run/rpc_v1.2.3",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/rpc",
|
|
13
|
+
"commit": "5030c3eca2e52a4b31e4246b06dea37e126aa659",
|
|
14
|
+
"comment": "adds support for stdout / stderr output"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Wed, 02 Oct 2024 20:26:19 GMT",
|
|
6
21
|
"version": "1.2.2",
|
|
7
22
|
"tag": "@lage-run/rpc_v1.2.2",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @lage-run/rpc
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 04 Oct 2024 23:41:31 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.2.3
|
|
8
|
+
|
|
9
|
+
Fri, 04 Oct 2024 23:41:31 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- adds support for stdout / stderr output (kchau@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 1.2.2
|
|
8
16
|
|
|
9
|
-
Wed, 02 Oct 2024 20:
|
|
17
|
+
Wed, 02 Oct 2024 20:26:19 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
package/lib/createClient.js
CHANGED
|
@@ -12,7 +12,7 @@ const _connect = require("@connectrpc/connect");
|
|
|
12
12
|
const _connectnode = require("@connectrpc/connect-node");
|
|
13
13
|
const _lage_connect = require("./gen/lage/v1/lage_connect.js");
|
|
14
14
|
function createClient({ baseUrl , httpVersion }) {
|
|
15
|
-
const transport = (0, _connectnode.
|
|
15
|
+
const transport = (0, _connectnode.createGrpcTransport)({
|
|
16
16
|
httpVersion,
|
|
17
17
|
baseUrl
|
|
18
18
|
});
|
package/lib/createServer.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import type { ILageService } from "./types/ILageService.js";
|
|
4
|
-
export declare function createServer(lageService: ILageService, abortController: AbortController): Promise<import("fastify").FastifyInstance<import("
|
|
4
|
+
export declare function createServer(lageService: ILageService, abortController: AbortController): Promise<import("fastify").FastifyInstance<import("http2").Http2Server, import("http2").Http2ServerRequest, import("http2").Http2ServerResponse, import("fastify").FastifyBaseLogger, import("fastify").FastifyTypeProviderDefault>>;
|
package/lib/createServer.js
CHANGED
|
@@ -12,11 +12,14 @@ const _fastify = require("fastify");
|
|
|
12
12
|
const _connectfastify = require("@connectrpc/connect-fastify");
|
|
13
13
|
const _createRoutes = require("./createRoutes.js");
|
|
14
14
|
async function createServer(lageService, abortController) {
|
|
15
|
-
const server = (0, _fastify.fastify)(
|
|
15
|
+
const server = (0, _fastify.fastify)({
|
|
16
|
+
http2: true
|
|
17
|
+
});
|
|
16
18
|
await server.register(_connectfastify.fastifyConnectPlugin, {
|
|
17
19
|
routes: (0, _createRoutes.createRoutes)(lageService),
|
|
18
20
|
shutdownSignal: abortController.signal,
|
|
19
|
-
compressMinBytes: 512
|
|
21
|
+
compressMinBytes: 512,
|
|
22
|
+
grpc: true
|
|
20
23
|
});
|
|
21
24
|
server.get("/", (_, reply)=>{
|
|
22
25
|
reply.type("text/plain");
|
|
@@ -61,6 +61,14 @@ export declare class RunTargetResponse extends Message<RunTargetResponse> {
|
|
|
61
61
|
* @generated from field: repeated string outputs = 6;
|
|
62
62
|
*/
|
|
63
63
|
outputs: string[];
|
|
64
|
+
/**
|
|
65
|
+
* @generated from field: string stdout = 7;
|
|
66
|
+
*/
|
|
67
|
+
stdout: string;
|
|
68
|
+
/**
|
|
69
|
+
* @generated from field: string stderr = 8;
|
|
70
|
+
*/
|
|
71
|
+
stderr: string;
|
|
64
72
|
constructor(data?: PartialMessage<RunTargetResponse>);
|
|
65
73
|
static readonly runtime: typeof proto3;
|
|
66
74
|
static readonly typeName = "connectrpc.lage.v1.RunTargetResponse";
|
|
@@ -141,6 +141,12 @@ class RunTargetResponse extends _protobuf.Message {
|
|
|
141
141
|
/**
|
|
142
142
|
* @generated from field: repeated string outputs = 6;
|
|
143
143
|
*/ _define_property(this, "outputs", []);
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: string stdout = 7;
|
|
146
|
+
*/ _define_property(this, "stdout", "");
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: string stderr = 8;
|
|
149
|
+
*/ _define_property(this, "stderr", "");
|
|
144
150
|
_protobuf.proto3.util.initPartial(data, this);
|
|
145
151
|
}
|
|
146
152
|
}
|
|
@@ -185,6 +191,18 @@ _define_property(RunTargetResponse, "fields", _protobuf.proto3.util.newFieldList
|
|
|
185
191
|
kind: "scalar",
|
|
186
192
|
T: 9 /* ScalarType.STRING */ ,
|
|
187
193
|
repeated: true
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
no: 7,
|
|
197
|
+
name: "stdout",
|
|
198
|
+
kind: "scalar",
|
|
199
|
+
T: 9 /* ScalarType.STRING */
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
no: 8,
|
|
203
|
+
name: "stderr",
|
|
204
|
+
kind: "scalar",
|
|
205
|
+
T: 9 /* ScalarType.STRING */
|
|
188
206
|
}
|
|
189
207
|
]));
|
|
190
208
|
class PingRequest extends _protobuf.Message {
|
package/package.json
CHANGED