Skip to content

Commit

Permalink
Drop support for OS versions <= 2.14.0
Browse files Browse the repository at this point in the history
Change-type: major
  • Loading branch information
myarmolinsky committed Jan 15, 2025
1 parent c49a1f1 commit 6e28400
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/models/device.supervisor-api.partial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

import * as bSemver from 'balena-semver';
import type {
InjectedOptionsParam,
InjectedDependenciesParam,
Expand Down Expand Up @@ -176,20 +175,6 @@ export const getSupervisorApiHelper = function (
uuidOrId,
deviceOptions,
)) as PineTypedResult<Device, typeof deviceOptions>;
// TODO: Drop this once we drop support for ResinOS v2.11.0.
if (
!bSemver.valid(device.supervisor_version) ||
bSemver.lt(device.supervisor_version, '7.0.0')
) {
return (
await request.send({
method: 'POST',
url: `/device/${device.id}/restart`,
baseUrl: apiUrl,
timeout: CONTAINER_ACTION_ENDPOINT_TIMEOUT,
})
).body;
}

const appId = device.belongs_to__application[0].id;
const { body } = await request.send({
Expand Down

0 comments on commit 6e28400

Please sign in to comment.