diff --git a/CHANGELOG.md b/CHANGELOG.md index a4ff1d2c..0e4ae6f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Nothing worth mentioning yet. + ## [0.40.8] - 2025-06-22 ### Fixed diff --git a/playlet-lib/src/components/Services/Innertube/NodesParser.bs b/playlet-lib/src/components/Services/Innertube/NodesParser.bs index aeeb4afc..e3eaa977 100644 --- a/playlet-lib/src/components/Services/Innertube/NodesParser.bs +++ b/playlet-lib/src/components/Services/Innertube/NodesParser.bs @@ -1,6 +1,6 @@ ' Throw an error if an unknown node is encountered. ' Only used in debug mode. -#const THROW_ON_UNKNOWN_NODES = true +#const DEBUG_THROW_ON_UNKNOWN_NODES = true import "pkg:/source/utils/Logging.bs" import "pkg:/source/utils/ObjectUtils.bs" @@ -26,7 +26,7 @@ namespace Innertube directive = directives[key] if directive = invalid LogWarn("Unknown node", key, `\n`, FormatJson(nodeData[key])) - #if THROW_ON_UNKNOWN_NODES + #if DEBUG_THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown node: " + key #end if @@ -968,7 +968,7 @@ namespace Innertube end if LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData)) - #if THROW_ON_UNKNOWN_NODES + #if DEBUG_THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown content type: " + contentType #end if @@ -1179,7 +1179,7 @@ namespace Innertube end if LogWarn("Unknown content type:", contentType, `\n`, FormatJson(nodeData)) - #if THROW_ON_UNKNOWN_NODES + #if DEBUG_THROW_ON_UNKNOWN_NODES #if DEBUG throw "Unknown content type: " + contentType #end if