github ent/ent v0.6.0

latest releases: v0.13.1, v0.13.0, v0.12.5...
3 years ago

New import path 🎊

Package path was changed from github.com/facebook/ent to entgo.io/ent.
Please use the following command (on Mac) to replace imports:

For github.com/facebookincubator/ent-contrib:

find . -type f -name '*.go' -exec sed -i '' 's/github.com\/facebookincubator\/ent-contrib/entgo.io\/contrib/g' {} +

For github.com/facebook/ent:

find . -type f -name '*.go' -exec sed -i '' 's/github.com\/facebook/entgo.io/g' {} +

schema/fields

  • Add DefaultFunc option for fields (#1153)

entc/gen

  • Add support for alternate schema/database names (Thanks @marwan-at-work). Read more here

  • Add field.Comment support in generated assets (Thanks @kerbelp)

  • Breaking change: add the edge-name as the default json tag for edge fields (#1204):

    - Users []*User
    + Users []*User `json:"users,omitempty"`

dialect/sql/schema

dialect/sql/sqlgraph

  • Apply predicate on update-node

Besides these, there are multiple bug fixes and small perf improvements in this release.

Don't miss a new ent release

NewReleases is sending notifications on new releases.