Releases
16 versions from Nov 8 to Nov 18, 2026. 15 PATCH releases came after the first release.
Each mark is one version, on a time axis in UTC. Select a mark to show its changes.
- PATCH: fixes and small additions
- The first release
7 changes in 1 package. The changes with the most packages come first.
decodeReferences(text)decodes the character references of HTML content, as the tokenizer of the HTML Living Standard does.A decimal or hexadecimal reference gives its code point.
An ampersand with no reference stays as text.
The first prediction put the decoder in
./html, with a limit of 9000 bytes.The first users are the alert sources with HTML descriptions in a feed.
The named references come from the table of the standard, with its 2231 names.
The script
scripts/html-references.tsmakes the table modulesrc/html-references.tsfromentities.jsonof the standard (CC BY 4.0).
3 changes in 1 package. The changes with the most packages come first.
rankDocumentsusesrankerOf, so the two functions share one path.rankerOf(corpus, form)computes the IDF and the vector of each document one time.For each query, the ranker gives the same scores as
rankDocuments(corpus, query, form).
5 changes in 1 package. The changes with the most packages come first.
inverseDocumentFrequency(documents, form)gives the IDF of each term, in the formplain(the default) orsmooth.rankDocuments(corpus, query, form)ranks the documents of a corpus for a query.searchWords(text, options)gives the search keys of the words of a text.termVector(words, idf)andcosineSimilarity(a, b)give the TF-IDF vector of a text and the similarity of two vectors.Property tests on seeded corpora: the order of the documents does not change a weight or a score.
1 change.
Version 0.0.13 of
@mark1russell7/texton npm.
6 changes in 1 package. The changes with the most packages come first.
CONTEXT_SHAPESfinds the value of a secret by the text around it: a parameter, a variable or a field with the name of a secret (secret-parameter), a flag (secret-flag), the password of a URL (url-password), anAuthorizationheader (authorization) and the user option of curl (user-password).isSecretName(name)tells if a name is the name of a secret, by the same rule.A shape can give the span of a part of its match, with a group with the name
secret.headroom redacts the command lines in its logs with these shapes after this version is on npm.
The default shapes of
findSecretShapesandredactSecretShapesdo not change.The limit of the entry
./redactis 2400 bytes, predicted before the code.
4 changes in 1 package. The changes with the most packages come first.
listOf(parts, options?)joins the parts into an English list: "a", "a and b" or "a, b and c".The list join comes from
listTextof@mark1russell7/site-pages.The option
conjunctionsets the word before the last part, and its default is "and".The root entry does not change, because it has 663 of its 700 bytes.
5 changes in 1 package. The changes with the most packages come first.
scanHtmlscans HTML for its text and its start tags in one linear pass, with no DOM.A test holds the entry
./htmlat 1100 bytes or fewer, a limit predicted before its first measure.The content of a script, a style, a title or a text area has no tags.
The content of each element of the option
skipgives no text and no element.The scan comes from
noScriptTextof@mark1russell7/site-pages.
6 changes in 1 package. The changes with the most packages come first.
compareCodePointscompares the Unicode code points.compareCodeUnitscompares the UTF-16 code units, as the operator<and the default sort do.A test compares
compareCodePointswith a reference order for each two texts of 3 code units or fewer, with each pair and each lone surrogate.The orders are in their own entry, so the root entry does not change.
The six copies of the order of the code units in
mark1russell7/alertsmove tocompareCodeUnitsafter this version is on npm.The two orders are different only in one case.
5 changes in 1 package. The changes with the most packages come first.
findSecretShapesfinds each token of a known shape in a text: GitHub, npm, Anthropic, AWS, Slack, Bearer values and private key blocks.findSecretShapesInValueexamines each string of a value, for example a JSON document, and gives the path to each match.redactSecretShapesputs a mark in place of each match.SECRET_SHAPESis the catalog.The entry
./redactis 1692 bytes afteresbuildandgzipat level 9, and a test holds it at 1900 bytes or fewer.
4 changes in 1 package. The changes with the most packages come first.
partsAtdivides a text into parts at ranges of code units.partsOfdivides a text into parts at each copy of a text, from the start, with no overlap.The entry
./partsis 326 bytes afteresbuildandgzipat level 9, and a test holds it at 450 bytes or fewer.The two functions come from
@mark1russell7/site-pages, which drops its copies in a later version.
5 changes in 1 package. The changes with the most packages come first.
padadds a fill at the start, at the end or at the two sides, to a width.truncatecuts a text tomaxunits or fewer, with the mark "…" at the end.Each function counts in UTF-16 code units, in code points or in graphemes.
The 18 copies of a cut in the atlas list are test fixtures.
The entry
./lengthis 721 bytes afteresbuildandgzipat level 9, and a test holds it at 850 bytes or fewer.
2 changes in 1 package. The changes with the most packages come first.
errorMessagegives the message of an error.The function does not throw.
2 changes in 1 package. The changes with the most packages come first.
redactSecretsputs a mark in place of each secret in a text: the raw form, the forms ofencodeURIComponentandURLSearchParams, and the Base64 form of an HTTP Basic pair.The function is in its own entry, so the root entry stays at 531 bytes.
1 change.
Version 0.0.3 of
@mark1russell7/texton npm.
3 changes in 1 package. The changes with the most packages come first.
escapeWorkflowDatachanges%, CR and LF to%25,%0Dand%0A.The 5 copies of the atlas list with these escapes are test fixtures.
The root entry is 321 bytes after
esbuildandgzipat level 9, in place of 250.
2 changes in 1 package. The changes with the most packages come first.
The root entry is 250 bytes after
esbuildandgzipat level 9.The tests run 53 copies of these functions from other repositories as fixtures.
Source: the CHANGELOG.md files, the git tags, the GitHub releases and npm, read when the site was built.