mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 06:04:55 +00:00
13
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9305.tid
Normal file
13
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9305.tid
Normal 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.
|
||||
|
||||
18
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9337.tid
Normal file
18
editions/tw5.com/tiddlers/releasenotes/5.4.0/#9337.tid
Normal 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[]
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user