Skip to content
This repository was archived by the owner on Jul 25, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f3fc92a

Browse files
author
Josh Price
committedMay 30, 2016
Release v0.3.0
1 parent e6f4faf commit f3fc92a

File tree

5 files changed

+64
-6
lines changed

5 files changed

+64
-6
lines changed
 

‎CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# Changelog
22

3+
## 0.3.0 (2016-05-29)
4+
5+
* Enhancements
6+
* Directive support (@skip and @include)
7+
* Validations now run on queries
8+
* Rule: Fields on correct type
9+
* Rule: No fragment cycles
10+
* Rule: Validate mandatory arguments
11+
* Rule: Unique operation names
12+
13+
* Bugfixes
14+
* Allow default values to get assigned correctly when a query defines
15+
an enum variable with a default
16+
* Query can take an optional Enum argument and correctly fall back if
17+
that value is not specified
18+
19+
* Note: the `execute/5` signature will be changed to the `execute_with_opts/3`
20+
in a future version
21+
322
## 0.2.0 (2016-03-19)
423

524
* Enhancements

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ First, add GraphQL to your `mix.exs` dependencies:
2020

2121
```elixir
2222
defp deps do
23-
[{:graphql, "~> 0.2"}]
23+
[{:graphql, "~> 0.3"}]
2424
end
2525
```
2626

‎RELEASE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Release process
2+
3+
This document simply outlines the release process:
4+
5+
1. Ensure you are running on the oldest supported Elixir version (check `.travis.yml`)
6+
7+
2. Ensure `CHANGELOG.md` is updated and add current date
8+
9+
3. Change the version number in `mix.exs` and `README.md`
10+
11+
4. Run `mix test` to ensure all tests pass
12+
13+
5. Commit changes above with title "Release vVERSION" and push to GitHub
14+
15+
git add .
16+
git commit -m"Release vX.Y.Z"
17+
git push origin master
18+
19+
6. Check CI is green
20+
21+
7. Create a release on GitHub and add the CHANGELOG from step #2 (https://github.com/graphql-elixir/graphql/releases/new) using VERSION as the tag and title
22+
23+
8. Publish new hex release with `mix hex.publish`
24+
25+
9. Publish hex docs with `mix hex.docs`
26+
27+
28+
## Deprecation policy
29+
30+
GraphQL deprecations happen in 3 steps:
31+
32+
1. The feature is soft-deprecated. It means both CHANGELOG and documentation must list the feature as deprecated but no warning is effectively emitted by running the code. There is no requirement to soft-deprecate a feature.
33+
34+
2. The feature is effectively deprecated by emitting warnings on usage. In order to deprecate a feature, the proposed alternative MUST exist for AT LEAST two versions.
35+
36+
3. The feature is removed. This can only happen on major releases.

‎lib/graphql.ex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ defmodule GraphQL do
5959
6060
# iex> GraphQL.execute_with_opts(schema, "{ hello }")
6161
# {:ok, %{hello: world}}
62+
63+
This is the preferred function signature for `execute` and
64+
will replace `execute/5`.
6265
"""
63-
# FIXME: when the execute/5 form is removed (after updating the plug)
64-
# then rename this to `execute`.
6566
def execute_with_opts(schema, query, opts \\ []) do
6667
execute_with_optional_validation(schema, query, opts)
6768
end
@@ -71,8 +72,10 @@ defmodule GraphQL do
7172
7273
# iex> GraphQL.execute(schema, "{ hello }")
7374
# {:ok, %{hello: world}}
75+
76+
*Deprecation warning*: This will be replaced in a future version with the
77+
function signature for `execute_with_opts/3`.
7478
"""
75-
# TODO: delete this when a new plug is released.
7679
def execute(schema, query, root_value \\ %{}, variable_values \\ %{}, operation_name \\ nil) do
7780
execute_with_optional_validation(
7881
schema,

‎mix.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule GraphQL.Mixfile do
22
use Mix.Project
33

4-
@version "0.2.0"
4+
@version "0.3.0"
55

66
@description "GraphQL Elixir implementation"
77
@repo_url "https://github.com/graphql-elixir/graphql"
@@ -42,7 +42,7 @@ defmodule GraphQL.Mixfile do
4242
end
4343

4444
defp package do
45-
[maintainers: ["Josh Price", "James Sadler", "Mark Olson", "Aaron Weiker"],
45+
[maintainers: ["Josh Price", "James Sadler", "Mark Olson", "Aaron Weiker", "Sean Abrahams"],
4646
licenses: ["BSD"],
4747
links: %{"GitHub" => @repo_url},
4848
files: ~w(lib src/*.xrl src/*.yrl mix.exs *.md LICENSE)]

0 commit comments

Comments
 (0)
This repository has been archived.