Skip to content

Commit

Permalink
Bump version to 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
avh4 committed Oct 2, 2018
1 parent 94f43d7 commit e3f9eb7
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## master (0.8.1)
## 0.8.1

New features:
- `elm-format` now automatically detects your Elm version based on your `elm.json` or `elm-package.json`.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![Build Status](https://travis-ci.org/avh4/elm-format.svg?branch=master)](https://travis-ci.org/avh4/elm-format)
[![latest version: 0.8.0](https://img.shields.io/badge/version-0.8.0-orange.svg)](https://github.com/avh4/elm-format/releases/tag/0.8.0)
[![latest version: 0.8.1](https://img.shields.io/badge/version-0.8.1-orange.svg)](https://github.com/avh4/elm-format/releases/tag/0.8.1)

# elm-format

Expand Down Expand Up @@ -29,24 +29,24 @@ elm-format --help # See other command line options
```


## Installation [![(latest version: 0.8.0)](https://img.shields.io/badge/version-0.8.0-orange.svg)](https://github.com/avh4/elm-format/releases/tag/0.8.0)
## Installation [![(latest version: 0.8.1)](https://img.shields.io/badge/version-0.8.1-orange.svg)](https://github.com/avh4/elm-format/releases/tag/0.8.1)

> `elm-format` is still in beta. If you run into any problems, please [report them](https://github.com/avh4/elm-format/issues).
>
> **The format produced by elm-format may change significantly before the 1.0.0 release.** If this will cause problems for you, please refrain from using elm-format during the beta-test period.
To install `elm-format` for Elm 0.19:
To install `elm-format`:

```sh
npm install -g elm-format
```

or download the version appropriate for your OS from the [release page](https://github.com/avh4/elm-format/releases/tag/0.8.0),
or download the version appropriate for your OS from the [release page](https://github.com/avh4/elm-format/releases/tag/0.8.1),
unzip it,
and place `elm-format` or `elm-format.exe` (windows) on your `PATH`.

To use `elm-format` with Elm 0.18, either pass the `--elm-version=0.18` when running `elm-format`,
or use the `*-0.18-*` binaries available from the [release page](https://github.com/avh4/elm-format/releases/tag/0.8.0).
You must run `elm-format` from the directory that contains your `elm.json` (for Elm 0.19) or `elm-package.json` (for Elm 0.18),
or else you must pass the appropriate `--elm-version=0.19`/`--elm-version=0.18` command line argument.


## Editor integration
Expand Down
32 changes: 32 additions & 0 deletions Release Notes/0.8.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## Autodetecting your Elm version

Starting in `elm-format` 0.8.1, there is now only one official binary for each platform
(previously there was a seperate binary for Elm 0.18 and Elm 0.19).
`elm-format` now will auto-detect your Elm version using the following rules:

- if `elm-package.json` exists in the current directory, format in Elm 0.18 mode
- if `elm.json` exists in the current directory, format in Elm 0.19 mode

If you need to run `elm-format` from a working directory that does not contain such a file
(or if you need to use `elm-format` in Elm 0.17 mode),
use the `--elm-version=...` command line argument to disable the autodetection.


## Other changes

`elm-format` 0.8.1 also contains several bug fixes for `elm-format` 0.8.0.
See the [CHANGELOG](https://github.com/avh4/elm-format/blob/0.8.1/CHANGELOG.md) for details.


## Install

```sh
npm install -g elm-format
```

or [download from the release page](https://github.com/avh4/elm-format/releases/tag/0.8.1).


## Thanks to ...

- @andys8 for contributing the lenient import line parser
4 changes: 2 additions & 2 deletions Style Guide/CI.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ A FormattingError will be an object with the following fields:
### Example JSON

```json
[{"path":"./src/Fifo.elm","message":"File is not formatted with elm-format-0.8.0 --elm-version=0.19"}
,{"path":"./tests/Tests.elm","message":"File is not formatted with elm-format-0.8.0 --elm-version=0.19"}
[{"path":"./src/Fifo.elm","message":"File is not formatted with elm-format-0.8.1 --elm-version=0.19"}
,{"path":"./tests/Tests.elm","message":"File is not formatted with elm-format-0.8.1 --elm-version=0.19"}
]
```
2 changes: 1 addition & 1 deletion elm-format.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Name: elm-format
version: 0.8.1-rc2
version: 0.8.1

Synopsis:
A source code formatter for Elm
Expand Down
2 changes: 1 addition & 1 deletion package/npm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elm-format",
"version": "0.8.1-rc2",
"version": "0.8.1",
"description": "Install elm-format",
"preferGlobal": true,
"main": "index.js",
Expand Down

0 comments on commit e3f9eb7

Please sign in to comment.