Skip to content

Commit 4189a3d

Browse files
authored
chore(release): Prepare for v3.3.0-rc.1 release (#575)
Update protos, update e2e pipeline, bump version Signed-off-by: Shubham Sharma <[email protected]>
1 parent 319e2fb commit 4189a3d

24 files changed

+1089
-676
lines changed

.github/workflows/test-e2e.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
test-e2e:
3535
runs-on: ubuntu-latest
3636
env:
37-
GOVER: 1.20
38-
DAPR_CLI_VER: 1.12.0
39-
DAPR_RUNTIME_VER: 1.12.0
37+
GOVER: 1.21
38+
DAPR_CLI_VER: 1.13.0-rc.1
39+
DAPR_RUNTIME_VER: 1.13.0-rc.10
4040
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
4141
DAPR_CLI_REF: ""
4242
DAPR_REF: ""

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dapr/dapr",
3-
"version": "3.2.0",
3+
"version": "3.3.0-rc.1",
44
"description": "The official Dapr (https://dapr.io) SDK for Node.js",
55
"types": "./build/index.d.ts",
66
"scripts": {

scripts/fetch-proto.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ OS=$(echo `uname`|tr '[:upper:]' '[:lower:]')
33
ARCH=$(uname -m)
44
ORG_NAME="dapr"
55
REPO_NAME="dapr"
6-
BRANCH_NAME="v1.12.0"
6+
BRANCH_NAME="v1.13.0-rc.10"
77

88
# Path to store output
99
PATH_ROOT=$(pwd)

src/proto/dapr/proto/common/v1/common_pb.js

+3-11
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global =
17-
(typeof globalThis !== 'undefined' && globalThis) ||
18-
(typeof window !== 'undefined' && window) ||
19-
(typeof global !== 'undefined' && global) ||
20-
(typeof self !== 'undefined' && self) ||
21-
(function () { return this; }).call(null) ||
22-
Function('return this')();
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
2519
goog.object.extend(proto, google_protobuf_any_pb);
@@ -1284,8 +1278,7 @@ proto.dapr.proto.common.v1.StateItem.prototype.getMetadataMap = function(opt_noL
12841278
*/
12851279
proto.dapr.proto.common.v1.StateItem.prototype.clearMetadataMap = function() {
12861280
this.getMetadataMap().clear();
1287-
return this;
1288-
};
1281+
return this;};
12891282

12901283

12911284
/**
@@ -1823,8 +1816,7 @@ proto.dapr.proto.common.v1.ConfigurationItem.prototype.getMetadataMap = function
18231816
*/
18241817
proto.dapr.proto.common.v1.ConfigurationItem.prototype.clearMetadataMap = function() {
18251818
this.getMetadataMap().clear();
1826-
return this;
1827-
};
1819+
return this;};
18281820

18291821

18301822
goog.object.extend(exports, proto.dapr.proto.common.v1);

src/proto/dapr/proto/internals/v1/apiversion_pb.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global =
17-
(typeof globalThis !== 'undefined' && globalThis) ||
18-
(typeof window !== 'undefined' && window) ||
19-
(typeof global !== 'undefined' && global) ||
20-
(typeof self !== 'undefined' && self) ||
21-
(function () { return this; }).call(null) ||
22-
Function('return this')();
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
goog.exportSymbol('proto.dapr.proto.internals.v1.APIVersion', null, global);
2519
/**

src/proto/dapr/proto/internals/v1/service_invocation_pb.js

+4-13
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global =
17-
(typeof globalThis !== 'undefined' && globalThis) ||
18-
(typeof window !== 'undefined' && window) ||
19-
(typeof global !== 'undefined' && global) ||
20-
(typeof self !== 'undefined' && self) ||
21-
(function () { return this; }).call(null) ||
22-
Function('return this')();
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js');
2519
goog.object.extend(proto, dapr_proto_common_v1_common_pb);
@@ -507,8 +501,7 @@ proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMetadataMap = f
507501
*/
508502
proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMetadataMap = function() {
509503
this.getMetadataMap().clear();
510-
return this;
511-
};
504+
return this;};
512505

513506

514507
/**
@@ -791,8 +784,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getHeadersMap = f
791784
*/
792785
proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearHeadersMap = function() {
793786
this.getHeadersMap().clear();
794-
return this;
795-
};
787+
return this;};
796788

797789

798790
/**
@@ -814,8 +806,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getTrailersMap =
814806
*/
815807
proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearTrailersMap = function() {
816808
this.getTrailersMap().clear();
817-
return this;
818-
};
809+
return this;};
819810

820811

821812
/**

src/proto/dapr/proto/internals/v1/status_pb.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global =
17-
(typeof globalThis !== 'undefined' && globalThis) ||
18-
(typeof window !== 'undefined' && window) ||
19-
(typeof global !== 'undefined' && global) ||
20-
(typeof self !== 'undefined' && self) ||
21-
(function () { return this; }).call(null) ||
22-
Function('return this')();
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
2519
goog.object.extend(proto, google_protobuf_any_pb);

src/proto/dapr/proto/operator/v1/operator.proto

+19-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ service Operator {
4040
rpc HTTPEndpointUpdate (HTTPEndpointUpdateRequest) returns (stream HTTPEndpointUpdateEvent) {}
4141
}
4242

43+
// ResourceEventType is the type of event to a resource.
44+
enum ResourceEventType {
45+
// UNKNOWN indicates that the event type is unknown.
46+
UNKNOWN = 0;
47+
48+
// CREATED indicates that the resource has been created.
49+
CREATED = 1;
50+
51+
// UPDATED indicates that the resource has been updated.
52+
UPDATED = 2;
53+
54+
// DELETED indicates that the resource has been deleted.
55+
DELETED = 3;
56+
}
57+
4358
// ListComponentsRequest is the request to get components for a sidecar in namespace.
4459
message ListComponentsRequest {
4560
string namespace = 1;
@@ -55,6 +70,9 @@ message ComponentUpdateRequest {
5570
// ComponentUpdateEvent includes the updated component event.
5671
message ComponentUpdateEvent {
5772
bytes component = 1;
73+
74+
// type is the type of event.
75+
ResourceEventType type = 2;
5876
}
5977

6078
// ListComponentResponse includes the list of available components.
@@ -134,4 +152,4 @@ message HTTPEndpointUpdateRequest {
134152
// HTTPEndpointsUpdateEvent includes the updated http endpoint event.
135153
message HTTPEndpointUpdateEvent {
136154
bytes http_endpoints = 1;
137-
}
155+
}

src/proto/dapr/proto/operator/v1/operator_pb.d.ts

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export class ComponentUpdateEvent extends jspb.Message {
5858
getComponent_asU8(): Uint8Array;
5959
getComponent_asB64(): string;
6060
setComponent(value: Uint8Array | string): ComponentUpdateEvent;
61+
getType(): ResourceEventType;
62+
setType(value: ResourceEventType): ComponentUpdateEvent;
6163

6264
serializeBinary(): Uint8Array;
6365
toObject(includeInstance?: boolean): ComponentUpdateEvent.AsObject;
@@ -72,6 +74,7 @@ export class ComponentUpdateEvent extends jspb.Message {
7274
export namespace ComponentUpdateEvent {
7375
export type AsObject = {
7476
component: Uint8Array | string,
77+
type: ResourceEventType,
7578
}
7679
}
7780

@@ -416,3 +419,10 @@ export namespace HTTPEndpointUpdateEvent {
416419
httpEndpoints: Uint8Array | string,
417420
}
418421
}
422+
423+
export enum ResourceEventType {
424+
UNKNOWN = 0,
425+
CREATED = 1,
426+
UPDATED = 2,
427+
DELETED = 3,
428+
}

src/proto/dapr/proto/operator/v1/operator_pb.js

+43-8
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,7 @@
1313

1414
var jspb = require('google-protobuf');
1515
var goog = jspb;
16-
var global =
17-
(typeof globalThis !== 'undefined' && globalThis) ||
18-
(typeof window !== 'undefined' && window) ||
19-
(typeof global !== 'undefined' && global) ||
20-
(typeof self !== 'undefined' && self) ||
21-
(function () { return this; }).call(null) ||
22-
Function('return this')();
16+
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
2317

2418
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
2519
goog.object.extend(proto, google_protobuf_empty_pb);
@@ -41,6 +35,7 @@ goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyRequest', null, gl
4135
goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyResponse', null, global);
4236
goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsRequest', null, global);
4337
goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsResponse', null, global);
38+
goog.exportSymbol('proto.dapr.proto.operator.v1.ResourceEventType', null, global);
4439
/**
4540
* Generated by JsPbCodeGenerator.
4641
* @param {Array=} opt_data Optional initial data array, typically from a
@@ -771,7 +766,8 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.toObject = function(
771766
*/
772767
proto.dapr.proto.operator.v1.ComponentUpdateEvent.toObject = function(includeInstance, msg) {
773768
var f, obj = {
774-
component: msg.getComponent_asB64()
769+
component: msg.getComponent_asB64(),
770+
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
775771
};
776772

777773
if (includeInstance) {
@@ -812,6 +808,10 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.deserializeBinaryFromReader =
812808
var value = /** @type {!Uint8Array} */ (reader.readBytes());
813809
msg.setComponent(value);
814810
break;
811+
case 2:
812+
var value = /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (reader.readEnum());
813+
msg.setType(value);
814+
break;
815815
default:
816816
reader.skipField();
817817
break;
@@ -848,6 +848,13 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.serializeBinaryToWriter = func
848848
f
849849
);
850850
}
851+
f = message.getType();
852+
if (f !== 0.0) {
853+
writer.writeEnum(
854+
2,
855+
f
856+
);
857+
}
851858
};
852859

853860

@@ -893,6 +900,24 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setComponent = funct
893900
};
894901

895902

903+
/**
904+
* optional ResourceEventType type = 2;
905+
* @return {!proto.dapr.proto.operator.v1.ResourceEventType}
906+
*/
907+
proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getType = function() {
908+
return /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
909+
};
910+
911+
912+
/**
913+
* @param {!proto.dapr.proto.operator.v1.ResourceEventType} value
914+
* @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} returns this
915+
*/
916+
proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setType = function(value) {
917+
return jspb.Message.setProto3EnumField(this, 2, value);
918+
};
919+
920+
896921

897922
/**
898923
* List of repeated fields within this message type.
@@ -3319,4 +3344,14 @@ proto.dapr.proto.operator.v1.HTTPEndpointUpdateEvent.prototype.setHttpEndpoints
33193344
};
33203345

33213346

3347+
/**
3348+
* @enum {number}
3349+
*/
3350+
proto.dapr.proto.operator.v1.ResourceEventType = {
3351+
UNKNOWN: 0,
3352+
CREATED: 1,
3353+
UPDATED: 2,
3354+
DELETED: 3
3355+
};
3356+
33223357
goog.object.extend(exports, proto.dapr.proto.operator.v1);

src/proto/dapr/proto/placement/v1/placement.proto

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ message PlacementOrder {
3131
message PlacementTables {
3232
map<string, PlacementTable> entries = 1;
3333
string version = 2;
34+
// Minimum observed version of the Actor APIs supported by connected runtimes
35+
uint32 api_level = 3;
36+
int64 replication_factor = 4;
3437
}
3538

3639
message PlacementTable {

src/proto/dapr/proto/placement/v1/placement_pb.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ export class PlacementTables extends jspb.Message {
3838
clearEntriesMap(): void;
3939
getVersion(): string;
4040
setVersion(value: string): PlacementTables;
41+
getApiLevel(): number;
42+
setApiLevel(value: number): PlacementTables;
43+
getReplicationFactor(): number;
44+
setReplicationFactor(value: number): PlacementTables;
4145

4246
serializeBinary(): Uint8Array;
4347
toObject(includeInstance?: boolean): PlacementTables.AsObject;
@@ -54,6 +58,8 @@ export namespace PlacementTables {
5458

5559
entriesMap: Array<[string, PlacementTable.AsObject]>,
5660
version: string,
61+
apiLevel: number,
62+
replicationFactor: number,
5763
}
5864
}
5965

0 commit comments

Comments
 (0)