Skip to content

Releases: errata-ai/vale

v3.3.1

22 Mar 23:43
Compare
Choose a tag to compare

Changelog

v3.3.0

11 Mar 02:31
Compare
Choose a tag to compare

This release adds support for including the expected form in the message field of capitalization-based rules:

message: "Found: '%s'; expected: '%s'."

As with substitution, the second %s is optional.

Changelog

  • a9dc9e6 fix: ensure StylesPath is created with sync (#788)
  • e688310 feat: support showing expected case in message
  • d198f7d chore: update twine to v0.10.1 (#786)

v3.2.2

05 Mar 19:48
Compare
Choose a tag to compare

Changelog

v3.2.1

01 Mar 09:40
Compare
Choose a tag to compare

Changelog

  • 774a361 chore: bump twine to v0.10.0 (#742)
  • cbc6e2d refactor: use actual path for assigned formats
  • 92d50d4 chore: bump Docker to golang:1.21

v3.2.0

27 Feb 09:29
Compare
Choose a tag to compare

Script-based actions

This release introduces the ability to write custom, script-based actions, allowing you to create dynamic solutions to your rules using the Tengo scripting language:

text := import("text")

// `match` is provided by Vale and represents the rule's matched text.
made := text.re_replace(`([A-Z]\w+)([A-Z]\w+)`, match, `$1-$2`)

made = text.replace(made, "-", "_", 1)
made = text.to_lower(made)

suggestions := [made]

prefix for capitalization rules

The capitalization extension point now supports a prefix key, allowing you to specify a constant prefix to ignore when checking the case of a scope:

extends: capitalization
message: "'%s' should be sentence-cased"
level: warning
scope: heading
match: $sentence
# sentence-cased, but allows for a common prefix:
# 
# E.g., 
# 
# a. This is my heading
prefix: '^[a-z]\.\s'

Changelog

  • 1bc7781 feat: support script-based actions (#621)
  • c9d2415 feat: allow script-based rules to use local files
  • e2ac1dc feat: support prefix key in capitalization
  • 6ef0894 feat: proto support (#777)
  • 3a812b3 feat: add --no-global
  • 84b539e refactor: better install details
  • 07828da refactor: add CLI help text for host commands
  • 3ddc54a fix: remove duplicate $home prefix

v3.1.0

18 Feb 07:51
Compare
Choose a tag to compare

Vale now has support for a VALE_STYLES_PATH environment variable to set the default StylesPath. You can also use the new vale ls-vars command to inspect the supported environment variables from the command line.

Changelog

v3.0.7

31 Jan 02:24
Compare
Choose a tag to compare

Changelog

  • d9d5119 refactor: "Location" -> "Default Location"
  • 0f936aa chore: pterm requires Go v1.21
  • 28132f7 chore: upgrade pterm
  • 27fa9a0 fix: handle sync with relative --config

v3.0.6

30 Jan 12:19
Compare
Choose a tag to compare

Changelog

  • b58b8b8 fix: remove -q from asciidoctor args (#759)
  • a45cc80 feat: support fragments in .ps1 and .jl files (#736)

v3.0.5

16 Jan 07:31
Compare
Choose a tag to compare

Changelog

  • 08b2c42 refactor: don't load Vale if it's not needed
  • 5e502a0 fix: ensure applyPatterns respects formats (#754)

v3.0.4

13 Jan 15:52
Compare
Choose a tag to compare

Changelog

  • 341348c fix: better support for phrases in vocabularies (#726)
  • 37dcbc5 fix: use file paths when applying ignore patterns (#732)