0.12.0
QOL update by @RandomHashTags
Fixes
- minor documentation and
README.mdfixes - compilation failure if using Swift < 6.0 (relating to unit tests and Swift Testing) (commit)
- not being able to use multi-line strings for values (commit)
Changes
- only the function call is now warned for unsafe interpolation instead of the whole function, which was visually noisy (commit)
- updated the minimum required platforms (commit)
- use
FoundationEssentialsinstead ofFoundationwhere applicable HTMLElementTypeis now publicly available (commit)- updated
CONTRIBUTING.mdto better reflect Swift standards and best practices (commit) - moved some code to their own modules and files for improved compilation performance and maintainability
- macro expansions now use
HTMLExpansionContextfor its underlying data and settings (commit) - renamed unit test function names to better reflect their intended behavior
- adoption of
Sendableconformance where applicable - replaced a lot of snake_case with camelCase
- changed how HTML elements are rendered (from the
descriptioncomputed property andHTMLElementprotocol)
Additions
- added the
@inlinableannotation to many publicly accessible functions & properties uncheckedHTMLmacro to ignore compiler warnings (commit)anyHTMLmacro; same ashtmlbut returns an existentialrawHTMLmacro that doesn't escape the inner HTML, with the option to minify the resultanyRawHTMLmacro; same asrawHTMLbut returns an existential- can now use a trailing closure to initialize an element's inner HTML
- added a bunch of CSS stuff, but none if it is usable yet due to needing a lot more work to be feature complete
Removals
- removed
StaticStringequality toStringProtocol(commit) - removed some unnecessary type annotations and white space
Full Changelog: 0.11.0...0.12.0