Skip to content

Commit

Permalink
Minor changelog updates
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Feb 15, 2024
1 parent d8d500d commit af69341
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. `<<set $a = $a + 1>>`, 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`.
Expand Down

0 comments on commit af69341

Please sign in to comment.