All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.2.0 - 2024-11-26
- Add support for enum attributes declared using
ActiveRecord::Enum
or explicitly in serializers (@Envek) - Add support for comments in generated TypeScript interfaces (@Envek)
- Add TypeScript verbatim module syntax support through
verbatim_module_syntax
config option (@patvice) - Add
typelizer:generate:refresh
command to clean output directory and regenerate all interfaces (@patvice) - Allow disabling Typelizer in Rails development with
DISABLE_TYPELIZER
environment variable totrue
(@okuramasafumi) - Allow to get interfaces without generating TypeScript files (@Envek)
- Do not override
Typelizer.dirs
in the railtie initializer (@patvice) - Do not raise on empty nested serializers (@skryukov)
- Attribute options merging in inherited serializers (@Envek)
- Allow recursive type definition (@okuramasafumi)
0.1.5 - 2024-10-07
- Fix the duplicated import with multiple same association (@okuramasafumi)
0.1.4 - 2024-10-04
- PORO model plugin (@okuramasafumi)
- Auto model plugin (@skryukov)
0.1.3 - 2024-09-27
-
Support inline associations (@okuramasafumi, @skryukov)
Example of Alba serializer with inline associations (note the
helper Typelizer::DSL
, see Alba's docs for more details):class FooSerializer include Alba::Resource helper Typelizer::DSL many :bars do typelize_from Bar attributes :id, :name end end
0.1.2 - 2024-09-05
- Prevent Alba's
meta nil
raising an error (@okuramasafumi)
0.1.1 - 2024-08-26
- Failing method inspection (@skryukov, @davidrunger)
0.1.0 - 2024-08-02
- Initial release (@skryukov)