Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump zwave-js to 11.5.3 and schema to 30 #988

Merged
merged 4 commits into from
Jul 24, 2023
Merged

Bump zwave-js to 11.5.3 and schema to 30 #988

merged 4 commits into from
Jul 24, 2023

Conversation

raman325
Copy link
Collaborator

Adds lastSeen property to node dump and cleans up some code

@raman325 raman325 changed the title Bump zwave-js to 11.5.0 and schema to 30 Bump zwave-js to 11.5.2 and schema to 30 Jul 20, 2023
@raman325 raman325 changed the title Bump zwave-js to 11.5.2 and schema to 30 Bump zwave-js to 11.5.3 and schema to 30 Jul 24, 2023
Comment on lines +643 to +644
const node30 = node14 as Partial<NodeStateSchema30>;
node30.lastSeen = node.lastSeen;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using the as Partial to stop TS from complaining that lastSeen is missing?
I would probably do this instead:

const node30: NodeStateSchema30 = {
    ...node14,
    lastSeen: node.lastSeen
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's fair, but can we stick with the original pattern for this PR and work on a better one in a separate PR?

@raman325 raman325 merged commit 432b87a into master Jul 24, 2023
@raman325 raman325 deleted the 11.5 branch July 24, 2023 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants