Skip to content

Commit

Permalink
Merge pull request #36 from philandstuff/release-v3.0.0
Browse files Browse the repository at this point in the history
Release v3.0.0
  • Loading branch information
philandstuff authored May 12, 2020
2 parents 61a7ec5 + efa9511 commit e5ae7c9
Show file tree
Hide file tree
Showing 37 changed files with 3,308 additions and 3,285 deletions.
27 changes: 25 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,33 @@
# Changelog

## [Unreleased]
[Unreleased]: https://github.com/philandstuff/dhall-golang/compare/v2.0.0...HEAD
[Unreleased]: https://github.com/philandstuff/dhall-golang/compare/v3.0.0...HEAD

## [3.0.0] - 2020-05-11
[3.0.0]: https://github.com/philandstuff/dhall-golang/compare/v2.0.0...v3.0.0

This brings dhall-golang up to version 16.0.0 of the Dhall standard.
As the standard had breaking changes, this release is a major version
bump.

### Breaking changes

* Language changes:
* [Adjust precedence of `===` and `with`](https://github.com/dhall-lang/dhall-lang/pull/954)
* [Update encoding of floating point values to RFC7049bis](https://github.com/dhall-lang/dhall-lang/pull/958)

### New features

* Language features:
* [Allow unions with mixed kinds](https://github.com/dhall-lang/dhall-lang/pull/957)

### Bug fixes

* We now save fully-alpha-normalized expressions to the cache (#31)
* We now check the hash of expressions fetched from the cache (#32)

## [2.0.0] - 2020-04-17
[1.0.0]: https://github.com/philandstuff/dhall-golang/compare/v1.0.0...v2.0.0
[2.0.0]: https://github.com/philandstuff/dhall-golang/compare/v1.0.0...v2.0.0

This brings dhall-golang up to version 15.0.0 of the Dhall standard.
As the standard had breaking changes, this release is a major version
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"io/ioutil"

"github.com/philandstuff/dhall-golang"
"github.com/philandstuff/dhall-golang/v3"
)

// Config can be a fairly arbitrary Go datatype. You would put your
Expand Down
2 changes: 1 addition & 1 deletion binary/cbor.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"path"

"github.com/fxamacker/cbor/v2"
. "github.com/philandstuff/dhall-golang/term"
. "github.com/philandstuff/dhall-golang/v3/term"
)

var nameToBuiltin = map[string]Term{
Expand Down
2 changes: 1 addition & 1 deletion binary/semantic_hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"crypto/sha256"

"github.com/philandstuff/dhall-golang/core"
"github.com/philandstuff/dhall-golang/v3/core"
)

// SemanticHash returns the semantic hash of an evaluated expression.
Expand Down
8 changes: 4 additions & 4 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log"
"os"

"github.com/philandstuff/dhall-golang/binary"
"github.com/philandstuff/dhall-golang/core"
"github.com/philandstuff/dhall-golang/imports"
"github.com/philandstuff/dhall-golang/parser"
"github.com/philandstuff/dhall-golang/v3/binary"
"github.com/philandstuff/dhall-golang/v3/core"
"github.com/philandstuff/dhall-golang/v3/imports"
"github.com/philandstuff/dhall-golang/v3/parser"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion core/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

// A Value is a Dhall value in beta-normal form. You can think of
Expand Down
2 changes: 1 addition & 1 deletion core/builtins.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"strings"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

func (naturalBuild) Call(x Value) Value {
Expand Down
4 changes: 2 additions & 2 deletions core/builtins_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package core_test
import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/philandstuff/dhall-golang/core"
"github.com/philandstuff/dhall-golang/parser"
"github.com/philandstuff/dhall-golang/v3/core"
"github.com/philandstuff/dhall-golang/v3/parser"
)

var _ = DescribeTable("ArgType of builtins", func(src, typ string) {
Expand Down
2 changes: 1 addition & 1 deletion core/equivalence_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/types"
"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

// Ensure that alphaMatcher is a valid GomegaMatcher
Expand Down
2 changes: 1 addition & 1 deletion core/eval.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"sort"
"strings"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

type env map[string][]Value
Expand Down
2 changes: 1 addition & 1 deletion core/eval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

var _ = Describe("Eval", func() {
Expand Down
2 changes: 1 addition & 1 deletion core/quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
"fmt"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

// Quote takes the Value v and turns it back into a Term.
Expand Down
2 changes: 1 addition & 1 deletion core/quote_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

var _ = DescribeTable("Quote",
Expand Down
2 changes: 1 addition & 1 deletion core/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"errors"
"fmt"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

// GomegaMatcher is a copy of
Expand Down
2 changes: 1 addition & 1 deletion core/typecheck.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package core
import (
"fmt"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

type context map[string][]Value
Expand Down
2 changes: 1 addition & 1 deletion core/typecheck_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
. "github.com/onsi/gomega"
"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

var _ = DescribeTable("functionCheck",
Expand Down
2 changes: 1 addition & 1 deletion example_function_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dhall_test
import (
"fmt"

"github.com/philandstuff/dhall-golang"
"github.com/philandstuff/dhall-golang/v3"
)

// Config is the struct we want to unmarshal from Dhall
Expand Down
2 changes: 1 addition & 1 deletion example_nested_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dhall_test
import (
"fmt"

"github.com/philandstuff/dhall-golang"
"github.com/philandstuff/dhall-golang/v3"
)

// NestedConfig is the struct we want to unmarshal from Dhall
Expand Down
2 changes: 1 addition & 1 deletion example_tagged_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dhall_test
import (
"fmt"

"github.com/philandstuff/dhall-golang"
"github.com/philandstuff/dhall-golang/v3"
)

// TaggedMessage is the struct we want to unmarshal from Dhall
Expand Down
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package dhall_test
import (
"fmt"

"github.com/philandstuff/dhall-golang"
"github.com/philandstuff/dhall-golang/v3"
)

// Message is the struct we want to unmarshal from Dhall
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/philandstuff/dhall-golang
module github.com/philandstuff/dhall-golang/v3

require (
github.com/fxamacker/cbor/v2 v2.2.1-0.20200511212021-28e39be4a84f
Expand Down
4 changes: 2 additions & 2 deletions imports/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"os"
"path"

"github.com/philandstuff/dhall-golang/binary"
"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/binary"
"github.com/philandstuff/dhall-golang/v3/term"
)

// DhallCache is an interface for caching implementations.
Expand Down
10 changes: 5 additions & 5 deletions imports/imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"bytes"
"fmt"

"github.com/philandstuff/dhall-golang/binary"
"github.com/philandstuff/dhall-golang/core"
"github.com/philandstuff/dhall-golang/parser"
"github.com/philandstuff/dhall-golang/term"
. "github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/binary"
"github.com/philandstuff/dhall-golang/v3/core"
"github.com/philandstuff/dhall-golang/v3/parser"
"github.com/philandstuff/dhall-golang/v3/term"
. "github.com/philandstuff/dhall-golang/v3/term"
)

// Load takes a Term and resolves all imports
Expand Down
6 changes: 3 additions & 3 deletions imports/imports_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"net/http"
"os"

. "github.com/philandstuff/dhall-golang/imports"
. "github.com/philandstuff/dhall-golang/internal"
. "github.com/philandstuff/dhall-golang/term"
. "github.com/philandstuff/dhall-golang/v3/imports"
. "github.com/philandstuff/dhall-golang/v3/internal"
. "github.com/philandstuff/dhall-golang/v3/term"

. "github.com/onsi/ginkgo"
. "github.com/onsi/ginkgo/extensions/table"
Expand Down
2 changes: 1 addition & 1 deletion internal/gubbins.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package internal
import (
"net/url"

"github.com/philandstuff/dhall-golang/term"
"github.com/philandstuff/dhall-golang/v3/term"
)

func NewImport(fetchable term.Fetchable, mode term.ImportMode) term.Import {
Expand Down
Loading

0 comments on commit e5ae7c9

Please sign in to comment.