Releases: lilnasy/gratelets
astro-dynamic-import@1.1.1
Patch Changes
- #97
53c3047
Thanks @evertonadame! - Fixes an issue where an internally used module ("astro-dynamic-import:internal"
) would sometimes fail to be resolved by vite.
astro-dynamic-import@1.1.0
Minor Changes
- #88
3ec89c4
Thanks @stevenwoodson! - Dynamic imports are now even more optimized. Multiple uses of the same dynamically imported component will result in only one addition of the necessary scripts and styles.
astro-client-interaction@1.1.0
Minor Changes
-
#83
e19eab0
Thanks @leomp12! - Introduces the "idle" value to theclient:interaction
directive. When set, an interaction will schedule the loading of the component for when the browser is idle, instead of loading it immediately.--- import Component from "../components/Counter.jsx" --- <Component client:interaction="idle" />
By default, a component with the
client:interaction
directive could be loaded before or after the ones with theclient:idle
directive, depending on the timing of the first interaction. This feature allowsclient:interaction
components to have predictably lower loading priority thanclient:idle
components.
astro-typed-api@0.2.2
Patch Changes
- #81
07166b4
Thanks @lilnasy! - Prevents error overlay from appearing in dev mode for user errors. Astro's error overlay appears whenever a server side error occurs. For server-side rendering html, it's important to pay attention to them. However, for APIs, an error is just another response - it is unintended for it to take over the browser.
astro-client-interaction@1.0.0
astro-stylex@0.3.0
Minor Changes
-
#76
7dd1ec8
Thanks @lilnasy! - Breaking: The required@stylexjs/stylex
version is now 0.5.1.Updates
@stylexjs/stylex
version to 0.5.1. This version introduces a new API for non-react UI frameworks:stylex.attrs()
.Previously, svelte users had to create a wrapper function around
stylex.props()
, which returned theclassName
prop intended only for React. The newly introducedstylex.attrs()
returns the generated classes in theclass
props, allowing it to work across frameworks.<script context="module"> import stylex from "@stylexjs/stylex" const colorStyles = stylex.create({ red: { backgroundColor: 'red', borderColor: 'darkred', }, green: { backgroundColor: 'lightgreen', borderColor: 'darkgreen', }, }); </script> <button {...stylex.attrs(colorStyles.red)} /> <button {...stylex.attrs(colorStyles.green)} />