Skip to content

v0.2.0

Compare
Choose a tag to compare
@nvlang nvlang released this 12 Jul 04:09
· 49 commits to main since this release
45ccca5

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 with retext plugins, messages emitted by said retext 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 from deps.ts instead of xregexp directly, in accordance with the centralized deps.ts design principle.

Chores

  • c6249a0 Simplify Vitest test script from package.json.
  • 7ac2ac8 Remove unused options from vitest.config.ts.
  • f411db6 Refine miscellaneous file glob patterns in configuration files (knip.json and tsconfig.check.json).

Build

  • 979d842 Update dependencies, including some major updates for glob and rimraf (regular dependencies) and @vitest/coverage-v8, @vitest/ui, and vitest (dev dependencies).
  • 330d710 Set "fixed" target in tsconfig.json (ES2018 instead of ESNext).
  • 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 and deno.jsonc to 0.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 in package.json and deno.jsonc less confusing (before, the version strings would always be just one release behind the tag; now, the version strings are always 0.0.0, which is, by virtue of being clearly intentional, arguably less confusing).

Full Changelog: v0.1.5...v0.2.0