spark_generator 1.0.0-alpha.17
spark_generator: ^1.0.0-alpha.17 copied to clipboard
Code generator for Spark Framework pages and components
1.0.0-alpha.17 #
- Fix/Improvement to support latest version of the analyzer
1.0.0-alpha.16 #
- 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.
1.0.0-alpha.15 #
- Fix: improve method body extraction in
ComponentGeneratorto correctly handle methods with named parameters and default values. - Internal: Made
getMethodSourcevisible for testing.
1.0.0-alpha.14 #
- 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.
1.0.0-alpha.13 #
- Fix: hide top-level query/queryAll stubs from generated code imports.
- Refactor component generator to use helper for attribute deserialization.
1.0.0-alpha.12 #
- 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
1.0.0-alpha.11 #
- Fix issue where
staticHandlerwas preventingnotFoundHandlerfrom being reached.
1.0.0-alpha.10 #
- Improve nullable Map in DTO serialization to omit null values using conditional entries.
- Fixed nullable nested object serialization in DTOs.
1.0.0-alpha.9 #
- Fix nullable Map serialization in endpoint generator
1.0.0-alpha.8 #
- add null-aware type parsing to endpoint generator
1.0.0-alpha.7 30-01-2026 #
- Fixed issue where components defined in base classes were not detected by the builder.
1.0.0-alpha.6 27-01-2026 #
- Internal improvements.
1.0.0-alpha.5 27-01-2026 #
- 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.
1.0.0-alpha.4 27-01-2026 #
- Fixed web entry generation to avoid importing the page definition file. This allows using
dart:ioin pages.
1.0.0-alpha.3 22-01-2025 #
Breaking changes #
- There is a new way to write Components. Please refer to the documentation for more information.
Features #
- 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
1.0.0-alpha.2 #
- Fixed primitives types (DartTime) to return text/plain instead of application/json in the ISO8601 format
1.0.0-alpha.1 #
- Initial version