@codefast/theme 0.4.0-canary.4 → 0.4.0-canary.5
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,11 @@
|
|
|
1
1
|
# @codefast/theme
|
|
2
2
|
|
|
3
|
+
## 0.4.0-canary.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
3
9
|
## 0.4.0-canary.4
|
|
4
10
|
|
|
5
11
|
### 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" }).
|
|
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.
|
|
3
|
+
"version": "0.4.0-canary.5",
|
|
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.
|
|
124
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
123
|
+
"@types/node": "^25.9.3",
|
|
124
|
+
"@typescript/native-preview": "7.0.0-dev.20260611.2",
|
|
125
125
|
"@vitejs/plugin-react": "^6.0.2",
|
|
126
126
|
"@vitest/coverage-v8": "^4.1.8",
|
|
127
127
|
"jsdom": "^29.1.1",
|
|
128
128
|
"tsdown": "^0.22.2",
|
|
129
129
|
"typescript": "^6.0.3",
|
|
130
130
|
"vitest": "^4.1.8",
|
|
131
|
-
"@codefast/typescript-config": "0.4.0-canary.
|
|
131
|
+
"@codefast/typescript-config": "0.4.0-canary.5"
|
|
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
|
-
.
|
|
127
|
+
.validator(colorSchemeSchema)
|
|
128
128
|
.handler(({ data }: { data: ColorScheme }): void => {
|
|
129
129
|
setCookie(STORAGE_KEY, data, {
|
|
130
130
|
httpOnly: true,
|