Skip to content

← All changelogs

@typestyles/cli

packages/cli/CHANGELOG.md

0.3.5

Patch Changes

  • #287 7979a45 Thanks @dbanksdesign! - Build with tsdown (via Vite+) instead of tsup. Public exports and types are unchanged; the output no longer includes JSDoc comments, and @typestyles/next now shares code between its entry points instead of duplicating it.

0.3.4

Patch Changes

0.3.3

Patch Changes

  • #276 31872bc Thanks @dbanksdesign! - Breaking: recipe() and override() take one object. Positional calls (recipe(name, config), recipe(name, definition, callback), and override(component, config, options)) are removed. Declare slots, variant axes, and vars on that object and put option styles in styles, which is checked against those fields. Every call returns { className, attrs, props }.

0.3.2

Patch Changes

  • #263 9589afb Thanks @dbanksdesign! - Recognize schema-first recipe(namespace, definition, callback) calls when scanning public class names for typestyles snapshot and no-removed-public-classname. The collector now reads the style config from the callback (third argument) and the slots list from the definition (second argument), instead of treating the definition's branded variant.enum(...) / variant.boolean(...) axes as styles and emitting no names.

0.3.1

Patch Changes

  • #257 4464785 Thanks @dbanksdesign! - Recognize typestyles.recipe / typestyles.style (and parenthesized arrow configs) when scanning public class names for typestyles snapshot and no-removed-public-classname.

0.3.0

Minor Changes

  • #251 35afeef Thanks @dbanksdesign! - Public API redesign: createTypeStyles returns a flat { style, hash, recipe, tokens, global, … } surface; nested layers: { order, token, style, global? }; global.rule / global.rules; remove root styles / tokens / global singletons. Migrate codemod emits style / recipe via createTypeStyles. Cache-bust extract module imports so Next route CSS re-runs register styles.

0.2.1

Patch Changes

  • #141 35e02a7 Thanks @dbanksdesign! - Breaking: semantic component class names now use block, block--dimension-option, and block__slot forms instead of hyphen semantic names. Compound variants now emit chained modifier selectors instead of *-compound-N classes. Attribute mode now kebab-cases data-* names and supports slots, returning per-slot { className, attrs, props } results.

    Upgrade notes: regenerate public-classname snapshots; update hand-written CSS / tests that targeted *-base or *-compound-N. Prefer distinct namespaces for styles.class and styles.component when they would share a base class string — dev builds warn on that collision. See docs migration guide (0.10 semantic naming).

0.2.0

Minor Changes

  • #119 10edb85 Thanks @dbanksdesign! - Add styles.scope() for proximity-correct nested theme overrides via CSS @scope (P5.3).

    Introduce @typestyles/cli, a new package with the typestyles binary and subcommands. The first command is typestyles snapshot, which scans semantic styles.class / styles.component class names and writes .typestyles-public-classnames.json for semver guarding. Snapshot logic and heavy deps (typescript, fast-glob) live in this package so the core typestyles runtime stays lean.

    Also ships the opt-in @typestyles/no-removed-public-classname ESLint rule (consumes @typestyles/cli programmatically).