Current section
Files
Jump to
Current section
Files
CHANGELOG.md
# Changelog
## 0.7.1 - 2023/08/25
+ Update version requirement for `sourceror` to `~> 0.12.0`.
+ Add function `Rewrite.Source.issues/1`.
## 0.7.0 - 2023/07/17
### Breaking Changes
+ The module `Rewrite.Project` moves to `Rewrite`.
+ The `Rewrite.Source.hash` contains the hash of the read in file. The hash can
be used to detect if the file was changed after the last reading.
+ `Rewrite` accetps only `sources` with a valid and unique path. From this, the
handling of conflicting files is no longer part of `rewrite`.
+ `Source.content/2` and `Source.path/2` is replaced by `Source.get/3`.
+ Add `Rewrite.Filetype`.
## 0.6.3 - 2023/03/22
+ Fix `Source.format/3`.
## 0.6.2 - 2023/03/19
+ Search for `:dot_formatter_opts` in `Source.private` when formatting.
## 0.6.1 - 2023/02/26
+ Refactor source formatting.
## 0.6.0 - 2023/02/14
+ Add option `:colorizer` to `Rewrite.TextDiff.format/3`.
## 0.5.0 - 2023/02/10
+ Update `sourceror` to ~> 0.12.
+ Add `Rewrite.Source.put_private/3`, which allows for storing arbitrary data
on a source.
## 0.4.2 - 2023/02/05
+ Add fix for `Rewrite.Source.format/2`.
+ Pin `sourceror` to 0.11.2.
## 0.4.1 - 2023/02/04
+ Support the `FreedomFormatter`.
+ Update `Rewrite.Source.save/1` to add a neline at the of file. Previously a
newline was added at `Rewrite.Source.update/3`.
## 0.4.0 - 2023/02/02
+ Update `Rewrite.TextDiff.format/3` to include more formatting customization.
## 0.3.0 - 2022/12/10
+ Accept glob as `%GlobEx{}` as argument for `Rewrite.Project.read!/1`
## 0.2.0 - 2022/09/08
+ Remove `Rewrite.Issue`. The type of the field `issues` for `Rewrite.Source`
becomes `[term()]`.
+ Remove `Rewrite.Source.debug_info/2` and `BeamFile` dependency.
+ Add `Rewrite.Project.sources_by_module/2`, `Rewrite.Project.source_by_module/2`
and `RewriteProject.source_by_module!/2`.
+ Remove `Rewrite.Source.zipper/1`
+ Update `Rewrite.Source.update`. An update can now be made with `:path`, `:ast`,
and `:code`. An update with a `Sourceror.Zipper.zipper()` is no longer
supported.
+ Add `Rewrite.Source.from_ast/3`.
+ Add `Rewrite.Source.owner/1`.
## 0.1.1 - 2022/09/07
+ Update `Issue.new/4`.
## 0.1.0 - 2022/09/05
+ The very first version.
+ This package was previously part of Recode. The extracted modules were also
refactored when they were moved to their own package.