Commit Graph
821 Commits
Author SHA1 Message Date
dependabot[bot] e9067f8fae build(deps-dev): bump jest-mock-extended from 1.0.18 to 2.0.1
Bumps [jest-mock-extended](https://github.com/marchaos/jest-mock-extended) from 1.0.18 to 2.0.1.
- [Release notes](https://github.com/marchaos/jest-mock-extended/releases)
- [Commits](https://github.com/marchaos/jest-mock-extended/commits)

---
updated-dependencies:
- dependency-name: jest-mock-extended
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 16:12:11 -05:00
dependabot[bot] 64abc09ffa build(deps): bump @types/node from 12.20.16 to 12.20.19
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.16 to 12.20.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-12 16:04:16 -05:00
David Lechner ce8f59e0c2 firmware: fix flashing on Android
Hubs that don't use the minimum chunk size will fail on Android since
it defaults to the smallest possible MTU.

Issue: https://github.com/pybricks/support/issues/403
2021-08-12 15:55:24 -05:00
David Lechner 56c739fa08 os: add isAndroid() function
This will be used to test if the app is running on Android.
2021-08-12 15:55:24 -05:00
David Lechner a0130ada99 yarn upgrade 2021-08-12 15:55:24 -05:00
David Lechner 2dfd7e9d42 CHANGELOG: start unreleased section 2021-08-12 15:55:24 -05:00
David Lechner b0b15e1bbe CHANGELOG: fix typo 2021-08-12 15:55:24 -05:00
David Lechner f402071d38 Merge pull request #496 from pybricks/dlech
v1.1.0-beta.3
2021-07-20 12:48:30 -05:00
David Lechner 980af3edeb v1.1.0-beta.3 v1.1.0-beta.3 2021-07-20 12:42:49 -05:00
David Lechner 7ba87db98b Merge remote-tracking branch 'origin/master' into dlech 2021-07-20 12:38:53 -05:00
dependabot[bot] 206f29cc58 build(deps): bump @types/file-saver from 2.0.2 to 2.0.3
Bumps [@types/file-saver](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/file-saver) from 2.0.2 to 2.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/file-saver)

---
updated-dependencies:
- dependency-name: "@types/file-saver"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-20 11:25:43 -05:00
dependabot[bot] 86d05c503e build(deps-dev): bump eslint-config-typed-fp from 1.4.1 to 1.5.0
Bumps [eslint-config-typed-fp](https://github.com/danielnixon/eslint-config-typed-fp) from 1.4.1 to 1.5.0.
- [Release notes](https://github.com/danielnixon/eslint-config-typed-fp/releases)
- [Commits](https://github.com/danielnixon/eslint-config-typed-fp/commits)

---
updated-dependencies:
- dependency-name: eslint-config-typed-fp
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:52:18 -05:00
dependabot[bot] 0484e5bf91 build(deps-dev): bump jest-mock-extended from 1.0.16 to 1.0.18
Bumps [jest-mock-extended](https://github.com/marchaos/jest-mock-extended) from 1.0.16 to 1.0.18.
- [Release notes](https://github.com/marchaos/jest-mock-extended/releases)
- [Commits](https://github.com/marchaos/jest-mock-extended/commits)

---
updated-dependencies:
- dependency-name: jest-mock-extended
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:42:43 -05:00
dependabot[bot] d9bbc542f1 build(deps): bump @blueprintjs/core from 3.46.0 to 3.47.0
Bumps [@blueprintjs/core](https://github.com/palantir/blueprint/tree/HEAD/packages/core) from 3.46.0 to 3.47.0.
- [Release notes](https://github.com/palantir/blueprint/releases)
- [Changelog](https://github.com/palantir/blueprint/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/palantir/blueprint/commits/@blueprintjs/core@3.47.0/packages/core)

---
updated-dependencies:
- dependency-name: "@blueprintjs/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:28:07 -05:00
dependabot[bot] eb09aab987 build(deps): bump @types/react from 16.14.10 to 16.14.11
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.14.10 to 16.14.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:20:19 -05:00
dependabot[bot] 604615526d build(deps): bump @types/react-splitter-layout from 3.0.1 to 3.0.2
Bumps [@types/react-splitter-layout](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-splitter-layout) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-splitter-layout)

---
updated-dependencies:
- dependency-name: "@types/react-splitter-layout"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 18:07:45 -05:00
dependabot[bot] 34812194cf build(deps): bump @testing-library/user-event from 13.1.9 to 13.2.0
Bumps [@testing-library/user-event](https://github.com/testing-library/user-event) from 13.1.9 to 13.2.0.
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v13.1.9...v13.2.0)

---
updated-dependencies:
- dependency-name: "@testing-library/user-event"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:59:03 -05:00
dependabot[bot] 48afab264d build(deps-dev): bump eslint from 7.30.0 to 7.31.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.30.0 to 7.31.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.30.0...v7.31.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:49:26 -05:00
dependabot[bot] 16d095d02c build(deps): bump @shopify/react-i18n from 6.0.4 to 6.1.0
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n) from 6.0.4 to 6.1.0.
- [Release notes](https://github.com/Shopify/quilt/releases)
- [Changelog](https://github.com/Shopify/quilt/blob/main/packages/react-i18n/CHANGELOG.md)
- [Commits](https://github.com/Shopify/quilt/commits/@shopify/react-i18n@6.1.0/packages/react-i18n)

---
updated-dependencies:
- dependency-name: "@shopify/react-i18n"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:40:35 -05:00
dependabot[bot] f4deab5f64 build(deps): bump @types/react-redux from 7.1.16 to 7.1.18
Bumps [@types/react-redux](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-redux) from 7.1.16 to 7.1.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-redux)

---
updated-dependencies:
- dependency-name: "@types/react-redux"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:31:46 -05:00
dependabot[bot] bb05f698ee build(deps): bump monaco-editor-webpack-plugin from 4.0.0 to 4.1.1
Bumps [monaco-editor-webpack-plugin](https://github.com/Microsoft/monaco-editor-webpack-plugin) from 4.0.0 to 4.1.1.
- [Release notes](https://github.com/Microsoft/monaco-editor-webpack-plugin/releases)
- [Commits](https://github.com/Microsoft/monaco-editor-webpack-plugin/commits)

---
updated-dependencies:
- dependency-name: monaco-editor-webpack-plugin
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:23:48 -05:00
dependabot[bot] f33ffefad2 build(deps): bump license-webpack-plugin from 2.3.19 to 2.3.20
Bumps [license-webpack-plugin](https://github.com/xz64/license-webpack-plugin) from 2.3.19 to 2.3.20.
- [Release notes](https://github.com/xz64/license-webpack-plugin/releases)
- [Changelog](https://github.com/xz64/license-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/xz64/license-webpack-plugin/compare/v2.3.19...v2.3.20)

---
updated-dependencies:
- dependency-name: license-webpack-plugin
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:11:38 -05:00
David Lechner a876a7a43c update changelog for firmware v3.1.0a3 2021-07-19 17:06:39 -05:00
dependabot[bot] 1760867ee6 build(deps): bump @pybricks/firmware
Bumps [@pybricks/firmware](https://github.com/pybricks/pybricks-micropython/tree/HEAD/npm/firmware) from 4.13.0-alpha.2 to 4.13.0-alpha.3.
- [Release notes](https://github.com/pybricks/pybricks-micropython/releases)
- [Changelog](https://github.com/pybricks/pybricks-micropython/blob/master/npm/firmware/CHANGELOG.md)
- [Commits](https://github.com/pybricks/pybricks-micropython/commits/HEAD/npm/firmware)

---
updated-dependencies:
- dependency-name: "@pybricks/firmware"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 17:03:38 -05:00
dependabot[bot] 607e7fc071 build(deps): bump @types/react-dom from 16.9.13 to 16.9.14
Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.13 to 16.9.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: "@types/react-dom"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 16:54:49 -05:00
dependabot[bot] c770cce687 build(deps-dev): bump eslint-plugin-total-functions from 4.7.2 to 4.9.0
Bumps [eslint-plugin-total-functions](https://github.com/danielnixon/eslint-plugin-total-functions) from 4.7.2 to 4.9.0.
- [Release notes](https://github.com/danielnixon/eslint-plugin-total-functions/releases)
- [Commits](https://github.com/danielnixon/eslint-plugin-total-functions/commits)

---
updated-dependencies:
- dependency-name: eslint-plugin-total-functions
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 16:45:33 -05:00
dependabot[bot] b167c2a3c0 build(deps-dev): bump @typescript-eslint/eslint-plugin
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.28.1 to 4.28.3.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.28.3/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-19 16:36:59 -05:00
dependabot[bot] fcbf67db3c build(deps): bump @types/node from 12.20.15 to 12.20.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 12.20.15 to 12.20.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 18:06:06 -05:00
dependabot[bot] 37841071ee build(deps): bump @types/jest from 26.0.23 to 26.0.24
Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.23 to 26.0.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest)

---
updated-dependencies:
- dependency-name: "@types/jest"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 17:56:06 -05:00
David Lechner 6e48b5e1e3 Merge pull request #476 from pybricks/dlech
Updates
2021-07-08 17:03:48 -05:00
David Lechner 39b6e4b985 Merge branch 'master' into dlech 2021-07-08 16:58:26 -05:00
dependabot[bot] 34aac1eb33 build(deps): bump @types/redux-logger from 3.0.8 to 3.0.9
Bumps [@types/redux-logger](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/redux-logger) from 3.0.8 to 3.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/redux-logger)

---
updated-dependencies:
- dependency-name: "@types/redux-logger"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-08 16:54:42 -05:00
David Lechner a0467aed4c public: add icons with beta badge
This makes it easier to tell versions apart when beta and non-beta are
installed at the same time.

Fixes: https://github.com/pybricks/support/issues/375
2021-07-08 16:46:36 -05:00
David Lechner 2ba6d88c49 editor: remove gutter background override
This was carried over from the Ace editor, but doesn't work well with
the Monaco editor.

Fixes: https://github.com/pybricks/pybricks-code/issues/472
2021-07-08 15:57:16 -05:00
David Lechner 9ee2d1f102 editor: clean up keywords and builtins
- remove python 2 stuff
- separate builtins from keywords
2021-07-08 15:56:27 -05:00
David Lechner ad948dc152 editor: copy python language configuration
This copies the language configuration from https://github.com/microsoft/monaco-languages/blob/d7cc098c481059f63d51ce3753975c8ca8ab6030/src/python/python.ts

This fixes a number of editor features, like auto-indent.

Fixes: https://github.com/pybricks/pybricks-code/issues/470
2021-07-08 15:55:50 -05:00
David Lechner 4b0dc90e8d editor: improve template snippets
- fix always being suggested
- add more imports
- reduce duplicated code

Fixes https://github.com/pybricks/pybricks-code/issues/471
2021-07-08 15:55:03 -05:00
dependabot[bot] e829da130e build(deps): bump @types/web-bluetooth from 0.0.9 to 0.0.10
Bumps [@types/web-bluetooth](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/web-bluetooth) from 0.0.9 to 0.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/web-bluetooth)

---
updated-dependencies:
- dependency-name: "@types/web-bluetooth"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-06 11:36:03 -05:00
dependabot[bot] 65d5a90103 build(deps-dev): bump eslint from 7.29.0 to 7.30.0
Bumps [eslint](https://github.com/eslint/eslint) from 7.29.0 to 7.30.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v7.29.0...v7.30.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-06 11:26:16 -05:00
dependabot[bot] 4af0beb925 build(deps): bump @craco/craco from 6.1.2 to 6.2.0
Bumps [@craco/craco](https://github.com/gsoft-inc/craco) from 6.1.2 to 6.2.0.
- [Release notes](https://github.com/gsoft-inc/craco/releases)
- [Commits](https://github.com/gsoft-inc/craco/compare/v6.1.2...v6.2.0)

---
updated-dependencies:
- dependency-name: "@craco/craco"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-06 11:17:30 -05:00
David Lechner f9d354e988 CHANGELOG: fix typo 2021-07-06 11:03:48 -05:00
dependabot[bot] 52c98c2a41 build(deps): bump web-vitals from 2.0.1 to 2.1.0
Bumps [web-vitals](https://github.com/GoogleChrome/web-vitals) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/GoogleChrome/web-vitals/releases)
- [Changelog](https://github.com/GoogleChrome/web-vitals/blob/main/CHANGELOG.md)
- [Commits](https://github.com/GoogleChrome/web-vitals/compare/v2.0.1...v2.1.0)

---
updated-dependencies:
- dependency-name: web-vitals
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-06 11:02:51 -05:00
David Lechner fcb68901cb v1.1.0-beta.2 2021-07-06 10:53:56 -05:00
David Lechner 3d6383ae49 Pybricks firmware v3.1.0a2 2021-07-06 10:53:56 -05:00
David Lechner 4e2902730a hub: fix buttons not enabled after connection
A previous commit broke buttons after connecting since state all state
transitions were changed to be ignored if the current state was
"disconnected". This made it impossible to get into any other state.

This brings back use of the "unknown" state upon initial connection
to provide a path out of the "disconnected" state.

Fixes: 7a5aa75894
2021-07-06 10:53:56 -05:00
David Lechner d95c550248 editor: change from ace to monaco
This replaces the ace editor with the monaco editor. It fixes quite a
few small paper-cut bugs and should be easier to add code completion
to in the future.

Many of the snippets are omitted but can be added back later if needed.
Otherwise, we have tried to preserve the existing look and feel as much
as possible.
2021-07-02 20:59:09 -05:00
David Lechner c3851e7139 tests: use matchMedia polyfill
This makes testing code that uses window.matchMedia() work better since
it mocks it globally.
2021-07-02 20:59:09 -05:00
dependabot[bot] fbc4ecadbe build(deps): bump typescript from 4.3.4 to 4.3.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.4...v4.3.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 14:37:51 -05:00
dependabot[bot] 5999a8ca66 build(deps): bump @pybricks/ide-docs from 1.4.0 to 1.5.0
Bumps [@pybricks/ide-docs](https://github.com/pybricks/pybricks-api/tree/HEAD/doc/ide) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/pybricks/pybricks-api/releases)
- [Changelog](https://github.com/pybricks/pybricks-api/blob/master/doc/ide/CHANGELOG.md)
- [Commits](https://github.com/pybricks/pybricks-api/commits/@pybricks/ide-docs/v1.5.0/doc/ide)

---
updated-dependencies:
- dependency-name: "@pybricks/ide-docs"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 14:30:03 -05:00
dependabot[bot] 173a2b0073 build(deps): bump @shopify/react-i18n from 6.0.3 to 6.0.4
Bumps [@shopify/react-i18n](https://github.com/Shopify/quilt/tree/HEAD/packages/react-i18n) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/Shopify/quilt/releases)
- [Changelog](https://github.com/Shopify/quilt/blob/main/packages/react-i18n/CHANGELOG.md)
- [Commits](https://github.com/Shopify/quilt/commits/@shopify/react-i18n@6.0.4/packages/react-i18n)

---
updated-dependencies:
- dependency-name: "@shopify/react-i18n"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-01 14:23:16 -05:00