Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/control-event-priority-string.md

This file was deleted.

2 changes: 1 addition & 1 deletion packages/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools>=77.0"]

[project]
name = "tesla-protocol"
version = "6.0.0"
version = "6.1.0"
license = "Apache-2.0"
description = "Tesla vehicle-command, fleet-telemetry and energy protobuf bindings for Python"
readme = "README.md"
Expand Down
12 changes: 12 additions & 0 deletions packages/typescript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @teslemetry/tesla-protocol

## 6.1.0

### Minor Changes

- 4f49c2b: Type `ControlEventSchedulingInfo.priority` as a decimal string in TypeScript, so a `uint64` priority above `Number.MAX_SAFE_INTEGER` decodes without loss.

A max-backup event is scheduled at priority `2^64 - 1`. As a `number`, encoding that value threw `invalid uint64`, and decoding any `MessageEnvelope` that carried it threw `Value is larger than Number.MAX_SAFE_INTEGER`, which lost the whole `TEGAPIGetBackupEventsResponse`.

**Breaking (TypeScript only): `ControlEventSchedulingInfo.priority` is now `string`, not `number`.** Pass and read it as a decimal string, for example `"18446744073709551615"`. JSON output already used a string for this field. The wire bytes do not change, and the Python API is unchanged.

Added golden fixture `fixtures/golden/energy_v1r_envelopes.json`: the energy_device `MessageEnvelope` requests for the Powerwall local v1r endpoint, and a `get_backup_events` reply carrying priority `2^64 - 1`, checked by both the TypeScript and Python tests.

## 6.0.0

### Major Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@teslemetry/tesla-protocol",
"version": "6.0.0",
"version": "6.1.0",
"description": "Tesla vehicle-command, fleet-telemetry and energy protobuf types for TypeScript, generated with ts-proto",
"license": "Apache-2.0",
"author": {
Expand Down
Loading