bump @pybricks/firmware to 5.0.0

This contains a breaking change where main.py is now optional so we
have to handle that case.
This commit is contained in:
David Lechner
2022-07-20 18:01:35 -05:00
parent 1d2c55eba6
commit 709c3c554b
3 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
"@blueprintjs/popover2": "^1.4.2",
"@blueprintjs/select": "^4.4.2",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
"@pybricks/firmware": "4.17.0",
"@pybricks/firmware": "5.0.0",
"@pybricks/ide-docs": "2.2.0",
"@pybricks/mpy-cross-v5": "^2.0.0",
"@pybricks/mpy-cross-v6": "^2.0.0",
+7 -1
View File
@@ -201,11 +201,17 @@ function* loadFirmware(
const firmwareBase = yield* call(() => reader.readFirmwareBase());
const metadata = yield* call(() => reader.readMetadata());
// if a user program was not given, then use main.py from the frimware.zip
// if a user program was not given, then use main.py from the firmware.zip
if (program === undefined) {
program = yield* call(() => reader.readMainPy());
}
// REVISIT: the firmware may eventually be changed to allow no main.py
// for now, ensure there is a program even if it does nothing
if (!program) {
program = '';
}
if (![5, 6].includes(metadata['mpy-abi-version'])) {
yield* put(
didFailToFinish(
+5 -5
View File
@@ -2280,12 +2280,12 @@ __metadata:
languageName: node
linkType: hard
"@pybricks/firmware@npm:4.17.0":
version: 4.17.0
resolution: "@pybricks/firmware@npm:4.17.0"
"@pybricks/firmware@npm:5.0.0":
version: 5.0.0
resolution: "@pybricks/firmware@npm:5.0.0"
dependencies:
jszip: ^3.7.1
checksum: 68d35727d101024f0c58bef0e7a8f245c7c5cbc8b38b2d3c638efc56a1ae84e03e52c596e3bfcdf0d22c1c9add4c2037d8fe4bf54e69b78763ec8c1169cc8517
checksum: 049dd90e988aa574cfa0ead1e62bcb74e6fdfc9b709bc1c40874ddf3abb63cd35555d22806c91184bc2e982912a001e0ef94ef72ef66217eb0319bcaf45a7cb3
languageName: node
linkType: hard
@@ -2319,7 +2319,7 @@ __metadata:
"@blueprintjs/popover2": ^1.4.2
"@blueprintjs/select": ^4.4.2
"@pmmmwh/react-refresh-webpack-plugin": ^0.5.7
"@pybricks/firmware": 4.17.0
"@pybricks/firmware": 5.0.0
"@pybricks/ide-docs": 2.2.0
"@pybricks/mpy-cross-v5": ^2.0.0
"@pybricks/mpy-cross-v6": ^2.0.0