v0.2.0
Features
-
2585236 Pass original content to post-transformations.
The use-case that motivated this was wanting to add a post-transformer to the code handler that would add a "Copy Code" button to the resulting code block; for this purpose, it's useful to have the original code (i.e., before any syntax highlighting) available to the transformer, so that it can e.g. pass said content to a prop of a Svelte "Copy Code" button.
Fixes
- 8da499b If the
unified
markdown backend is being used withretext
plugins, messages emitted by saidretext
plugins weren't being logged to the console. This commit fixes this issue. - 91946bd Pass absolute file paths to the
dependencies
property of the object returned by the SvelTeX preprocessor. With relative paths, changes in the corresponding files weren't triggering HMR updates.
Documentation
- 8959110 Fix mathjax install instructions in TSDoc comment.
- b1ca182 Mention
create-sveltex
in README. - 76be29a Add
plop
to list of cool software that I didn't know before in README.
Refactoring
- f045110 Import
XRegExp
fromdeps.ts
instead ofxregexp
directly, in accordance with the centralizeddeps.ts
design principle.
Chores
- c6249a0 Simplify Vitest
test
script frompackage.json
. - 7ac2ac8 Remove unused options from
vitest.config.ts
. - f411db6 Refine miscellaneous file glob patterns in configuration files (
knip.json
andtsconfig.check.json
).
Build
- 979d842 Update dependencies, including some major updates for
glob
andrimraf
(regular dependencies) and@vitest/coverage-v8
,@vitest/ui
, andvitest
(dev dependencies). - 330d710 Set "fixed"
target
intsconfig.json
(ES2018
instead ofESNext
). - 22776a6 Remove some unused dev dependencies.
CI
- 3af3c9e Make pre-commit git hook lint codebase, instead of running unit tests. This makes the hook take somewhat less time.
- 4339b61 Remove action that bumped version strings and committed those changes automatically. Instead, we now set the version strings in both
package.json
anddeno.jsonc
to0.0.0
, and have the NPM resp. JSR publishing action bump the version within its local environment and publish a dirty branch, which is never actually committed. This simplifies the CI a bit, stops unsigned commits by GitHub Actions bot, and makes the existing discrepancy between tags and version strings inpackage.json
anddeno.jsonc
less confusing (before, the version strings would always be just one release behind the tag; now, the version strings are always0.0.0
, which is, by virtue of being clearly intentional, arguably less confusing).
Full Changelog: v0.1.5...v0.2.0