Skip to content

Releases: polywrap/doc-snippets

doc-snippets (1.0.0)

03 Jan 16:26
7ce4871
Compare
Choose a tag to compare

doc-snippets (1.0.0)

Breaking Changes

  • startToken and endToken are replaced by startTokens and endTokens (see README)

Features

  • Add support for configurable snippet extraction and injection tokens (see README)
  • Inline snippet extraction tokens are now supported (see README)
  • Snippet injection now happens inline, as a simple replacement of the detected injection token + snippet name
  • Snippet injection is now using regex and the same name capture as extraction, guaranteeing consistency in extraction and injection

Bug Fixes

  • Fixed handling of snippet injection when the snippet is located at the end of the file
  • Fixed an issue where non-whitespace characters weren't considered for snippet names

0.3.0

01 Dec 11:40
Compare
Choose a tag to compare

CLI:

  • Added -e, --exts <paths...> option to combine command. You can now override which file extensions are parsed.
  • node_modules folder is no longer ignored by default if a -i, --ignore option is specified - you will need to specify it manually

0.2.0

30 Nov 16:27
Compare
Choose a tag to compare

Added a -i, --ignore option to doc-snippets combine.