mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 01:23:52 +00:00
Bump @pybricks/mpy-cross to v5
This commit is contained in:
committed by
laurensvalk
parent
f30b6a31c7
commit
bbad88a502
+2
-2
@@ -4,7 +4,7 @@
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@pybricks/firmware": "^1.0.0",
|
||||
"@pybricks/mpy-cross-v4": "^1.1.1",
|
||||
"@pybricks/mpy-cross-v5": "^1.0.0",
|
||||
"@shopify/react-i18n": "^3.0.2",
|
||||
"@testing-library/jest-dom": "^5.8.0",
|
||||
"@testing-library/react": "^10.0.4",
|
||||
@@ -41,7 +41,7 @@
|
||||
"xterm-addon-fit": "^0.4.0"
|
||||
},
|
||||
"scripts": {
|
||||
"prepare": "mkdir -p public/static/js && cp node_modules/@pybricks/mpy-cross-v4/build/mpy-cross.wasm public/static/js/",
|
||||
"prepare": "mkdir -p public/static/js && cp node_modules/@pybricks/mpy-cross-v5/build/mpy-cross.wasm public/static/js/",
|
||||
"start": "react-scripts start",
|
||||
"build": "react-scripts build",
|
||||
"test": "react-scripts test --env=./test-env.js",
|
||||
|
||||
@@ -36,7 +36,7 @@ test('compiler works', async () => {
|
||||
expect(dispatched[0].type).toBe(MpyActionType.DidCompile);
|
||||
const { data } = dispatched[0] as MpyDidCompileAction;
|
||||
expect(data[0]).toBe('M'.charCodeAt(0));
|
||||
expect(data[1]).toBe(4); // ABI version
|
||||
expect(data[1]).toBe(5); // ABI version
|
||||
expect(data[2]).toBe(MpyFeatureFlags.MICROPY_PY_BUILTINS_STR_UNICODE);
|
||||
expect(data[3]).toBe(31); // small int bits
|
||||
});
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
import { CompileResult, compile as mpyCrossCompile } from '@pybricks/mpy-cross-v4';
|
||||
import { CompileResult, compile as mpyCrossCompile } from '@pybricks/mpy-cross-v5';
|
||||
import { call, put, takeEvery } from 'redux-saga/effects';
|
||||
import {
|
||||
MpyActionType,
|
||||
|
||||
Reference in New Issue
Block a user