All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Fixed dependency declaration in README.md. #118
- Fixed some types. #115
- Derive
Hash
on requests types. #114 - Use Codspeed and
check-changelog
actions. #121
- Fixed serializing of
interpretAs
indata
. #103
- Moved LanguageTool docker image to service in GitHub action. #87
- Added automatic benchmarks comparison to CI. #89
- Improving test coverage. #88
- Allow text starting with hyphens. #100
2.1.2 2023-05-29
- Fixed serializing of comma-separated values. #86
2.1.1 2023-04-07
2.1.0 2023-02-09
- Added environment variables for login arguments. #64
- Fixed words requests. #64
2.0.0 2023-02-07
- Created founding link. #19
- Added two related projects. #21
- Added release dates. #31
- Added
#[must_use]
flag to most structures, to please clippy pedantic. #29 - Changed conditional compilation flags to directly point to dependency, e.g.,
"clap"
instead of"cli"
. #28 - Use
cargo-nextest
instead ofcargo test
for faster CI testing. #32 - Improve CI testing. #41
- Added issue templates. #42
- Added dependabot config. #43
- Added PR template and codecov badge. #44
- Added missing
#[must_use]
. #50 - Upgraded formatting options, using nightly, and improved documentation. #55
- Change example image to be SVG. #57
- Added more tests. #22
- Added
cli-complete
feature to generate completion files. #23 - Added message when reading from STDIN. #25, #26
- Added (regex) validator for language code. #27
- Added cli requirements for
username
/api_key
pair. #16, #30 - Added a
CommandNotFound
error variant for when docker is not found. #52 - Added a
split_len
function. #18 - Automatically split long text into multiple fragments. #58, #60
- Add
try_
variants for panicking functions. #59
- Cancelled effects of #28. #45
- Removed
regex
andlazy_static
dependencies. #51 - Breaking Refactored the CLI by upgrading to Clap v4, added input from filenames and changed the library accordingly. #53
- Stopped serializing useless fields. #17
1.3.0 - 2022-08-25
- Fixed features flag in
CI.yml
action. #12
- Added basic Docker support. #12
- Fixed typo in message when no error was found. #12
1.2.0 - 2022-08-10
- Add 3 new features
native-tls
,native-tls-vendored
andfull
. #14
1.1.1 - 2022-08-09
- Add GitHub action to automate release process. #12
1.1.0 - 2022-08-08
- Add some LanguageTool context.
- Correct some typos in the various docs (@kianmeng). #4
- Add lint test for Markdown files (@kianmeng). #5
- Add grammar check for text-like files. #6
- Add compare links to release tags in CHANGELOG. #9
- Add action to check if can publish. #11
- Add
get_text
method forCheckRequest
. #8 - Create
CheckResponseWithContext
that enables keeping information about checked text. Hence, mutable and immutable iterators have been created to provide more tools to the end-user. #10 - Add
--more-context
option flag to CLI. This enables to add more information in the JSON output. #10 - Derive
Eq
for all structs that derivePartialEq
and with fields that deriveEq
. #10 - Add
from_env
andfrom_env_or_default
methods forServerCli
andServerClient
. #10
1.0.0 - 2022-07-24
- Add GitHub actions for MSRV.
- Enhance GitHub actions' set by adding more checks.
- Add
pre-commit.ci
linting. - Add GitHub action with dockerized LanguageTool server for more advanced tests.
- Remove
cliff
's changelog generation and opt for a manual changelog maintenance. - Create "changelog-bot" that requires pull-requests to contain diffs in CHANGELOG.md.
- Add loading
hostname
andport
from env. variables iffeature = "cli"
is set.
- Bump MSRV to 1.57.
- Changed some
&str
parameters toString
whento_string()
was called inside the function. - Add
[non_exhaustive]
flag to all structures that rely on the LT server API.
- Lowered dependency versions and using non-strict versions.
- Fix compilation error in
src/lib/error.rs
whenfeature = "cli"
was not set. - Remove unused print in
src/lib/server.rs
.
NOTE: Pre v1.0.0, the changelog was generated using the
cliff
tool that is based on commits.
0.0.18 - 2022-06-22
- [cli/lib] Allow for max. number of suggestions
ββ This feature is very likely to change in the future - [lib] Allow to easily convert strings into
Replacement
s
- [lib] Rustfmt and unused import
- [readme] Fix typo in readme
- [tests] Added test for errors
- [docs] 100% of src/lib is now documented
0.0.17 - 2022-06-21
- [lib] Default value to "auto" for language in Default
- [lib] Clean
DataAnnotation
constructors
ββ Provides simplified constructors for theDataAnnotation
structure for the different possible cases. - [lib] Deriving
PartialEq
forData
andDataAnnotation
- [lib] Implement
FromIterator
forData
& tests
ββ This allows for an easy construction of requests with markup data. - [lib] Implement
From<ServerCli>
forServerClient
- [fmt] Rustfmt
- [lib] Rustfmt
- [clean] Change
to_string
toto_owned
- [lib] Documentation some add. functions
- [version] Update version & changelog
0.0.16 - 2022-06-08
- [bin] Allow to read text from stdin
ββ This changes the default behavior where--text
or--data
was required. Now, if none are provided, ltrs will read from stdin.
- [fmt] Rust fmt
- [lib] Clippy suggestion
- [fmt] Rust fmt
- [diet] Ran cargo diet to save space
- [cliff] Enhance changelog appearance
ββ This adds emojis as well a more content to the changelog messages - [ci] Updated GitHub action to avoid integration error
ββ See this issue for example - [version] Update version & changelog
0.0.15 - 2022-06-01
- [deps] Reduce necessary dependencies
ββ Reduce the amount of features loaded fromtokio
and only require this feature to be activated for bin and tests. - [version] Update version & changelog
- [lib] Avoid panicking on string slices
ββ This fixes the problem that occurred when the string was not made of purely utf-8 chars. E.g.:ltrs check --text "Un essai de texte en franΓ§ais Γ controler"
0.0.14 - 2022-05-31
- [readme] Fix file link in readme
- [version] Update version & changelog
0.0.13 - 2022-05-31
- [cli] Annotate text from check response
- [readme] Document new feature
- [readme] Fix typo
- [future] Add some todos
- [cli] Derive display order
- [version] Update version & changelog
0.0.12 - 2022-05-31
- [src] Create new "unstable" feature
- [lib] Make response fields public and add "unstable" attribute
- [check] Renaming
with_data
towith_data_str
- [readme] Refactor readme based on clap's readme
- [version] Update version & changelog
- [readme] Fix changelog link in readme
0.0.11 - 2022-05-24
- [doc] Refactor readme and include it in lib.rs' doc
- [naming] Renamed server variables to client
- [version] Update version & changelog
- [doc] Automatic links in docstrings
0.0.10 - 2022-05-23
- [lib] Add (basic) support for add. languages
- [clean] Remove useless comments in code
- [doc] Document config file struct
- [version] Update version & changelog
- [lib] Now correctly writes arrays in config file
- [test] Fixing doctest
0.0.9 - 2022-05-20
- [doc] Auto-doc for "feature"-only commands
- [version] Update version & changelog
0.0.9-beta - 2022-05-20
- [version] Update version & changelog
- [CI] Now publish with cli feature
0.0.9-alpha - 2022-05-20
- [tests] Add some doctests
- [features] Remove default features
- [version] Update version & changelog
0.0.8 - 2022-05-20
- [lib] Derive serialize for words' responses
- [lib] New errors system
ββ Errors and results are now unified under a common type that can be found insidelib/error.rs
- [lib] Refactor lib. exposed functions
- [doc] Update description
- [deps] Remove unused crate and add thiserror crate
- [version] Update version & changelog
- [cli] Text takes now 't' as short flag
- [lib] IDs and categories are String
0.0.7 - 2022-05-18
- [errors] Response errors are now used
ββ But not the body of the error, only the url - [cli] Changed language to
auto
ββ language flag was required, now it defaults toauto
- [errors] Now exits as usage error for two commands
- [lint] Rustfmt
- [typo] Fixed typo in docstring
- [docs] Split docs for
-h
and--help
- [readme] Update todos & usage
- [version] Update version & changelog
0.0.6 - 2022-05-18
- [cli] Pretty print json output
- [doc] Improve docs
- [refactor] Server mod and tests
- [clippy] Removed useless ref.
- [defaults] Change default hostname api
ββ Now uses online server from LanguageTool - [version] Update version & changelog
0.0.5 - 2022-05-17
- [cli] Add ping command
- [version] Update version & changelog
0.0.4 - 2022-05-17
- [data] Now correctly uses
data
field + pub fields
ββdata
field is not correctly serialized for thecheck
request
- [readme] Update todos
- [version] Update version & changelog
0.0.3 - 2022-05-17
- [cli] Create a nice cli
- [readme] Add new todos
- [version] Update version & changelog
- [version] Update version in Cargo.lock
0.0.2 - 2022-05-16
- [features] Now Clap is a feature required for bin
- [version] Update version & changelog
- [src/lib/api] Removed empty file
0.0.1 - 2022-05-16
- [src] First unstable code version
- [ci/lint/doc] Basic GitHub setup
- [changelog] First changelog