Skip to content

Commit

Permalink
Prepare v1.0 release (#114)
Browse files Browse the repository at this point in the history
* Prepare v1.0 release

* Fix formatting
  • Loading branch information
doorgan authored Dec 29, 2023
1 parent 92fae8a commit 5d93a8b
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 35 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,22 @@ jobs:
strategy:
matrix:
include:
- elixir: '1.10.4'
otp: '21.3'
run_vendored_tests: true
- elixir: '1.11.4'
otp: '23.2'
run_vendored_tests: true
- elixir: '1.12.3'
otp: '24.3'
run_vendored_tests: true
- elixir: '1.13.4'
otp: '24.3'
- elixir: '1.13.4'
otp: '25.0.2'
- elixir: '1.14.3'
otp: '25.2'
- elixir: '1.15.5'
otp: '26'
check_formatted: true
run_credo: true
run_coveralls: true
run_dialyzer: true
- elixir: '1.14.3'
otp: '25.2'
- elixir: '1.15.5'
- elixir: '1.16.0'
otp: '26'
steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
otp: ['23']
elixir: ['1.12.0']
elixir: ['1.15.0']
env:
HEX_API_KEY: ${{ secrets.HEX_API_KEY }}
steps:
Expand Down
19 changes: 5 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,16 @@
# Changelog for Sourceror v0.13
# Changelog for Sourceror v1.0

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## v0.1410 (2023-11-06)
## v1.0.0 (2023-12-28)

### 1. Bug fixes
- [Sourceror] Handle unqualified double-parenthesis calls in `get_range` by @zachallaun in https://github.com/doorgan/sourceror/pull/111

## v0.14.0 (2023-09-19)

### 1. Enhancements
- [Sourceror] Change `get_range/1` to allow returning `nil` by @zachallaun in https://github.com/doorgan/sourceror/pull/107parse_string` by @zachallaun in https://github.com/doorgan/sourceror/pull/104
- [Sourceror.Identifier] Add additional identification guards by @zachallaun in https://github.com/doorgan/sourceror/pull/108

### 2. Bug fixes
- [Sourceror] Ensure `get_range` works for all syntax nodes parsed using `Sourceror.
- [Sourceror] Add support for Elixir 1.16

## v0.13.0 (2023-08-23)

The changelog for v0.13 releases can be found [in the 0.13
branch](https://github.com/doorgan/sourceror/blob/v0.13/CHANGELOG.md).
The changelog for v0.14 releases can be found [in the 0.14
branch](https://github.com/doorgan/sourceror/blob/v0.14/CHANGELOG.md).
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Add `:sourceror` as a dependency to your project's `mix.exs`:
```elixir
defp deps do
[
{:sourceror, "~> 0.14"}
{:sourceror, "~> 1.0"}
]
end
```
Expand Down
8 changes: 4 additions & 4 deletions lib/sourceror/code.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ if Version.match?(System.version(), "< 1.13.0") do
Process.put(:code_formatter_comments, [comment | comments])
end

defp next_eol_count('\s' ++ rest, count), do: next_eol_count(rest, count)
defp next_eol_count('\t' ++ rest, count), do: next_eol_count(rest, count)
defp next_eol_count('\n' ++ rest, count), do: next_eol_count(rest, count + 1)
defp next_eol_count('\r\n' ++ rest, count), do: next_eol_count(rest, count + 1)
defp next_eol_count(~c"\s" ++ rest, count), do: next_eol_count(rest, count)
defp next_eol_count(~c"\t" ++ rest, count), do: next_eol_count(rest, count)
defp next_eol_count(~c"\n" ++ rest, count), do: next_eol_count(rest, count + 1)
defp next_eol_count(~c"\r\n" ++ rest, count), do: next_eol_count(rest, count + 1)
defp next_eol_count(_, count), do: count

defp previous_eol_count([{token, {_, _, count}} | _])
Expand Down
8 changes: 4 additions & 4 deletions lib/sourceror/identifier.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ defmodule Sourceror.Identifier do
end
end

@unary_ops [:&, :!, :^, :not, :+, :-, :~~~, :@]
@unary_ops [:&, :!, :^, :not, :+, :-, :"~~~", :@]

@binary_ops [
:<-,
Expand Down Expand Up @@ -45,9 +45,9 @@ defmodule Sourceror.Identifier do
:<<~,
:~>>,
:<~>,
:<|>,
:"<|>",
:in,
:^^^,
:"^^^",
:"//",
:++,
:--,
Expand All @@ -62,7 +62,7 @@ defmodule Sourceror.Identifier do
|> concat_if.("~> 1.12", ~w[+++ ---]a)
|> concat_if.("~> 1.13", ~w[**]a)

@pipeline_operators [:|>, :~>>, :<<~, :~>, :<~, :<~>, :<|>]
@pipeline_operators [:|>, :~>>, :<<~, :~>, :<~, :<~>, :"<|>"]

@non_call_forms [:__block__, :__aliases__]

Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ defmodule Sourceror.MixProject do
use Mix.Project

@repo_url "https://github.com/doorgan/sourceror"
@version "0.14.1"
@version "1.0.0"

def project do
[
app: :sourceror,
name: "Sourceror",
version: @version,
elixir: "~> 1.10",
elixir: "~> 1.12",
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
erlc_paths: erlc_paths(Mix.env()),
Expand Down

0 comments on commit 5d93a8b

Please sign in to comment.