Skip to content

Commit

Permalink
Merge tag 'v0.6.5' into develop
Browse files Browse the repository at this point in the history
0.6.5
  • Loading branch information
bcopy committed Oct 9, 2024
2 parents d28227e + 7fc411c commit 8bbbd08
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 15 deletions.
6 changes: 3 additions & 3 deletions dist/homie-lit.core.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/homie-lit.esm.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/homie-lit.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/homie-lit.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/homie-lit.min.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/src/HomieObserver.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ declare class HomieObserver {
private onDelete;
constructor(messageHandler: MqttMessageHandler);
subscribe(topic: string): void;
publish(topic: string, message: string | Buffer): void;
get created$(): Observable<HomieEvent>;
get updated$(): Observable<HomieEvent>;
get deleted$(): Observable<HomieEvent>;
Expand Down
3 changes: 2 additions & 1 deletion dist/src/HomieProperty.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export declare class HomieProperty {
name: string;
value: any;
constructor(name: string, value: any);
dataType: any;
constructor(name: string, value: any, dataType: any);
setValue(newValue: any): void;
getValue(): any;
}
2 changes: 1 addition & 1 deletion src/HomieProperty.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export class HomieProperty {
constructor(public name: string, public value: any) {}
constructor(public name: string, public value: any, public dataType: any) {}

setValue(newValue: any) {
this.value = newValue;
Expand Down
4 changes: 2 additions & 2 deletions test/src/CoralBranch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { HomieProperty } from '../../src/HomieProperty';
export class CoralBranch extends HomieNode {
constructor(name: string) {
super(name);
this.addProperty(new HomieProperty('color', 'pink'));
this.addProperty(new HomieProperty('length', 10));
this.addProperty(new HomieProperty('color', 'pink', 'string'));
this.addProperty(new HomieProperty('length', 10, 'integer'));
}

// Add coral branch specific methods here
Expand Down
4 changes: 2 additions & 2 deletions test/src/PlayerAvatar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { HomieProperty } from '../../src/HomieProperty';
export class PlayerAvatar extends HomieNode {
constructor(name: string) {
super(name);
this.addProperty(new HomieProperty('position', { x: 0, y: 0, z: 0 }));
this.addProperty(new HomieProperty('rotation', { x: 0, y: 0, z: 0 }));
this.addProperty(new HomieProperty('position', { x: 0, y: 0, z: 0 }, 'json'));
this.addProperty(new HomieProperty('rotation', { x: 0, y: 0, z: 0 }, 'json'));
}

// Add player avatar specific methods here
Expand Down

0 comments on commit 8bbbd08

Please sign in to comment.