Closed jantimon closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
next-yak-benchmark | π Canceled (Inspect) | Jul 14, 2024 5:32pm | ||
yacijs | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Jul 14, 2024 5:32pm |
The recent changes introduce a new script for testing snapshots in package.json
files and enhance CSS unit handling in the next-yak
package. The __yak_unitPostFix
function is now used for calculating CSS properties in various styled components. Additionally, the appendCssUnitToExpressionValue
function is simplified, and a new helper function, unitPostFix
, is added for appending units to functional and literal values.
File Path | Summary |
---|---|
package.json , packages/next-yak/package.json |
Added a new script test:snapshots for running vitest with the -u flag for updating snapshots. |
packages/next-yak/loaders/__tests__/tsloader.test.ts |
Introduced __yak_unitPostFix function for setting CSS properties in styled components. |
packages/next-yak/.../appendCssUnitToExpressionValue.ts |
Simplified appendCssUnitToExpressionValue by directly handling StringLiteral expressions. |
packages/next-yak/runtime/internals/unitPostFix.ts |
Added unitPostFix function for appending CSS units to various value types. |
In the land of
next-yak
, where styles align,
A script for snapshots, now so divine.
Units appended with a magical twist,
unitPostFix
ensures nothingβs missed.
With__yak_unitPostFix
, our styles grow,
In this rabbit's world, code flows like a pro!
πβ¨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Comparing feature/ignore-falsy-units
(da90f1f) with main
(fc03370)
β
2
untouched benchmarks
Time to disable the bunny? π
fixes #122
Summary by CodeRabbit
New Features
test:snapshots
script for updating snapshots.Bug Fixes
Refactor