fluzer 1.1.1
fluzer: ^1.1.1 copied to clipboard
CLI tool for scaffolding Flutter Zero template projects.
1.1.1 #
Added #
- Version compatibility gate for
newandgen-l10ncommands: the CLI now validates the running CLI version against the project template's required minimum (theminCliVersionfield influtter_zero_config.yaml) before proceeding. Incompatible versions are rejected with a clear upgrade prompt. A--skip-version-checkflag bypasses the gate for debugging only. newcommand now pins the exact template version declared in the project config (flutter_zero_config.yamlversion) when resolving the download source, instead of always picking the latest CLI-compatible template.ProjectConfiggains aminCliVersionfield and anisCliCompatible(currentCliVersion)helper. Legacy projects withoutminCliVersiondefault to"0.0.0"(accepted by any CLI).
Fixed #
SemanticVersionlacked value equality (==/hashCode), causing unreliable version comparisons; value equality is now implemented.
1.1.0 #
Added #
fluzer gen-l10n: runsflutter gen-l10nand auto-generates a type-safe localization access layer.- Parses
l10n.yaml(arb-dir/output-dir/output-class, with fallback probing) and the generatedAppLocalizationsabstract class (brace-counting class-body scanner). - Generates
l10n_code.dart: theL10nCodevalue object with typed factory constructors, symmetrictoString/parseserialization,==/hashCode, and immutableMap<String, String>parameters. - Generates
l10n_code_ext.dart:typeS()/typeE()/typeI()/typeW()toast-type markers and atoToastEffect()shortcut for emitting effects directly from BLoCs. - Generates
l10n_toast_effect_helper.dart: a centralized switch dispatcher covering every ARB key, deserializing parameters by declared type (int.tryParse,DateTime.tryParse, ...). - Auto-wires
L10nToastEffectHelperintodefaultToastHandlevia an AST-based patch with three-state detection (template / already-wired / customized), idempotent on repeated runs. Flags:--skip-handle-patch,--force-handle-patch. - Generated sources are formatted with
dart_styleand tagged with the CLI version.
- Parses
Fixed #
- Placeholder types declared in ARB (e.g.
"type": "int") no longer break generation: parameter types are preserved end-to-end instead of being hardcoded asObject; unparseable parameter declarations now fail loudly withFormatExceptioninstead of being silently dropped. L10nCode.parsetolerates malformed input (e.g. incomplete percent-encoding) instead of throwing inside the effect chain.- Factory parameters named
code/parametersare renamed (codeParam/parametersParam) to avoid shadowing class members; map keys remain unchanged.
1.0.1 #
Changed #
- Switched
README.mdto English (Chinese version preserved asREADME_CN.md). - Rewrote
CHANGELOG.mdin English. - Changed
pubspec.yamldescriptionto English-only.
Added #
- Added
example/directory with CLI usage examples and programmatic API demo. - Added library-level dartdoc to
lib/fluzer.dart.
Fixed #
- Improved pub.dev score: widened
analyzerconstraint from^10.2.0to>=10.0.1 <15.0.0so the constraint supports the latest version (the actual resolved version is still capped at 10.x bycodemod_recipe's transitive^10.0.1).
1.0.0 #
Initial release.
Added #
fluzer create <name>: Generate a Flutter Zero project in one step (supports local path, remote zip, and template registry sources).fluzer new <feature>: Generate a feature module in an existing project with automatic DI registration injection.fluzer version: Check the latest CLI and template versions with update notifications.fluzer cache list|clean: View or clear the local template cache.- Built-in China mirror fallback (ghfast.top / api.gitproxy.dev) for improved domestic access stability.
- Colored log output and clear command help messages.