@codefast/theme 0.4.0-canary.4 → 0.4.0-canary.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @codefast/theme
2
2
 
3
+ ## 0.4.0-canary.6
4
+
5
+ ## 0.4.0-canary.5
6
+
7
+ ### Patch Changes
8
+
9
+ - [#501](https://github.com/codefastlabs/codefast/pull/501) [`407d88e`](https://github.com/codefastlabs/codefast/commit/407d88ed1a1fd8e97f224a4fb09fd279f0159936) Thanks [@thevuong](https://github.com/thevuong)! - fix(theme): migrate `setColorSchemeServerFn` to TanStack Start `.validator` API
10
+
3
11
  ## 0.4.0-canary.4
4
12
 
5
13
  ### Patch Changes
@@ -71,7 +71,7 @@ const getSsrColorSchemeServerFn = createServerFn().handler(() => readSsrColorSch
71
71
  *
72
72
  * @since 0.3.16-canary.0
73
73
  */
74
- const setColorSchemeServerFn = createServerFn({ method: "POST" }).inputValidator(colorSchemeSchema).handler(({ data }) => {
74
+ const setColorSchemeServerFn = createServerFn({ method: "POST" }).validator(colorSchemeSchema).handler(({ data }) => {
75
75
  setCookie(STORAGE_KEY, data, {
76
76
  httpOnly: true,
77
77
  maxAge: 3600 * 24 * 365,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/theme",
3
- "version": "0.4.0-canary.4",
3
+ "version": "0.4.0-canary.6",
4
4
  "description": "Theme management with React 19 features - optimistic updates, cross-tab sync, and SSR support",
5
5
  "keywords": [
6
6
  "dark-mode",
@@ -120,15 +120,15 @@
120
120
  "@testing-library/jest-dom": "^6.9.1",
121
121
  "@testing-library/react": "^16.3.2",
122
122
  "@testing-library/user-event": "^14.6.1",
123
- "@types/node": "^25.9.2",
124
- "@typescript/native-preview": "7.0.0-dev.20260604.1",
123
+ "@types/node": "^25.9.3",
124
+ "@typescript/native-preview": "7.0.0-dev.20260615.1",
125
125
  "@vitejs/plugin-react": "^6.0.2",
126
- "@vitest/coverage-v8": "^4.1.8",
126
+ "@vitest/coverage-v8": "^4.1.9",
127
127
  "jsdom": "^29.1.1",
128
128
  "tsdown": "^0.22.2",
129
129
  "typescript": "^6.0.3",
130
- "vitest": "^4.1.8",
131
- "@codefast/typescript-config": "0.4.0-canary.4"
130
+ "vitest": "^4.1.9",
131
+ "@codefast/typescript-config": "0.4.0-canary.6"
132
132
  },
133
133
  "peerDependencies": {
134
134
  "@types/react": ">=19.0.0",
@@ -124,7 +124,7 @@ export const getSsrColorSchemeServerFn = createServerFn().handler(
124
124
  * @since 0.3.16-canary.0
125
125
  */
126
126
  export const setColorSchemeServerFn = createServerFn({ method: "POST" })
127
- .inputValidator(colorSchemeSchema)
127
+ .validator(colorSchemeSchema)
128
128
  .handler(({ data }: { data: ColorScheme }): void => {
129
129
  setCookie(STORAGE_KEY, data, {
130
130
  httpOnly: true,