trackplan 0.2.0
trackplan: ^0.2.0 copied to clipboard
Type-safe analytics code generator. Turns one YAML tracking plan into Dart code so typos and missing event parameters become compile errors.
Changelog #
0.2.0 #
Same behavior as the TypeScript package trackplan 0.2.0 on npm.
Breaking changes:
- Params named after
Objectmembers, and events or params namedthenorto_j_s_o_n, now get a trailing underscore in generated code (for examplevalue_ofbecomesvalueOf_), like events already did. The names sent to analytics are unchanged. - A tab at the start of a line is now an error (TP008).
Other changes:
--jsonoutput escapes control characters in thefilevalue.- Output paths may not contain invisible characters (U+200B to U+200D, U+2060).
generatechecks again that the target folder is inside the project just before writing.- README: links to the TypeScript package and the main README.
0.1.0 #
First release.
trackplancommand withinit,validate,generate,checkanddocs.- Validates tracking plan version 1 with stable error codes (TP001 to TP118),
reported with line and column;
--jsonoutput for tools. - Generates a dependency-free Dart file with an
Analyticsclass, enums,AnalyticsAdapter,RecordingAnalyticsAdapterandDebugAnalyticsAdapter. - Optional Firebase Analytics limit warnings.
- Generates a Markdown event catalog.