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.
* 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
* 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
* 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
* 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>
* 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>
* 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
* 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>
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
* 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
* 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
* 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
* Editor: support optional engine operations and cleanup
* Docs: link the editor engine hooks change note
* Docs: use the required change note title format
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
* 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.
* 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
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.
* 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
* 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
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