Skip to content

Commit

Permalink
chore(release): Prepare for v3.3.0-rc.1 release (#575)
Browse files Browse the repository at this point in the history
Update protos, update e2e pipeline, bump version

Signed-off-by: Shubham Sharma <[email protected]>
  • Loading branch information
shubham1172 authored Mar 1, 2024
1 parent 319e2fb commit 4189a3d
Show file tree
Hide file tree
Showing 24 changed files with 1,089 additions and 676 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ jobs:
test-e2e:
runs-on: ubuntu-latest
env:
GOVER: 1.20
DAPR_CLI_VER: 1.12.0
DAPR_RUNTIME_VER: 1.12.0
GOVER: 1.21
DAPR_CLI_VER: 1.13.0-rc.1
DAPR_RUNTIME_VER: 1.13.0-rc.10
DAPR_INSTALL_URL: https://raw.githubusercontent.com/dapr/cli/master/install/install.sh
DAPR_CLI_REF: ""
DAPR_REF: ""
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dapr/dapr",
"version": "3.2.0",
"version": "3.3.0-rc.1",
"description": "The official Dapr (https://dapr.io) SDK for Node.js",
"types": "./build/index.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/fetch-proto.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ OS=$(echo `uname`|tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
ORG_NAME="dapr"
REPO_NAME="dapr"
BRANCH_NAME="v1.12.0"
BRANCH_NAME="v1.13.0-rc.10"

# Path to store output
PATH_ROOT=$(pwd)
Expand Down
14 changes: 3 additions & 11 deletions src/proto/dapr/proto/common/v1/common_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
Expand Down Expand Up @@ -1284,8 +1278,7 @@ proto.dapr.proto.common.v1.StateItem.prototype.getMetadataMap = function(opt_noL
*/
proto.dapr.proto.common.v1.StateItem.prototype.clearMetadataMap = function() {
this.getMetadataMap().clear();
return this;
};
return this;};


/**
Expand Down Expand Up @@ -1823,8 +1816,7 @@ proto.dapr.proto.common.v1.ConfigurationItem.prototype.getMetadataMap = function
*/
proto.dapr.proto.common.v1.ConfigurationItem.prototype.clearMetadataMap = function() {
this.getMetadataMap().clear();
return this;
};
return this;};


goog.object.extend(exports, proto.dapr.proto.common.v1);
8 changes: 1 addition & 7 deletions src/proto/dapr/proto/internals/v1/apiversion_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

goog.exportSymbol('proto.dapr.proto.internals.v1.APIVersion', null, global);
/**
Expand Down
17 changes: 4 additions & 13 deletions src/proto/dapr/proto/internals/v1/service_invocation_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

var dapr_proto_common_v1_common_pb = require('../../../../dapr/proto/common/v1/common_pb.js');
goog.object.extend(proto, dapr_proto_common_v1_common_pb);
Expand Down Expand Up @@ -507,8 +501,7 @@ proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.getMetadataMap = f
*/
proto.dapr.proto.internals.v1.InternalInvokeRequest.prototype.clearMetadataMap = function() {
this.getMetadataMap().clear();
return this;
};
return this;};


/**
Expand Down Expand Up @@ -791,8 +784,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getHeadersMap = f
*/
proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearHeadersMap = function() {
this.getHeadersMap().clear();
return this;
};
return this;};


/**
Expand All @@ -814,8 +806,7 @@ proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.getTrailersMap =
*/
proto.dapr.proto.internals.v1.InternalInvokeResponse.prototype.clearTrailersMap = function() {
this.getTrailersMap().clear();
return this;
};
return this;};


/**
Expand Down
8 changes: 1 addition & 7 deletions src/proto/dapr/proto/internals/v1/status_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
goog.object.extend(proto, google_protobuf_any_pb);
Expand Down
20 changes: 19 additions & 1 deletion src/proto/dapr/proto/operator/v1/operator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ service Operator {
rpc HTTPEndpointUpdate (HTTPEndpointUpdateRequest) returns (stream HTTPEndpointUpdateEvent) {}
}

// ResourceEventType is the type of event to a resource.
enum ResourceEventType {
// UNKNOWN indicates that the event type is unknown.
UNKNOWN = 0;

// CREATED indicates that the resource has been created.
CREATED = 1;

// UPDATED indicates that the resource has been updated.
UPDATED = 2;

// DELETED indicates that the resource has been deleted.
DELETED = 3;
}

// ListComponentsRequest is the request to get components for a sidecar in namespace.
message ListComponentsRequest {
string namespace = 1;
Expand All @@ -55,6 +70,9 @@ message ComponentUpdateRequest {
// ComponentUpdateEvent includes the updated component event.
message ComponentUpdateEvent {
bytes component = 1;

// type is the type of event.
ResourceEventType type = 2;
}

// ListComponentResponse includes the list of available components.
Expand Down Expand Up @@ -134,4 +152,4 @@ message HTTPEndpointUpdateRequest {
// HTTPEndpointsUpdateEvent includes the updated http endpoint event.
message HTTPEndpointUpdateEvent {
bytes http_endpoints = 1;
}
}
10 changes: 10 additions & 0 deletions src/proto/dapr/proto/operator/v1/operator_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ export class ComponentUpdateEvent extends jspb.Message {
getComponent_asU8(): Uint8Array;
getComponent_asB64(): string;
setComponent(value: Uint8Array | string): ComponentUpdateEvent;
getType(): ResourceEventType;
setType(value: ResourceEventType): ComponentUpdateEvent;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): ComponentUpdateEvent.AsObject;
Expand All @@ -72,6 +74,7 @@ export class ComponentUpdateEvent extends jspb.Message {
export namespace ComponentUpdateEvent {
export type AsObject = {
component: Uint8Array | string,
type: ResourceEventType,
}
}

Expand Down Expand Up @@ -416,3 +419,10 @@ export namespace HTTPEndpointUpdateEvent {
httpEndpoints: Uint8Array | string,
}
}

export enum ResourceEventType {
UNKNOWN = 0,
CREATED = 1,
UPDATED = 2,
DELETED = 3,
}
51 changes: 43 additions & 8 deletions src/proto/dapr/proto/operator/v1/operator_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@

var jspb = require('google-protobuf');
var goog = jspb;
var global =
(typeof globalThis !== 'undefined' && globalThis) ||
(typeof window !== 'undefined' && window) ||
(typeof global !== 'undefined' && global) ||
(typeof self !== 'undefined' && self) ||
(function () { return this; }).call(null) ||
Function('return this')();
var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);

var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
goog.object.extend(proto, google_protobuf_empty_pb);
Expand All @@ -41,6 +35,7 @@ goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyRequest', null, gl
goog.exportSymbol('proto.dapr.proto.operator.v1.ListResiliencyResponse', null, global);
goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsRequest', null, global);
goog.exportSymbol('proto.dapr.proto.operator.v1.ListSubscriptionsResponse', null, global);
goog.exportSymbol('proto.dapr.proto.operator.v1.ResourceEventType', null, global);
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
Expand Down Expand Up @@ -771,7 +766,8 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.toObject = function(
*/
proto.dapr.proto.operator.v1.ComponentUpdateEvent.toObject = function(includeInstance, msg) {
var f, obj = {
component: msg.getComponent_asB64()
component: msg.getComponent_asB64(),
type: jspb.Message.getFieldWithDefault(msg, 2, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -812,6 +808,10 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.deserializeBinaryFromReader =
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setComponent(value);
break;
case 2:
var value = /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (reader.readEnum());
msg.setType(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -848,6 +848,13 @@ proto.dapr.proto.operator.v1.ComponentUpdateEvent.serializeBinaryToWriter = func
f
);
}
f = message.getType();
if (f !== 0.0) {
writer.writeEnum(
2,
f
);
}
};


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


/**
* optional ResourceEventType type = 2;
* @return {!proto.dapr.proto.operator.v1.ResourceEventType}
*/
proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.getType = function() {
return /** @type {!proto.dapr.proto.operator.v1.ResourceEventType} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};


/**
* @param {!proto.dapr.proto.operator.v1.ResourceEventType} value
* @return {!proto.dapr.proto.operator.v1.ComponentUpdateEvent} returns this
*/
proto.dapr.proto.operator.v1.ComponentUpdateEvent.prototype.setType = function(value) {
return jspb.Message.setProto3EnumField(this, 2, value);
};



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


/**
* @enum {number}
*/
proto.dapr.proto.operator.v1.ResourceEventType = {
UNKNOWN: 0,
CREATED: 1,
UPDATED: 2,
DELETED: 3
};

goog.object.extend(exports, proto.dapr.proto.operator.v1);
3 changes: 3 additions & 0 deletions src/proto/dapr/proto/placement/v1/placement.proto
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ message PlacementOrder {
message PlacementTables {
map<string, PlacementTable> entries = 1;
string version = 2;
// Minimum observed version of the Actor APIs supported by connected runtimes
uint32 api_level = 3;
int64 replication_factor = 4;
}

message PlacementTable {
Expand Down
6 changes: 6 additions & 0 deletions src/proto/dapr/proto/placement/v1/placement_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ export class PlacementTables extends jspb.Message {
clearEntriesMap(): void;
getVersion(): string;
setVersion(value: string): PlacementTables;
getApiLevel(): number;
setApiLevel(value: number): PlacementTables;
getReplicationFactor(): number;
setReplicationFactor(value: number): PlacementTables;

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

entriesMap: Array<[string, PlacementTable.AsObject]>,
version: string,
apiLevel: number,
replicationFactor: number,
}
}

Expand Down
Loading

0 comments on commit 4189a3d

Please sign in to comment.