Releases: ent/ent
Releases · ent/ent
v0.5.4
Users that upgrade to this version and already use schema-hooks or the privacy policy in ent/schema, should follow the steps mentioned in #1115 (comment).
schema/field
- Support for indexing ID fields (Thanks @napei)
- Allow non incremental PKs (Thanks @saantiaguilera)
- Add
DefaultFunc
option to string and bytes builders - Remove the deprecated
ValueMap
option for enum builder
codegen
- Allow field selection in query builder and eager-loading (#1077)
dialect/sql/schema
- Add migration support for JSON columns in old versions of MariaDB (=< 10.2)
- Support for
binary
columns in MySQL (Thanks @nolotz)
dialect/sql/sqlgraph
- Small perf improvements
- Allow arbitrary last insert id type (Thanks @cliedeman)
dialect/sql
- Add schema options for sql builders (Thanks @marwan-at-work)
v0.5.3
v0.5.2
We release this version although it's quite small, in order to provide a stable version for supporting JSON fields migration in MariaDB.
entql
- Add support for
driver.Valuer
in typed predicates
dialect/sql/schema
- Support JSON fields migration for MariaDB
Misc
- Small changes and improvements for the runtime code
v0.5.1
v0.5.0
This version contains multiple bug fixes and perf improvements, but also includes a major feature which is the privacy support and additional small features for ent/schema and code-generation.
schema
- Add support for privacy policy
- Add support for schema annotations
dialect/sql/schema
- Add the
WithForeighKeys
option to migrate - Properly handle indexes of tables with uncountable name (#828)
- Apply size-check only if it is defined in schema (#855)
dialect/sql/sqljson
- Initial work for json_contains predicate
dialect/sql
- Add Left/Right join for the SQL builder
entc/gen:
- Add
gen.Template
for ent extensions - Rename generated
FirstXID
toFirstIDX
- Add
hook.FixedError
helper
entc/internal
- Add feature-flag support for code-generation (allow opt-in to specific features)
- Support schema versioning (#852)
v0.4.3
entc/gen (codegen)
- Add an option for clearing non-unique edges.
- Add validators on group-by and order-by arguments.
- Add templates for supporting custom predicates in codegen (#758).
- Improve API for custom templates (add an option for passing
template.FuncMap
for template execution).
dialect/sql
- Add an experiment package for supporting JSON predicates at runtime named
sqljson
. In the future, JSON predicates will be added to the generated predicates.
schema migration
- Change the
WithFixture
default value to befalse
. It's likely to be removed in the upcoming versions. Users that migrate from v0.0.1, directly to v0.4.3, should passWithFixture(true)
on migration.
misc
- Add the GraphQL integration to ent-contrib, and create a page for it in https://entgo.io/docs/graphql.
v0.4.2
v0.4.0
v0.3.0
This version includes multiple bug fixes, changes in ent/schema, the generated-code and the database migration.
Schema changes
- Add schema annotations support for fields and edges. This API allows to attach metadata to fields and edges and inject them to external templates. More info can be found in the docs.
- Add
GoType
support for enum fields. This change makes it possible to share the same enum type between multiple schemas. - Add the
Unique
option to UUID fields.
Codegen changes
- Add an API for creating bulk of entities. More info can be found in the docs.
- Add the
fail
function to template functions. - Import codegen out (makes goimports faster).
Migration changes
- Fix default value option to enum fields.
- Change ent_types table id type to
uint64
(fromint
).