Skip to content

Commit

Permalink
feat: release 3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kamadorueda committed Aug 15, 2022
1 parent 56956f6 commit e7eac49
Show file tree
Hide file tree
Showing 18 changed files with 148 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-entry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ echo INFO: building Alejandra
nix-build \
--attr ${system} \
--out-link result-alejandra \
https://github.com/kamadorueda/alejandra/tarball/2.0.0
https://github.com/kamadorueda/alejandra/tarball/3.0.0

echo INFO: running Alejandra:
result-alejandra/bin/alejandra -- -q "${@}"
38 changes: 37 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,41 @@ Types of changes
- Security in case of vulnerabilities.
-->

## [3.0.0] - 2022-08-14

### Added

- Different levels of --quiet by repeating the `-q` flag,
which makes Vim users have a better formatting experience by using `:%!alejandra -qq` to format the current buffer,
specially when the file has syntax errors.
- The possibility for companies to promote their business
by placing an add at the end of Alejandra's terminal output, and thank you messages for the sponsors of the project.

You can obtain this benefits in @kamadorueda's [sponsor page](https://github.com/sponsors/kamadorueda).

- Thank you messages for the different people
who have helped improving Alejandra.

### Changed

- Now big files are formatted first,
making faster the formatting process
when using many threads and
when formatting a big file is slower
than formatting all the other smaller files in the repository.
For instance in Nixpkgs.
- The CLI was simplified,
removing the elements that people find less useful
and polishing those that people use the most.
The screen is not cleared anymore.
- Upgraded dependencies to its latest version.

### Fixed

- The name displayed in the CLI application used to be `alejandra_cli`,
now it is `Alejandra`.
- Typos here and there.

## [2.0.0] - 2022-07-13

### Added
Expand Down Expand Up @@ -641,7 +676,8 @@ Types of changes

---

[unreleased]: https://github.com/kamadorueda/alejandra/compare/2.0.0...HEAD
[unreleased]: https://github.com/kamadorueda/alejandra/compare/3.0.0...HEAD
[3.0.0]: https://github.com/kamadorueda/alejandra/compare/2.0.0...3.0.0
[2.0.0]: https://github.com/kamadorueda/alejandra/compare/1.5.0...2.0.0
[1.5.0]: https://github.com/kamadorueda/alejandra/compare/1.4.0...1.5.0
[1.4.0]: https://github.com/kamadorueda/alejandra/compare/1.3.0...1.4.0
Expand Down
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ Please visit:

You can download a binary for your platform:

- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/2.0.0/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/2.0.0/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/2.0.0/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/2.0.0/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/2.0.0/alejandra-x86_64-unknown-linux-musl)
- [aarch64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-aarch64-unknown-linux-musl)
- [armv6l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-armv6l-unknown-linux-musleabihf)
- [armv7l-unknown-linux-musleabihf](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-armv7l-unknown-linux-musleabihf)
- [i686-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-i686-unknown-linux-musl)
- [x86_64-unknown-linux-musl](https://github.com/kamadorueda/alejandra/releases/download/3.0.0/alejandra-x86_64-unknown-linux-musl)

Make it executable (`$ chmod +x`)
and run Alejandra with:
Expand All @@ -142,13 +142,13 @@ Please visit: [search.nixos.org/packages?query=alejandra](https://search.nixos.o
- Nix stable:

```bash
$ nix-env -ivf https://github.com/kamadorueda/alejandra/tarball/2.0.0
$ nix-env -ivf https://github.com/kamadorueda/alejandra/tarball/3.0.0
```

- Nix with [Flakes](https://nixos.wiki/wiki/Flakes):

```bash
$ nix profile install github:kamadorueda/alejandra/2.0.0
$ nix profile install github:kamadorueda/alejandra/3.0.0
```

Then run Alejandra with:
Expand All @@ -165,7 +165,7 @@ $ alejandra --help
let
alejandra =
(import (builtins.fetchTarball {
url = "https://github.com/kamadorueda/alejandra/tarball/2.0.0";
url = "https://github.com/kamadorueda/alejandra/tarball/3.0.0";
sha256 = "0000000000000000000000000000000000000000000000000000";
}) {})
.outPath;
Expand All @@ -181,7 +181,7 @@ $ alejandra --help
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
alejandra.url = "github:kamadorueda/alejandra/2.0.0";
alejandra.url = "github:kamadorueda/alejandra/3.0.0";
alejandra.inputs.nixpkgs.follows = "nixpkgs";
};
Expand Down
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
outputs = inputs: let
commit = inputs.self.shortRev or "dirty";
date = inputs.self.lastModifiedDate or inputs.self.lastModified or "19700101";
version = "2.0.0+${builtins.substring 0 8 date}.${commit}";
version = "3.0.0+${builtins.substring 0 8 date}.${commit}";

nixpkgsForHost = host:
import inputs.nixpkgs {
Expand Down
Loading

0 comments on commit e7eac49

Please sign in to comment.