13260 Commits
Author SHA1 Message Date
Pavel Roskin f9b7c7a6a8 Add health check URL for load balancers (#10079)
The health check URL allows load balancers such as ALB and nginx to
verify that the server is running and healthy. The check does not
require authentication credentials.

'GET /healthz' is a widely adopted convention.
2026-11-29 09:06:56 +01:00
Mario Pietsch fa70cee69c Fix date parsing and DateFormat template tokens (#9981)
* Move date tests into their own spec file

Take the two date specs out of test-utils.js and grow them into full
coverage of every token DateFormat documents.

Build every date with the local time constructor, and take the two UTC
expectations from toISOString(), so no assertion restates the code it is
checking.

* Default month and day of a truncated datestamp

A date field holding only a year and a month, for example 202608, built
an invalid date that setUTCFullYear() then rebuilt from the epoch as
1 January, so the month was silently lost.

* Substitute zero and empty valued date tokens

Test the token match rather than the substituted value, so that a value
of zero is not mistaken for no match at all.

* Render hh, mm, ss, XXX and TIMESTAMP when they are zero, and render
  the empty alternative of {era:BCE||CE}
* Stop re-reading the character after such a token as literal text,
  which is why mmss at ten o'clock reported "ss"

* Render a zero timezone offset as +00:00

ISO 8601 has no negative zero offset, and TZD had no zero case.

* Keep summer time out of date arithmetic

Read the UTC components of a date throughout, rather than measuring a
summer time instant against a standard time reference or shifting the
instant by its own offset.

* Correct WW, 0WW, wYYYY and wYY, which were a week out in the hour
  after local midnight in years whose 1 January is a Thursday, and
  ddddd and 0ddddd, which were a day out in the same hour
* Correct a template starting with [UTC], which was out by the summer
  time offset around a transition, and with it the format:timestamp
  filter operator whose default template starts that way
* Report TIMESTAMP as milliseconds since the epoch, which cannot depend
  on the display template, and TZD as +00:00 under [UTC]
* Add $tw.utils.getDayOfYear(), returning 1 to 365, or 366 in a leap
  year

* Show the last two digits of the year in YY

YY and wYY subtracted 2000 instead of taking the last two digits, so
1999 rendered as -1 and 2100 as 100. Years from 2000 to 2099 are
unaffected, which is why this went unnoticed.

* Write a fixed width year in a datestamp

Every component of a datestamp was padded except the year, so a date
before the year 1000 produced a short string that parsed back as a
different date.

* Pad a negative year to four digits

pad() pads with leading zeros, so a short negative year came out as
0-14 rather than -0014. Keep the sign outside the padding.

* Keep an escape out of the substituted text

Take a backslash escape out of the template while reading it, not out
of the finished string, where it consumed whatever the following token
had substituted and left \0MM rendering as a bare month.

Record at the end of the spec file which sweeps were run out of band,
which timezones they used and why, since none of that fits in a spec.

* Document the datestamp format shortcut

The whole template [UTC]YYYY0MM0DD0hh0mm0ssXXX returns the stored
datestamp with padded milliseconds, which NowMacro relies on. Say so
where XXX is defined, since XXX alone is not padded.

Describe the backslash escape as well, now that it takes the character
out of the template rather than out of the finished text.

* Add the release note

* Point the release notes at PR 9981

* Add created and modified to the impact notes

* Move date code comments into the tests

Keep core small by leaving comments only where the next line surprises

* Remove the date formatting and parsing comments from boot.js and
  utils.js, except the three on non-obvious Date API behaviour
* Keep their rationale in test-dates.js next to the tests that guard it
* Test that [UTC] leaves TIMESTAMP unchanged and sets TZD to +00:00
2026-11-28 06:46:05 +01:00
Mario Pietsch 2fb52ef518 Replace nested $set with $let in the plugin table (#9990)
* Replace nested $set with $let in the plugin table

The plugin-table macro set two variables by nesting two $set widgets, where
one $let sets both.

* Collapse the two nested $set widgets into a single $let
* Separate the plugin list with blank lines so it keeps block position

* Use procedures instead of macros in the plugin table

Remove text substitution from the Control Panel plugin list without
changing its rendered HTML

* Turn plugin-table and lingo-base into procedures and read the plugin
  type as a variable
* Call tabs with $transclude instead of $macrocall
* Use \parsermode inline so the body can be indented without blank lines
2026-11-28 06:45:04 +01:00
Mario Pietsch 2c76acf3ed Improved CLI text output Translations (#9724)
* clean up TW cli output

* preserver newlines in pre elements

* Collapse runs of blank lines

* Add TW version to --help command

* improve parameter readability with indentation. This also works withe the rendered HTML output in the wiki

* indent bullet points for formatted-text output

* Improve example section indentation. Also works for HTML rendered output

* Adjust cli texts for all other existing languages. Only format change not content change

* update typos de-DE

* Normalise sv-SE help files to LF line endings

Convert the two CRLF help tiddlers to LF; no content change.

* Add ChangeNote

* Fix command names and markup in translated help

Show command names as code so WikiText does not turn "--" into a dash

* Write quoted --fetch, --savetiddler, --init, --server and --output as code
* Close stray backticks in ca-ES and hi-IN help
* Add blank lines before hi-IN code blocks and the missing fence in default
* Rebuild the pa-IN default, init, rendertiddlers, server and verbose markup

* Add formatted plain text impact note

Show plugin authors how to adapt code that parses the old "* " list items
2026-11-27 10:45:40 +00:00
Mario PietschandSaq Imtiaz 06d277cad7 BibTeX plugin: Harden import, add search and cite (#10073)
* BibTeX plugin: Harden import, add search and cite

Stop bad input from hanging an import or losing a whole file, and add opt-in
plain text values, a search tab and a citation template

* Keep the good entries and list each bad one with its line in "BibTeX import
  error". Fix the hang on a final % line without a newline
* Accept @string macros, parentheses, entries without fields, missing commas
  and stray @ signs. Files that imported before give the same result
* Add $:/config/BibTeX/Standard, off by default, to apply BibTeX's brace rules
  and convert values to plain text, such as M{\"u}ller to Müller
* Add a BibTeX search results tab covering all entry fields, shown whenever
  the plugin is installed
* Add citeAPA, so {{Dalgaard2001||citeAPA}} links as (Dalgaard, 2001)
* Note in the readme that bibtexParse.js now differs from bibtexParseJs

* BibTeX plugin: Add change note and issue link

Record the import changes for the 5.5.0 release notes and tie the tests to
the issue they guard

* Add the change note, keyed to the pull request
* Link issue #10072 from test-bibtex.js

---------

Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
2026-11-27 11:40:39 +01:00
Mario PietschandSaq Imtiaz 4026d68cf8 Fix indexer rebuilds on window resize (#10067)
* Stop reloading the info plugin on window resize

Update only the window dimensions that changed on each resize frame, so a
resize no longer rebuilds every indexer or refreshes the page twice

* Add $tw.wiki.updatePluginTiddlers to change individual shadow tiddlers of a
  registered plugin and pass them to the indexers' update
* Use it from startup/info.js once the info plugin has been read
* Ignore resize events that leave the size unchanged
* Add the 5.5.0 change note

Fixes #10066

* Extend updatePluginTiddlers spec coverage

Guard #10066 and each path of the method, so that breaking one fails a spec

* Run startup/info.js with a fake info module, because Node has no window
* Cover cache clearing, indexer state, entry checks and removal order
* Split add and remove, so each title cache reset is checked alone

* Apply suggestion from @saqimtiaz

* Apply suggestion from @saqimtiaz

---------

Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
2026-11-27 11:22:41 +01:00
Mario Pietsch 0521bc159e Give each tiddler info tool its own block (#9989)
* Give each tiddler info tool its own block

The Tools tab relied on blank lines to space its rows, which is what put a
paragraph around every one of them.

* Wrap each toolbar row in a div, the same way the More sidebar already
  spaces its tag rows
* Collapse three nested $set into one $let, so the blank lines that
  separated them are no longer needed
* Add tc-info-list-item as a hook for users and core, with no styling of
  its own

* Add change note for #9989
2026-11-27 11:20:05 +01:00
Mario PietschandSaq Imtiaz 37d93f1672 Fix link widget tooltip and href generation (#9979)
* Add link widget test suites

Cover every branch of the link widget: render, renderLink, execute,
refresh and handleClickEvent.

* Split the specs by input, one file for input meant to work and one for
  input that is hostile or malformed
* Guard the tooltip recursion of #9976 and the href of #9977
* Give every spec the wikitext it renders, so it can be replayed by hand
* Point the data attributes spec at the new files

* Fix link widget tooltip and href generation

Two independent faults, both in released versions, that put a broken
value into the rendered element.

* Render a tooltip containing a link as its text, instead of looping
  until the recursion guard trips and the tooltip reads a transclusion
  error
* Fall back to the ordinary href when a tv-filter-export-link filter
  matches nothing, instead of writing the string undefined

Fixes #9976 and #9977

* Add change note for the link widget fixes

Describe the tooltip and href fixes for the 5.5.0 release notes.

* Apply suggestion from @saqimtiaz

* Apply suggestion from @saqimtiaz

---------

Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com>
2026-11-27 11:19:14 +01:00
Mario Pietsch df0f1b1672 Honour the navigation settings inside modals (#10002)
A modal builds its own navigator, which never received the settings the
page navigator carries.

* Pass openLinkFromInsideRiver, openLinkFromOutsideRiver and relinkOnRename
  to the modal navigator
* Add regression specs and the 5.5.0 change note

Fixes #10001
2026-11-27 11:09:09 +01:00
Mario Pietsch 86b35034c9 Tag picker cancelpopups (#9996)
* Fix tag input closing the $:/Manager panel

Focussing the tag input in $:/Manager collapsed the expanded tiddler and
never opened the tag dropdown, because the tag-picker macro cancelled
every popup including the one that reveals the panel.

* Add a cancelPopups parameter to the tag-picker macro, defaulting to
  yes, so a caller that sits inside a popup can opt out
* Pass cancelPopups="no" from the Manager tag sidebar
* Document the parameter and cover both settings with specs

* Add change note for $:/Manager tag input fix
2026-11-27 10:08:59 +00:00
Mario Pietsch 12632c762d Fix spurious scrollbar in auto-height textareas (#9980)
* Fix spurious scrollbar in auto-height textareas

Absorb the browser's integer rounding of the measured height, so the
editor textarea no longer overflows at some combinations of line count
and browser zoom

Fixes #9972

* Rename change note to its pull request number

Key the change note by #9980 like the other 5.5.0 notes, and fill in the
github-links and github-contributors fields
2026-11-27 10:25:22 +01:00
Mario Pietsch 3e7cbf94de Fix malformed list tag in the plugins sidebar (#9984)
An extra angle bracket ended the tag early, leaving >/> as stray text and
wrapping the whole plugin list in a paragraph.
2026-11-27 10:23:08 +01:00
btheado 39c8972710 Fix actionValueHasChanged for range widget start and stop actions (#10086)
* Reproduce range widget action change flag regression

Add tests for actionValueHasChanged at drag start and stop, including unchanged, changed, repeated, and reversed drags. Preserve coverage of input and change events without a mouse drag. Five of the eight tests fail before the fix for #10085.

* Fix range widget action change flags

Capture the starting value at mouse-down so actionsStart reports no change and actionsStop compares against the current drag.

Fixes #10085

* Add release note for range action flag fix

* Added one level of indent in order to satisfy eslint
2026-11-26 17:36:20 +01:00
Joshua Fontany 7c20eaee37 Accept MIME type names in code fences (#10052)
* Accept MIME type names in code fences

* Add change note for MIME code fences
2026-11-17 10:43:47 +01:00
lin onetwo d42c92ecac Editor: support optional engine operations and cleanup (#10075)
* Editor: support optional engine operations and cleanup

* Docs: link the editor engine hooks change note

* Docs: use the required change note title format
2026-11-17 10:40:21 +01:00
lin onetwo eff95cda30 Fix browser caching for streamed static files (#10074)
* Fix browser caching for streamed static files

* Clarify static file caching release note

* Consolidate static file caching tests

* Use const and let in static file caching changes

* Align static file cache controls with server behavior
2026-11-17 10:37:24 +01:00
Mario Pietsch 1b0d009da0 Remove empty hidden div from edit template title (#10070)
Render nothing below the title field until the title has changed

* Replace the outer $reveal with a conditional, as a closed reveal leaves an
  empty div.tc-reveal in every edit frame
2026-11-17 06:33:18 +01:00
cdruan 058fb4d488 Markdown: Fix crash in inline look-ahead parsing (#10007)
* Markdown: Fix crash in inline look-ahead parsing

Fix improper state.pos updates in some TW inline rules during silent
mode. The error was exposed by updated markdown-it.

* Add change note

* Add markdown test cases

In addition to adding test tiddlers to editions/test/data/markdown/
folder, here are additional changes:

- Add markdown plugin to `tiddlywiki.info`.

- Add `config.multids`` file to turn on `$:/config/markdown/linkify`
  option. Markdown parser only reads config options once at start up.
  Therefore, this config file is needed to enable the option
  (default=false) in order to test linkify feature.
2026-11-17 06:27:24 +01:00
dependabot[bot] 97e644f0d7 Bump js-yaml from 4.3.1 to 4.3.2 (#10024)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/nodeca/js-yaml/blob/4.3.2/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.3.1...4.3.2)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 06:25:27 +01:00
Joshua Fontany 593afa0aba Render Spanish clearpassword example as code block (#10051) 2026-11-17 06:18:54 +01:00
Joshua Fontany abdc080427 Fix unclosed markup in shipped text (#10049)
* Fix unclosed markup in shipped text

* Leave Basic Authentication example to inline code fix
2026-11-17 06:16:59 +01:00
dependabot[bot] 4395e42534 Bump brace-expansion from 1.1.16 to 1.1.21 (#10059)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion) from 1.1.16 to 1.1.21.
- [Release notes](https://github.com/juliangruber/brace-expansion/releases)
- [Commits](https://github.com/juliangruber/brace-expansion/compare/v1.1.16...v1.1.21)

---
updated-dependencies:
- dependency-name: brace-expansion
  dependency-version: 1.1.21
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-11-17 06:11:07 +01:00
Jeremy Ruston 4215a9154d Merge branch 'tiddlywiki-com' 2026-11-04 10:33:51 +00:00
Thrown WolfandJeremy Ruston 0e7a9135c4 Signing CLA (#10060)
Co-authored-by: Jeremy Ruston <jeremy@jermolene.com>
2026-11-01 20:55:22 +00:00
Chidiebere EkenniaandJeremy Ruston 2a557821bb Add Chidiebere Ekennia to CLA signatories (#10071)
Co-authored-by: Jeremy Ruston <jeremy@jermolene.com>
2026-11-01 20:54:21 +00:00
Phil Duby 18e2f669ee Sign the CLA (#10068) 2026-11-01 20:52:46 +00:00
Mario Pietsch c6461e72e3 Improve Narrative Wording (#10038) 2026-10-09 13:06:57 +01:00
Wahaj18 6612921133 Signing the CLA (#10043) 2026-10-09 13:04:09 +01:00
Jeremy Ruston 999763abb0 Merge branch 'tiddlywiki-com' 2026-10-05 17:51:59 +01:00
Jeremy Ruston 50bb69bb98 Fix line breaks in CLA 2026-10-05 17:51:24 +01:00
Antonis Lamnatos eaf5f6ec65 Signing CLA (#10039) 2026-10-05 17:49:19 +01:00
Mario Pietsch 47f0414eb1 Fix typo (#10027)
* Fix typo

* Update modified date for Pragma: \whitespace
2026-09-21 12:03:08 +04:00
Mario Pietsch e02e6bb366 Fix typos in macro calls (#10030) 2026-09-21 12:02:22 +04:00
Mario Pietsch c5f9161b59 fix typos (#10031) 2026-09-21 12:01:44 +04:00
Théophile Desmedt 8c599e64c0 Doc fixes following PR #10019 (#10022)
* add examples using the new templates $:/core/templates/plain-text and $:/core/templates/rendered-text

* Fix broken links, use documentation macro and correct the system tag given in the example

* fix version number

* fix version number

* use the tid documentation macro
2026-09-11 16:52:01 +01:00
Jeremy Ruston 2b60da0dcf Updated Catalan translation 2026-09-10 14:00:07 +01:00
Jeremy Ruston 5d3f2685a3 Merge branch 'tiddlywiki-com' 2026-09-08 11:40:21 +01:00
Joshua Fontany 685a80dfc6 Document that an unquoted parameter value cannot contain a colon (#9999)
Calls stated that a value needs no delimiters if it contains no spaces or
quotes. A colon also requires them: name:value is call syntax, so the text
before the colon is read as a parameter name and the positional parameter
receives nothing, silently.

Call Syntax already has this right - param-name ":" value is one of its
productions - so this brings the prose into line with the grammar, and adds
a warning naming the two ways round it.
2026-09-08 09:39:22 +01:00
Théophile Desmedt 3aec096a07 Add $:/core/templates/plain-text and $:/core/templates/rendered-text (#10017)
* Add $:/core/templates/plain-text core template

This template renders a single `text` variable as plain text using the
<$text> widget. It enables exporting and downloading dynamic strings
via messages like `tm-download-file` using the `variables` paramObject,
eliminating the need to create temporary tiddlers in the wiki store
purely for rendering purposes.

* add release note

* add rendered text template

* update change note
2026-09-08 09:38:27 +01:00
Théophile Desmedt ddc59ee77b add examples using the new templates $:/core/templates/plain-text and $:/core/templates/rendered-text (#10019) 2026-09-08 09:38:05 +01:00
Zaid Almomani e0e6ab69b1 Fix LinkWidget href fallback when tv-filter-export-link returns empty (#10009) 2026-09-08 09:31:24 +01:00
Zaid Almomani e4ce6b3433 Sign CLA: Zaid (#10010) 2026-09-08 09:30:56 +01:00
Théophile Desmedt 47806feb85 Fix plugin library iframes hanging if onload never fires by adding readiness handshake (#10003)
* Fix race condition in plugin library iframe message handling

Introduce a PLUGIN-LIBRARY-READY handshake verb for plugin library iframes. 
This ensures that postMessage commands are not prematurely dropped before 
the iframe's internal script has fully bound its message listeners. 

Retains iframe.onload as a backward-compatible fallback for legacy or 
external libraries that do not emit the ready signal.

* add changenote

* feat(plugin-library): add PLUGIN-LIBRARY-READY handshake to plugin library iframe

    Add PLUGIN-LIBRARY-READY message emission in libraryserver.js

    Signals to parent window when iframe is ready to receive messages

    Complements browser-messaging.js PLUGIN-LIBRARY-READY handler

    Includes comprehensive tests for callback queueing and handshake flow

    Fixes race condition in plugin library iframe message handling

* fix(plugin-library): emit PLUGIN-LIBRARY-READY message on iframe initialization

Emit the PLUGIN-LIBRARY-READY message after the message listener is bound,

signaling to the parent window that the iframe is ready to receive postMessage

commands. This completes the handshake implementation to eliminate the race

condition where messages could be lost before the iframe's script initialization

completes.

* fix indentation

* remove extra space

* remove typo

* refactor(test-browser-messaging): update test descriptions and remove unused code

* lint fix

* fix: correct the update note
2026-09-08 09:28:15 +01:00
Mario Pietsch 5577a3d07b Allow colons in variable names in call syntax (#10015)
Accept a colon in the variable name of a `<<...>>` call and of an
`((...))` attribute reference, restoring the v5.3.8 name character
class. Call Syntax already describes the callee name as any
non-whitespace character other than `(` or `>`, and the colon is only
meaningful at the parameter name position.

* Add test cases for a colon name standalone, as an attribute value, as
  an =-separated parameter value, and with named parameters
* Add the 5.5.0 change note
2026-09-08 09:12:02 +01:00
Théophile Desmedt d62b75cceb Fix #10004 iframe DOM leak in unloadIFrame loop (#10018)
* Fix unloadIFrame loop condition for proper iframe unloading

* add changenote for #10018

* add missing field to changenote
2026-09-08 12:11:06 +04:00
dependabot[bot] 30a51be168 Bump @humanfs/node from 0.16.7 to 0.16.8 (#10008)
Bumps [@humanfs/node](https://github.com/humanwhocodes/humanfs/tree/HEAD/packages/node) from 0.16.7 to 0.16.8.
- [Release notes](https://github.com/humanwhocodes/humanfs/releases)
- [Changelog](https://github.com/humanwhocodes/humanfs/blob/main/packages/node/CHANGELOG.md)
- [Commits](https://github.com/humanwhocodes/humanfs/commits/node-v0.16.8/packages/node)

---
updated-dependencies:
- dependency-name: "@humanfs/node"
  dependency-version: 0.16.8
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-09-07 15:00:46 +04:00
Jeremy Ruston 38fa4486e4 Merge branch 'tiddlywiki-com' 2026-09-05 14:58:11 +01:00
Théophile Desmedt d0a0198f49 Fix image reference for TiddlyWiki architecture (#10000)
Fix the broken reference to "TiddlyWiki Architecture.svg"
2026-08-29 23:26:01 +01:00
Jeremy Ruston 52c60be3a0 Merge branch 'tiddlywiki-com' 2026-08-25 17:24:38 +01:00
Jeremy Ruston b3279e348d Update Quine URL 2026-08-25 17:24:25 +01:00