Add changenotes for PRs #9305 and #9337

This commit is contained in:
yaisog
2025-11-12 18:25:40 +01:00
committed by GitHub
parent d5762b1fbb
commit a8da7e0207
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
title: $:/changenotes/5.4.0/#9305
description: Let tiddler modules overwrite shadow modules with the same exports but different names
release: 5.4.0
tags: $:/tags/ChangeNote
change-type: bugfix
change-category: internal
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9305
github-contributors: yaisog
Tiddlers were previously processed before shadows during module registration. The shadow modules registration algorithm only checked for a matching title to prevent overwriting, but a differently named tiddler with the same exports would be overwritten by a shadow. This change swaps the order of $tw.wiki.defineTiddlerModules() and $tw.wiki.defineShadowModules() in boot.js, so that tiddlers are processed after shadows and can therefore override them.
Each group (tiddlers or shadows) is sorted alphabetically, so plugin shadows would previously correctly overwrite core shadows (assuming their name starts with $:/plugins/), which remains unchanged. This change only affects module tiddlers that have the same export as a shadow, but a different name.

View File

@@ -0,0 +1,18 @@
title: $:/changenotes/5.4.0/#9337
description: Modify output of some math operators for empty inputs
release: 5.4.0
tags: $:/tags/ChangeNote
change-type: bugfix
change-category: filters
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9337
github-contributors: yaisog
The following math operators are changed to output an empty list when the input list is empty:
* sum[]
* product[]
* maxall[]
* minall[]
* average[]
* variance[]
* standard-deviation[]

View File

@@ -0,0 +1,17 @@
title$:/changenotes/5.4.0/#9337/compatibility-break/math-filters
changenote: $:/changenotes/5.4.0/#9337
created - 20251112152513384
modified - 20251112152513384
tags: $:/tags/ImpactNote
description: filter output with empty input changes for some math filter operators
impact-type: compatibility-break
These math operators will now output an empty list when the input list is empty:
* sum[] - previously returned 0
* product[] - previously returned 1
* maxall[] - previously returned -Infinity
* minall[] - previously returned Infinity
* average[] - previously returned NaN
* variance[] - previously returned NaN
* standard-deviation[] - previously returned NaN