From 03a82d6bcddaa7b143e01b6176bc499846206666 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Wed, 19 Sep 2018 16:09:05 -0700 Subject: [PATCH] upgrade to pxt v4 (#783) * upgrade to v4 * Update pxt-common-packages * bump to 1.0 --- fieldeditors/field_music.ts | 2 +- fieldeditors/field_ports.ts | 2 +- package.json | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fieldeditors/field_music.ts b/fieldeditors/field_music.ts index 96e5f751..359d5793 100644 --- a/fieldeditors/field_music.ts +++ b/fieldeditors/field_music.ts @@ -20,7 +20,7 @@ export class FieldMusic extends pxtblockly.FieldImages implements Blockly.FieldC private categoriesCache_: string[]; constructor(text: string, options: FieldMusicOptions, validator?: Function) { - super(text, { sort: true, data: options.data }, validator); + super(text, { blocksInfo: options.blocksInfo, sort: true, data: options.data }, validator); this.columns_ = parseInt(options.columns) || 4; this.width_ = parseInt(options.width) || 380; diff --git a/fieldeditors/field_ports.ts b/fieldeditors/field_ports.ts index 8131c446..16adbcac 100644 --- a/fieldeditors/field_ports.ts +++ b/fieldeditors/field_ports.ts @@ -11,7 +11,7 @@ export class FieldPorts extends pxtblockly.FieldImages implements Blockly.FieldC public isFieldCustom_ = true; constructor(text: string, options: FieldPortsOptions, validator?: Function) { - super(text, { sort: true, data: options.data }, validator); + super(text, { blocksInfo: options.blocksInfo, sort: true, data: options.data }, validator); this.columns_ = parseInt(options.columns) || 4; this.width_ = parseInt(options.width) || 300; diff --git a/package.json b/package.json index 0ab9fe79..eb8ff198 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pxt-ev3", - "version": "0.4.3", + "version": "1.0.0", "description": "LEGO MINDSTORMS EV3 for Microsoft MakeCode", "private": true, "keywords": [ @@ -39,8 +39,8 @@ "webfonts-generator": "^0.4.0" }, "dependencies": { - "pxt-common-packages": "0.23.54", - "pxt-core": "3.21.7" + "pxt-common-packages": "0.23.55", + "pxt-core": "4.0.1" }, "scripts": { "test": "node node_modules/pxt-core/built/pxt.js travis"