Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlna authored Jan 18, 2023
1 parent 1f0e983 commit 3af152c
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
46 changes: 46 additions & 0 deletions crates/apollo-compiler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,52 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
## Maintenance
## Documentation -->
# [0.6.0](https://crates.io/crates/apollo-compiler/0.6.0) - 2023-01-18

This release has a few breaking changes as we try to standardise APIs across the
compiler. We appreciate your patience with these changes. If you run into trouble, please [open an issue].

## BREAKING
- Rename `compiler.create_*` methods to `compiler.add_*`, [SimonSapin] in [412]
- Rename `schema` to `type_system` for `compiler.add_` and `compiler.update_`
methods, [SimonSapin] in [413]
- Unify `ty`, `type_def` and `kind` namings in HIR, [lrlna] in [415]
- in `Type` struct impl: `ty()` --> `type_def()`
- in `TypeDefinition` struct impl: `ty()` --> `kind()`
- in `FragmentDefinition` struct impl: `ty()` --> `type_def()`
- in `RootOperationTypeDefinition` struct: `operation_type` field -->
`operation_ty`

## Features
- `FileId`s are unique per process, [SimonSapin] in [405]
- Type alias `compiler.snapshot()` return type to `Snapshot`, [SimonSapin] in
[410]
- Introduce a type system high-level intermediate representation (HIR) as input
to the compiler, [SimonSapin] in [407]

## Fixes
- Use `#[salsa::transparent]` for `find_*` queries, i.e. not caching query results, [lrlna] in [403]

## Maintenance
- Add compiler benchmarks, [lrlna] in [404]

## Documentation
- Document `apollo-rs` runs on stable, [SimonSapin] in [402]

[open an issue]: https://github.com/apollographql/apollo-rs/issues/new/choose
[lrlna]: https://github.com/lrlna
[SimonSapin]: https://github.com/SimonSapin
[pull/402]: https://github.com/apollographql/apollo-rs/pull/402
[pull/403]: https://github.com/apollographql/apollo-rs/pull/403
[pull/404]: https://github.com/apollographql/apollo-rs/pull/404
[pull/405]: https://github.com/apollographql/apollo-rs/pull/405
[pull/407]: https://github.com/apollographql/apollo-rs/pull/407
[pull/410]: https://github.com/apollographql/apollo-rs/pull/410
[pull/412]: https://github.com/apollographql/apollo-rs/pull/412
[pull/413]: https://github.com/apollographql/apollo-rs/pull/413
[pull/415]: https://github.com/apollographql/apollo-rs/pull/415


# [0.5.0](https://crates.io/crates/apollo-compiler/0.5.0) - 2023-01-04

## Highlights
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "apollo-compiler"
version = "0.5.0"
version = "0.6.0"
authors = ["Irina Shestak <[email protected]>"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/apollographql/apollo-rs"
Expand Down
2 changes: 1 addition & 1 deletion crates/apollo-compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Add this to your `Cargo.toml` to start using `apollo-compiler`:
```toml
# Just an example, change to the necessary package version.
[dependencies]
apollo-compiler = "0.5.0"
apollo-compiler = "0.6.0"
```

Or using [cargo-edit]:
Expand Down

0 comments on commit 3af152c

Please sign in to comment.