From 7adbb12a0f572bd0fa83c32fcb6f21dfa6c4f3b5 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 24 Jan 2020 21:03:28 -0800 Subject: [PATCH] bump pxt 5.32.10 (#2586) * bump pxt * updated shims --- docs/projects.md | 6 ++++++ docs/projects/SUMMARY.md | 5 +++++ libs/core/_locales/core-jsdoc-strings.json | 9 ++++++++- libs/core/shims.d.ts | 6 ++++++ package.json | 4 ++-- 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/docs/projects.md b/docs/projects.md index 59c90cd8..ea6c8d5b 100644 --- a/docs/projects.md +++ b/docs/projects.md @@ -63,6 +63,11 @@ "url": "/behind-the-makecode-hardware", "imageUrl": "/static/mb/behindhardware/leds.jpg" }, + { + "name": "Science Experiments", + "url": "/science-experiments", + "imageUrl": "/static/mb/science-experiments/data-collection.jpg" + }, { "name": "Coding Cards", "url": "/coding-cards", @@ -85,5 +90,6 @@ [Blocks To JavaScript](/courses/blocks-to-javascript), [Courses](/courses), [Behind the MakeCode Hardware](/behind-the-makecode-hardware), +[Science Experiments](/science-experiments), [Coding Cards](/coding-cards) diff --git a/docs/projects/SUMMARY.md b/docs/projects/SUMMARY.md index ee5043de..dba1993d 100644 --- a/docs/projects/SUMMARY.md +++ b/docs/projects/SUMMARY.md @@ -95,6 +95,11 @@ * [Radio](https://youtu.be/Re3H2ISfQE8) * [Servo Motor](https://youtu.be/okxooamdAP4) * [Speakers](https://youtu.be/cxfPNc4Wefo) +* [Science Experiments](/science-experiments) + * [Data Collection](https://youtu.be/tZy9Ev21B4c) + * [Population Trait Counter](https://youtu.be/NNZEMiJHY2o) + * [Temperature Sensor](https://youtu.be/pHDYsy6xyE4) + * [Soil Moisture Sensor](https://youtu.be/n0WRQf11Pzo) * [Coding Cards](/coding-cards) * [Make a Digital Balance](https://drive.google.com/open?id=1Tl80unLA5_Zwkymh1flSbwuZbCIqSOxQ) * [Make a Digital Dice](https://drive.google.com/open?id=1iW75z-7maJ3qixwv9Yuj6rA5U387qVpg) diff --git a/libs/core/_locales/core-jsdoc-strings.json b/libs/core/_locales/core-jsdoc-strings.json index 3c46bb0c..8c9f35c5 100644 --- a/libs/core/_locales/core-jsdoc-strings.json +++ b/libs/core/_locales/core-jsdoc-strings.json @@ -55,6 +55,7 @@ "Buffer.getNumber": "Read a number in specified format from the buffer.", "Buffer.getUint8": "Reads an unsigned byte at a particular location", "Buffer.indexOf": "Return position of other buffer in current buffer", + "Buffer.isReadOnly": "Returns false when the buffer can be written to.", "Buffer.length": "Returns the length of a Buffer object.", "Buffer.rotate": "Rotate buffer left in place.\n\n\n\nstart. eg: -1", "Buffer.rotate|param|length": "number of elements in buffer. If negative, length is set as the buffer length minus", @@ -193,11 +194,17 @@ "String.indexOf|param|start": "optional start index for the search", "String.isEmpty": "Returns a value indicating if the string is empty", "String.length": "Returns the length of a String object.", + "String.replace": "Return the current string with the first occurence of toReplace\nreplaced with the replacer\n\n\nor a function that accepts the substring and returns the replacement string.", + "String.replaceAll": "Return the current string with each occurence of toReplace\nreplaced with the replacer\n\n\nor a function that accepts the substring and returns the replacement string.", + "String.replaceAll|param|replacer": "either the string that replaces toReplace in the current string,", + "String.replaceAll|param|toReplace": "the substring to replace in the current string", + "String.replace|param|replacer": "either the string that replaces toReplace in the current string,", + "String.replace|param|toReplace": "the substring to replace in the current string", "String.slice": "Return a substring of the current string.", "String.slice|param|end": "one-past-last character index", "String.slice|param|start": "first character index; can be negative from counting from the end, eg:0", "String.split": "Splits the string according to the separators", - "String.split|param|separator": "@param limit ", + "String.split|param|separator": "@param limit", "String.substr": "Return a substring of the current string.", "String.substr|param|length": "number of characters to extract", "String.substr|param|start": "first character index; can be negative from counting from the end, eg:0", diff --git a/libs/core/shims.d.ts b/libs/core/shims.d.ts index 1f3f114b..460bf14a 100644 --- a/libs/core/shims.d.ts +++ b/libs/core/shims.d.ts @@ -894,6 +894,12 @@ declare interface Buffer { //% shim=BufferMethods::getUint8 getUint8(off: int32): int32; + /** + * Returns false when the buffer can be written to. + */ + //% shim=BufferMethods::isReadOnly + isReadOnly(): boolean; + /** * Writes an unsigned byte at a particular location */ diff --git a/package.json b/package.json index a771e06e..c95c88a3 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "@types/web-bluetooth": "0.0.4" }, "dependencies": { - "pxt-common-packages": "6.18.2", - "pxt-core": "5.32.3" + "pxt-common-packages": "6.18.4", + "pxt-core": "5.32.10" } }