@codefast/theme 0.8.2 → 0.8.3

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.8.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#850](https://github.com/codefastlabs/codefast/pull/850) [`db17956`](https://github.com/codefastlabs/codefast/commit/db17956ca01e5f9c4cca545e194804e8d1591f09) Thanks [@thevuong](https://github.com/thevuong)! - Import Zod as a namespace (`import * as z from "zod"`) so bundlers can tree-shake it. The named `import { z }` kept
8
+ Zod's full locale set in the bundle; the appearance provider's browser bundle now drops roughly 80% (~91 KB → ~18 KB
9
+ gzip).
10
+
3
11
  ## 0.8.2
4
12
 
5
13
  ### Patch Changes
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 CodeFast Labs
3
+ Copyright (c) 2024 Codefast Labs
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  /**
3
3
  * Zod schema for appearance validation.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { z } from "zod";
1
+ import * as z from "zod";
2
2
  /* -----------------------------------------------------------------------------
3
3
  * Schema & Types
4
4
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codefast/theme",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Appearance management for React 19 with HIG-inspired vocabulary - optimistic updates, cross-tab sync, and FOUC-free SSR",
5
5
  "keywords": [
6
6
  "dark-mode",
@@ -16,7 +16,7 @@
16
16
  "url": "https://github.com/codefastlabs/codefast/issues"
17
17
  },
18
18
  "license": "MIT",
19
- "author": "Vuong Phan <mr.thevuong@gmail.com>",
19
+ "author": "Vuong Phan <mr.thevuong@gmail.com> (https://github.com/thevuong)",
20
20
  "repository": {
21
21
  "type": "git",
22
22
  "url": "git+https://github.com/codefastlabs/codefast.git",
@@ -34,13 +34,6 @@
34
34
  "module": "./dist/index.js",
35
35
  "types": "./dist/index.d.ts",
36
36
  "imports": {
37
- "#/tests/*": [
38
- "./tests/*",
39
- "./tests/*.ts",
40
- "./tests/*.tsx",
41
- "./tests/*/index.ts",
42
- "./tests/*/index.tsx"
43
- ],
44
37
  "#/*": {
45
38
  "types": "./dist/*.d.ts",
46
39
  "default": "./dist/*.js"
@@ -91,20 +84,6 @@
91
84
  "dependencies": {
92
85
  "zod": "^4.5.4"
93
86
  },
94
- "devDependencies": {
95
- "@testing-library/dom": "^10.4.1",
96
- "@testing-library/jest-dom": "^7.0.1",
97
- "@testing-library/react": "^16.3.3",
98
- "@testing-library/user-event": "^14.6.7",
99
- "@types/node": "^26.4.1",
100
- "@vitejs/plugin-react": "^6.1.1",
101
- "@vitest/coverage-v8": "^5.0.0",
102
- "jsdom": "^30.0.1",
103
- "typescript": "^7.0.2",
104
- "vite": "^8.2.2",
105
- "vitest": "^5.0.0",
106
- "@codefast/typescript-config": "0.9.0"
107
- },
108
87
  "peerDependencies": {
109
88
  "@types/react": ">=19.0.0",
110
89
  "@types/react-dom": ">=19.0.0",
@@ -121,17 +100,5 @@
121
100
  },
122
101
  "engines": {
123
102
  "node": ">=24.0.0"
124
- },
125
- "scripts": {
126
- "build": "rm -rf dist && tsc -p tsconfig.build.json",
127
- "check-types": "tsc --noEmit",
128
- "clean": "rm -rf dist",
129
- "test": "vitest run",
130
- "test:coverage": "vitest run --coverage",
131
- "test:e2e": "vitest run tests/e2e",
132
- "test:integration": "vitest run tests/integration",
133
- "test:type": "vitest run tests/types",
134
- "test:unit": "vitest run tests/unit",
135
- "test:watch": "vitest"
136
103
  }
137
104
  }