- Fix/Improvement to support latest version of the analyzer
- Fix: prevent mis-extraction of method calls starting at line beginning in
ComponentGeneratorby refining the regex to require return types or modifiers. - Internal: Refactored
ComponentGeneratorto be asynchronous for better integration withBuildStepand file reading. - Internal: Updated test suite to support async generation and more robust mocking.
- Fix: improve method body extraction in
ComponentGeneratorto correctly handle methods with named parameters and default values. - Internal: Made
getMethodSourcevisible for testing.
- Preserve user code in generated
.impl.dartfiles: non-@Attributefields, user-defined getters, and user-defined setters are now carried over into the generated class. - Constructor parameters for non-
@Attributefields are now forwarded correctly. - Added reserved name filtering to prevent user code from conflicting with generated or inherited SparkComponent/WebComponent members.
- Fix: skip synthetic fields created by the analyzer for explicit getter/setter declarations to avoid duplicate declaration errors.
- Use
statusCodefrom@Endpointannotation for response generation on the happy path. When set (e.g.,statusCode: 201), the generated handler returns that status code instead of the default 200.
- Fix: hide top-level query/queryAll stubs from generated code imports.
- Refactor component generator to use helper for attribute deserialization.
- Added
notFoundPagesupport toSparkServerConfigto correct CSP nonce handling on 404 pages. - Added automatic conversion of camelCase fields to snake_case JSON keys in endpoint generator.
- Improve component generator Attribute type handling
- Fix issue where
staticHandlerwas preventingnotFoundHandlerfrom being reached.
- Improve nullable Map in DTO serialization to omit null values using conditional entries.
- Fixed nullable nested object serialization in DTOs.
- Fix nullable Map serialization in endpoint generator
- add null-aware type parsing to endpoint generator
- Fixed issue where components defined in base classes were not detected by the builder.
- Internal improvements.
- Fixed nested pages web entry generation (pages in subdirectories now generate correct web entry paths).
- Fixed component imports in web entries to use implementation files (
_base.impl.dart) instead of source files.
- Fixed web entry generation to avoid importing the page definition file. This allows using
dart:ioin pages.
- There is a new way to write Components. Please refer to the documentation for more information.
- Added support for csp nonce on scripts and styles
- Fix @Component reactive attributes, Future event was not working properly, and changing value when there was async gap also.
- Fix method extraction in component generator
- Fixed primitives types (DartTime) to return text/plain instead of application/json in the ISO8601 format
- Initial version