@zpress/config 0.1.0 → 0.2.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Joggr, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -52,7 +52,7 @@ export default defineConfig({
52
52
 
53
53
  ```json
54
54
  {
55
- "$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.1.0/packages/config/schemas/schema.json",
55
+ "$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json",
56
56
  "title": "My Documentation",
57
57
  "theme": {
58
58
  "name": "arcade",
@@ -70,7 +70,7 @@ export default defineConfig({
70
70
  ### YAML Config with Schema
71
71
 
72
72
  ```yaml
73
- # yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.1.0/packages/config/schemas/schema.json
73
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json
74
74
 
75
75
  title: My Documentation
76
76
  theme:
@@ -165,7 +165,7 @@ Add `$schema` property to your `zpress.config.json`:
165
165
 
166
166
  ```json
167
167
  {
168
- "$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.1.0/packages/config/schemas/schema.json"
168
+ "$schema": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json"
169
169
  }
170
170
  ```
171
171
 
@@ -174,7 +174,7 @@ Add `$schema` property to your `zpress.config.json`:
174
174
  Add a modeline comment to your `zpress.config.yaml`:
175
175
 
176
176
  ```yaml
177
- # yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.1.0/packages/config/schemas/schema.json
177
+ # yaml-language-server: $schema=https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.0/packages/config/schemas/schema.json
178
178
  ```
179
179
 
180
180
  ### Versioned Schemas
@@ -314,7 +314,7 @@ function configErrorFromZod(zodError: z.ZodError): ConfigError
314
314
 
315
315
  Re-exported from `@zpress/theme`:
316
316
 
317
- - `THEME_NAMES` - Array of built-in theme names: `['base', 'midnight', 'arcade', 'arcade-fx']`
317
+ - `THEME_NAMES` - Array of built-in theme names: `['base', 'midnight', 'arcade']`
318
318
  - `COLOR_MODES` - Array of valid color modes: `['dark', 'light', 'toggle']`
319
319
  - `ICON_COLORS` - Array of built-in icon colors: `['purple', 'blue', 'green', 'amber', 'cyan', 'red', 'pink', 'slate']`
320
320
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zpress/config",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Configuration loading and validation for zpress",
5
5
  "keywords": [
6
6
  "config",
@@ -34,28 +34,28 @@
34
34
  "access": "public",
35
35
  "provenance": true
36
36
  },
37
- "scripts": {
38
- "build": "tsx scripts/generate-schema.ts && rslib build",
39
- "dev": "rslib build --watch --no-clean",
40
- "typecheck": "tsc --noEmit",
41
- "generate:schema": "tsx scripts/generate-schema.ts"
42
- },
43
37
  "dependencies": {
44
- "@zpress/theme": "workspace:*",
45
38
  "c12": "4.0.0-beta.3",
46
- "es-toolkit": "catalog:",
47
- "ts-pattern": "catalog:",
48
- "type-fest": "catalog:",
49
- "zod": "catalog:"
39
+ "es-toolkit": "^1.45.1",
40
+ "ts-pattern": "^5.9.0",
41
+ "type-fest": "^5.4.4",
42
+ "zod": "^4.3.6",
43
+ "@zpress/theme": "0.2.1"
50
44
  },
51
45
  "devDependencies": {
52
- "@rslib/core": "catalog:",
46
+ "@rslib/core": "^0.20.0",
53
47
  "@types/node": "^25.5.0",
54
48
  "tsx": "^4.21.0",
55
- "typescript": "catalog:",
49
+ "typescript": "^5.9.3",
56
50
  "zod-to-json-schema": "^3.25.1"
57
51
  },
58
52
  "engines": {
59
53
  "node": ">=24.0.0"
54
+ },
55
+ "scripts": {
56
+ "build": "tsx scripts/generate-schema.ts && rslib build",
57
+ "dev": "rslib build --watch --no-clean",
58
+ "typecheck": "tsc --noEmit",
59
+ "generate:schema": "tsx scripts/generate-schema.ts"
60
60
  }
61
- }
61
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$id": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.1.0/packages/config/schemas/schema.json",
3
+ "$id": "https://raw.githubusercontent.com/joggrdocs/zpress/v0.2.1/packages/config/schemas/schema.json",
4
4
  "title": "Zpress Configuration",
5
5
  "description": "Configuration file for zpress documentation framework",
6
6
  "$ref": "#/definitions/ZpressConfig",