From be9a738df57e59efec9fc06a0e5ba907cab9dce5 Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Thu, 4 Jun 2026 21:34:20 +0700 Subject: [PATCH 1/3] test: StyleDeck accepts undefined --- src/index.ts | 1 + src/styledeck.spec-d.tsx | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/index.ts b/src/index.ts index 090f164..78b8e35 100644 --- a/src/index.ts +++ b/src/index.ts @@ -35,6 +35,7 @@ type StyleDeck = | NonApplicableThemeProperties | NonApplicableObjectProperties | NonApplicableSymbolProperties + | undefined /** * Apply styles as props `{ className, style }`, or attrs `{ class, style }`. diff --git a/src/styledeck.spec-d.tsx b/src/styledeck.spec-d.tsx index ab949c8..8a21440 100644 --- a/src/styledeck.spec-d.tsx +++ b/src/styledeck.spec-d.tsx @@ -3,6 +3,11 @@ const tokens = defineVars({ }) describe('StyleDeck', () => { + it('accepts undefined', () => { + // eslint-disable-next-line unicorn/no-useless-undefined + assertType(undefined) + }) + it('accepts standard properties', () => { assertType({ color: 'red', From 385b1d1bb6a64e242038415f6a655a26298098c5 Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Thu, 4 Jun 2026 21:35:58 +0700 Subject: [PATCH 2/3] build: extract --- etc/vicinage.api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/vicinage.api.md b/etc/vicinage.api.md index 9272bd1..df32bc5 100644 --- a/etc/vicinage.api.md +++ b/etc/vicinage.api.md @@ -22,7 +22,7 @@ export const apply: (...styledeck: StyleDeck[]) => ReturnType; export const sheet: (...styledeck: T) => T; // @public (undocumented) -export type StyleDeck = StyleDeck[] | ~StyleCard | readonly [~StyleCard, InlineStyles] | Theme> | ~NonApplicableThemeProperties | ~NonApplicableObjectProperties | ~NonApplicableSymbolProperties; +export type StyleDeck = StyleDeck[] | ~StyleCard | readonly [~StyleCard, InlineStyles] | Theme> | ~NonApplicableThemeProperties | ~NonApplicableObjectProperties | ~NonApplicableSymbolProperties | undefined; // @internal (undocumented) export type ~CommonProperties = Properties & Omit; From a56397d865979f4a28d98a5d8dbe2da822332250 Mon Sep 17 00:00:00 2001 From: "Chabib N." Date: Thu, 4 Jun 2026 21:36:50 +0700 Subject: [PATCH 3/3] bump: update version from 0.6.19 to 0.6.20 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index ba4a549..62cf0bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vicinage", - "version": "0.6.19", + "version": "0.6.20", "description": "Type-safe and zero-runtime UI styling, right in the markup.", "license": "MIT", "repository": {