From af69341bd1e6a51952ab9749402c1f3126a2a2fd Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Thu, 15 Feb 2024 12:16:46 +1100 Subject: [PATCH] Minor changelog updates --- CHANGELOG.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b84d604f..b5d395dff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,19 +8,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Added -- Standard library functions (e.g. `random`, `round_places`, `dice`) have been moved to the core Yarn Spinner library. -- Added a `format` function to the standard library, this works identical to the C# `string.Format`. +- Standard library functions (e.g. `random`, `round_places`, `dice`) have been moved from Yarn Spinner for Unity to the core Yarn Spinner library. +- Added a `format` function to the standard library. + - This method works identically to the C# `string.Format`, but currently only accepts one parameter. + - `format("{0}", 123)` will return the string "123". + - `format("${0:F2}", 0.451)` will return the string "$0.45". + - For more information on string formatting, see the [.NET documentation on numeric formatting strings](https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings#standard-format-specifiers). ### Changed - Updated the schema for .ysls.json files: - Commands may no longer specify a return type. - - Functions must now specify a return type. + - Functions _must_ now specify a return type. - Changed the definition of 'types' to be an enum of "string", "number", "bool", or "any". - Enums in JSON schema are type sensitive, so a warning will be issued for types that have capital letters. To fix these warnings, change your type names in your `.ysls.json` file to be lowercase. (These warnings have no impact on your Yarn script editing experience or runtime behaviour.) -- Empty nodes will no longer be included in the compiled output - - a warning diagnostic will be generated for each empty node -- Fixed a bug where set-referencing inferred value set statements would crash the compiler +- Empty nodes will no longer be included in the compiled output. + - A warning diagnostic will be generated for each empty node. +- Fixed a bug where self-referencing inferred value set statements (e.g. `<>`, where `$a` is not explicitly declared) would crash the compiler. - The language server no longer truncates XML documentation comments when it reaches a nested XML node. - Updated dependency versions: - Google.Protobuf: Moved from `3.15.0` to `3.25.2`.