@typestyles/vite
packages/vite/CHANGELOG.md
0.4.1
Patch Changes
#97
468375cThanks @dbanksdesign! - Add shared convention entry discovery across Rollup, esbuild, and webpack plugins; ship@typestyles/esbuildand@typestyles/webpack; extend discovery to.jsentry files; add Vue, Svelte, esbuild, and Parcel examples with build verification.#98
e17b8a0Thanks @dbanksdesign! - Add npm landing-page READMEs for every published package, an examples index with contributor guidance, and doc-to-example cross-links (P2.13).Updated dependencies [
468375c,e17b8a0,f5b9c6d]:- @typestyles/build-runner@0.5.0
0.4.0
Minor Changes
#75
8bf64b0Thanks @dbanksdesign! - Add shared convention entry discovery:discoverDefaultExtractModulesandDEFAULT_EXTRACT_MODULE_CANDIDATES(includingstyles/typestyles-entry.tsandstyles/typestyles.tsafter thesrc/…paths).@typestyles/vite re-exports these from
@typestyles/build-runnerand resolves optionalextract.modulesusing the same list.@typestyles/next depends on
@typestyles/build-runner, alignsbuildTypestylesForNextwith that discovery, defaultscssOutFiletoapp/typestyles.cssand manifest output unless overridden, addswithTypestylesfor production config when a convention file exists, and re-exports the discovery helpers.withTypestylesnow passesrootthrough to extraction internals so webpack resolution uses the same project root as convention discovery.Breaking (Next):
BuildTypestylesForNextOptionsno longer requiresmodulesorcssOutFile; pass them explicitly when you need non-default behavior.#77
28a3f82Thanks @dbanksdesign! - Breaking: Duplicate logicalstyles.component/styles.classnamespaces across different modules are now build errors (viathis.error) instead of Rollup warnings, so overlapping registrations fail fast duringvite build/ Rollup.The
warnDuplicatesoption still defaults totrue; setwarnDuplicates: falseto skip the check. Namespace extraction now includesstyles.class('…')calls so they participate in the same cross-module duplicate detection asstyles.component.
Patch Changes
- Updated dependencies [
8bf64b0,d8149d6]:- @typestyles/build-runner@0.4.0
0.3.0
Minor Changes
#49: Add ESLint configuration across all packages, examples, and docs. Create shared
eslint.base.jsconfig with TypeScript rules and add lint scripts to all package.json files. Update CI workflow to run lint via turbo.#60: @typestyles/vite: When
extract.modulesis set andmodeis omitted, defaultmodeis now'build':vite devkeeps runtime injection and HMR;vite buildemits the CSS asset and disables client injection (same as explicitmode: 'build'). Passmode: 'runtime'to keep the previous “extract config present but runtime-only” behavior. Vitest: plugin tests extended; runtime/build parity moved tobuild-parity.test.tswithskipIfwhenbuild-runnerdist is missing.@typestyles/next: README documents applying
withTypestylesExtractonly in production so development keeps client runtime injection.Docs (
vite-plugin,zero-runtime,getting-started) androadmap.mddescribe dev-runtime / prod-extraction;examples/vite-app,examples/typewind, andexamples/next-app(next.config.mjs) follow the recommended wiring.
Patch Changes
#50: Add lint-staged for prettier formatting on pre-commit hook and format entire codebase
#54: Unify multi-variant styling on
styles.componentwith a CVA-style return value: call it for a composed class string (base always applied) or destructure named class strings. Supports dimensioned variants (variants,compoundVariants,defaultVariants), flat variant maps, and slot-based configs.Remove
styles.createfrom the publicstylesAPI; usestyles.componentinstead.Update Vite and Rollup static namespace extraction to match
styles.component(...)only (no longer scansstyles.create(...)).Updated dependencies [#49]
Updated dependencies [#50]
- @typestyles/build-runner@0.3.0
0.2.0
Minor Changes
- #25: Updating bundler integrations and adding examples
Patch Changes
- Updated dependencies [#25]
- @typestyles/build-runner@0.2.0
0.1.1
Patch Changes
- #15: Add additional test coverage for vite plugin
0.1.0
Minor Changes
- #4: Add
styles.component()API for multi-variant component styles with support for base styles, variant dimensions, compound variants, and default variants. Addglobal.style()andglobal.fontFace()APIs for applying styles to arbitrary CSS selectors and declaring@font-facerules. Update the Vite plugin to support HMR for the new APIs.
0.0.2
Patch Changes
#1: Initial release of typestyles - CSS-in-TypeScript that embraces CSS instead of hiding from it.
Features:
- Core typestyles library with type-safe CSS styling
- Server-side rendering support
- Vite plugin for HMR support