@digdir/designsystemet 1.1.8 → 1.1.10

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.
@@ -6,8 +6,8 @@ import * as R8 from "ramda";
6
6
  // src/config.ts
7
7
  import chalk from "chalk";
8
8
  import * as R7 from "ramda";
9
- import { z } from "zod/v4";
10
- import { fromError } from "zod-validation-error/v4";
9
+ import { z } from "zod";
10
+ import { fromError } from "zod-validation-error";
11
11
 
12
12
  // src/colors/colorMetadata.ts
13
13
  import * as R from "ramda";
@@ -870,11 +870,11 @@ import chalk5 from "chalk";
870
870
  // package.json
871
871
  var package_default = {
872
872
  name: "@digdir/designsystemet",
873
- version: "1.1.8",
873
+ version: "1.1.10",
874
874
  description: "CLI for Designsystemet",
875
875
  author: "Designsystemet team",
876
876
  engines: {
877
- node: ">=22.17.0"
877
+ node: ">=22.18.0"
878
878
  },
879
879
  repository: {
880
880
  type: "git",
@@ -945,22 +945,22 @@ var package_default = {
945
945
  postcss: "^8.5.6",
946
946
  ramda: "^0.31.3",
947
947
  "style-dictionary": "^5.0.1",
948
- zod: "^3.25.76",
949
- "zod-validation-error": "^3.5.3"
948
+ zod: "^4.0.15",
949
+ "zod-validation-error": "^4.0.1"
950
950
  },
951
951
  devDependencies: {
952
952
  "@tokens-studio/types": "0.5.2",
953
953
  "@types/apca-w3": "^0.1.3",
954
954
  "@types/chroma-js": "^3.1.1",
955
955
  "@types/fs-extra": "^11.0.4",
956
- "@types/node": "^22.16.3",
956
+ "@types/node": "^22.17.0",
957
957
  "@types/object-hash": "^3.0.6",
958
- "@types/ramda": "^0.30.2",
958
+ "@types/ramda": "^0.31.0",
959
959
  "fs-extra": "^11.3.0",
960
960
  tslib: "^2.8.1",
961
961
  tsup: "^8.5.0",
962
962
  tsx: "^4.20.3",
963
- typescript: "^5.8.3"
963
+ typescript: "^5.9.2"
964
964
  }
965
965
  };
966
966
 
@@ -4257,8 +4257,8 @@ import * as R23 from "ramda";
4257
4257
  // src/config.ts
4258
4258
  import chalk9 from "chalk";
4259
4259
  import * as R22 from "ramda";
4260
- import { z } from "zod/v4";
4261
- import { fromError } from "zod-validation-error/v4";
4260
+ import { z } from "zod";
4261
+ import { fromError } from "zod-validation-error";
4262
4262
  function mapPathToOptionName(path5) {
4263
4263
  const normalisedPath = path5[0] === "themes" ? ["theme", ...R22.drop(2, path5)] : path5;
4264
4264
  const option = R22.path(normalisedPath, cliOptions);
@@ -1,4 +1,4 @@
1
- import { z } from 'zod/v4';
1
+ import { z } from 'zod';
2
2
  /**
3
3
  * Validates a configuration object against a provided Zod schema.
4
4
  *
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAsC3B;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EACpB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,UAAU,EAAE,MAAM,GACjB,CAAC,CAUH;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,CAexE;AAWD,eAAO,MAAM,UAAU,QAA2C,CAAC;AAyBnE,QAAA,MAAM,WAAW;;;;;;;;;;iBAiBmG,CAAC;AAErH,eAAO,MAAM,YAAY;;iBAEvB,CAAC;AAYH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAAqD,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsCxB;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAC9B,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EACpB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC1C,UAAU,EAAE,MAAM,GACjB,CAAC,CAUH;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,CAexE;AAWD,eAAO,MAAM,UAAU,QAA2C,CAAC;AAyBnE,QAAA,MAAM,WAAW;;;;;;;;;;iBAiBmG,CAAC;AAErH,eAAO,MAAM,YAAY;;iBAEvB,CAAC;AAYH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;iBAAqD,CAAC;AACzF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACxE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
@@ -1,8 +1,8 @@
1
1
  // src/config.ts
2
2
  import chalk from "chalk";
3
3
  import * as R7 from "ramda";
4
- import { z } from "zod/v4";
5
- import { fromError } from "zod-validation-error/v4";
4
+ import { z } from "zod";
5
+ import { fromError } from "zod-validation-error";
6
6
 
7
7
  // src/colors/colorMetadata.ts
8
8
  import * as R from "ramda";
package/dist/src/index.js CHANGED
@@ -2572,11 +2572,11 @@ import * as R7 from "ramda";
2572
2572
  // package.json
2573
2573
  var package_default = {
2574
2574
  name: "@digdir/designsystemet",
2575
- version: "1.1.8",
2575
+ version: "1.1.10",
2576
2576
  description: "CLI for Designsystemet",
2577
2577
  author: "Designsystemet team",
2578
2578
  engines: {
2579
- node: ">=22.17.0"
2579
+ node: ">=22.18.0"
2580
2580
  },
2581
2581
  repository: {
2582
2582
  type: "git",
@@ -2647,22 +2647,22 @@ var package_default = {
2647
2647
  postcss: "^8.5.6",
2648
2648
  ramda: "^0.31.3",
2649
2649
  "style-dictionary": "^5.0.1",
2650
- zod: "^3.25.76",
2651
- "zod-validation-error": "^3.5.3"
2650
+ zod: "^4.0.15",
2651
+ "zod-validation-error": "^4.0.1"
2652
2652
  },
2653
2653
  devDependencies: {
2654
2654
  "@tokens-studio/types": "0.5.2",
2655
2655
  "@types/apca-w3": "^0.1.3",
2656
2656
  "@types/chroma-js": "^3.1.1",
2657
2657
  "@types/fs-extra": "^11.0.4",
2658
- "@types/node": "^22.16.3",
2658
+ "@types/node": "^22.17.0",
2659
2659
  "@types/object-hash": "^3.0.6",
2660
- "@types/ramda": "^0.30.2",
2660
+ "@types/ramda": "^0.31.0",
2661
2661
  "fs-extra": "^11.3.0",
2662
2662
  tslib: "^2.8.1",
2663
2663
  tsup: "^8.5.0",
2664
2664
  tsx: "^4.20.3",
2665
- typescript: "^5.8.3"
2665
+ typescript: "^5.9.2"
2666
2666
  }
2667
2667
  };
2668
2668
 
@@ -1,13 +1,13 @@
1
1
  // src/scripts/createJsonSchema.ts
2
2
  import { writeFile } from "fs/promises";
3
3
  import { resolve } from "path";
4
- import { z as z2 } from "zod/v4";
4
+ import { z as z2 } from "zod";
5
5
 
6
6
  // src/config.ts
7
7
  import chalk from "chalk";
8
8
  import * as R7 from "ramda";
9
- import { z } from "zod/v4";
10
- import { fromError } from "zod-validation-error/v4";
9
+ import { z } from "zod";
10
+ import { fromError } from "zod-validation-error";
11
11
 
12
12
  // src/colors/colorMetadata.ts
13
13
  import * as R from "ramda";
@@ -49,11 +49,11 @@ import chalk4 from "chalk";
49
49
  // package.json
50
50
  var package_default = {
51
51
  name: "@digdir/designsystemet",
52
- version: "1.1.8",
52
+ version: "1.1.10",
53
53
  description: "CLI for Designsystemet",
54
54
  author: "Designsystemet team",
55
55
  engines: {
56
- node: ">=22.17.0"
56
+ node: ">=22.18.0"
57
57
  },
58
58
  repository: {
59
59
  type: "git",
@@ -124,22 +124,22 @@ var package_default = {
124
124
  postcss: "^8.5.6",
125
125
  ramda: "^0.31.3",
126
126
  "style-dictionary": "^5.0.1",
127
- zod: "^3.25.76",
128
- "zod-validation-error": "^3.5.3"
127
+ zod: "^4.0.15",
128
+ "zod-validation-error": "^4.0.1"
129
129
  },
130
130
  devDependencies: {
131
131
  "@tokens-studio/types": "0.5.2",
132
132
  "@types/apca-w3": "^0.1.3",
133
133
  "@types/chroma-js": "^3.1.1",
134
134
  "@types/fs-extra": "^11.0.4",
135
- "@types/node": "^22.16.3",
135
+ "@types/node": "^22.17.0",
136
136
  "@types/object-hash": "^3.0.6",
137
- "@types/ramda": "^0.30.2",
137
+ "@types/ramda": "^0.31.0",
138
138
  "fs-extra": "^11.3.0",
139
139
  tslib: "^2.8.1",
140
140
  tsup: "^8.5.0",
141
141
  tsx: "^4.20.3",
142
- typescript: "^5.8.3"
142
+ typescript: "^5.9.2"
143
143
  }
144
144
  };
145
145
 
@@ -1,11 +1,11 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@digdir/designsystemet",
4
- version: "1.1.8",
4
+ version: "1.1.10",
5
5
  description: "CLI for Designsystemet",
6
6
  author: "Designsystemet team",
7
7
  engines: {
8
- node: ">=22.17.0"
8
+ node: ">=22.18.0"
9
9
  },
10
10
  repository: {
11
11
  type: "git",
@@ -76,22 +76,22 @@ var package_default = {
76
76
  postcss: "^8.5.6",
77
77
  ramda: "^0.31.3",
78
78
  "style-dictionary": "^5.0.1",
79
- zod: "^3.25.76",
80
- "zod-validation-error": "^3.5.3"
79
+ zod: "^4.0.15",
80
+ "zod-validation-error": "^4.0.1"
81
81
  },
82
82
  devDependencies: {
83
83
  "@tokens-studio/types": "0.5.2",
84
84
  "@types/apca-w3": "^0.1.3",
85
85
  "@types/chroma-js": "^3.1.1",
86
86
  "@types/fs-extra": "^11.0.4",
87
- "@types/node": "^22.16.3",
87
+ "@types/node": "^22.17.0",
88
88
  "@types/object-hash": "^3.0.6",
89
- "@types/ramda": "^0.30.2",
89
+ "@types/ramda": "^0.31.0",
90
90
  "fs-extra": "^11.3.0",
91
91
  tslib: "^2.8.1",
92
92
  tsup: "^8.5.0",
93
93
  tsx: "^4.20.3",
94
- typescript: "^5.8.3"
94
+ typescript: "^5.9.2"
95
95
  }
96
96
  };
97
97
 
@@ -46,11 +46,11 @@ var readFile = async (path2, dry, allowFileNotFound) => {
46
46
  // package.json
47
47
  var package_default = {
48
48
  name: "@digdir/designsystemet",
49
- version: "1.1.8",
49
+ version: "1.1.10",
50
50
  description: "CLI for Designsystemet",
51
51
  author: "Designsystemet team",
52
52
  engines: {
53
- node: ">=22.17.0"
53
+ node: ">=22.18.0"
54
54
  },
55
55
  repository: {
56
56
  type: "git",
@@ -121,22 +121,22 @@ var package_default = {
121
121
  postcss: "^8.5.6",
122
122
  ramda: "^0.31.3",
123
123
  "style-dictionary": "^5.0.1",
124
- zod: "^3.25.76",
125
- "zod-validation-error": "^3.5.3"
124
+ zod: "^4.0.15",
125
+ "zod-validation-error": "^4.0.1"
126
126
  },
127
127
  devDependencies: {
128
128
  "@tokens-studio/types": "0.5.2",
129
129
  "@types/apca-w3": "^0.1.3",
130
130
  "@types/chroma-js": "^3.1.1",
131
131
  "@types/fs-extra": "^11.0.4",
132
- "@types/node": "^22.16.3",
132
+ "@types/node": "^22.17.0",
133
133
  "@types/object-hash": "^3.0.6",
134
- "@types/ramda": "^0.30.2",
134
+ "@types/ramda": "^0.31.0",
135
135
  "fs-extra": "^11.3.0",
136
136
  tslib: "^2.8.1",
137
137
  tsup: "^8.5.0",
138
138
  tsx: "^4.20.3",
139
- typescript: "^5.8.3"
139
+ typescript: "^5.9.2"
140
140
  }
141
141
  };
142
142
 
@@ -2413,11 +2413,11 @@ import * as R7 from "ramda";
2413
2413
  // package.json
2414
2414
  var package_default = {
2415
2415
  name: "@digdir/designsystemet",
2416
- version: "1.1.8",
2416
+ version: "1.1.10",
2417
2417
  description: "CLI for Designsystemet",
2418
2418
  author: "Designsystemet team",
2419
2419
  engines: {
2420
- node: ">=22.17.0"
2420
+ node: ">=22.18.0"
2421
2421
  },
2422
2422
  repository: {
2423
2423
  type: "git",
@@ -2488,22 +2488,22 @@ var package_default = {
2488
2488
  postcss: "^8.5.6",
2489
2489
  ramda: "^0.31.3",
2490
2490
  "style-dictionary": "^5.0.1",
2491
- zod: "^3.25.76",
2492
- "zod-validation-error": "^3.5.3"
2491
+ zod: "^4.0.15",
2492
+ "zod-validation-error": "^4.0.1"
2493
2493
  },
2494
2494
  devDependencies: {
2495
2495
  "@tokens-studio/types": "0.5.2",
2496
2496
  "@types/apca-w3": "^0.1.3",
2497
2497
  "@types/chroma-js": "^3.1.1",
2498
2498
  "@types/fs-extra": "^11.0.4",
2499
- "@types/node": "^22.16.3",
2499
+ "@types/node": "^22.17.0",
2500
2500
  "@types/object-hash": "^3.0.6",
2501
- "@types/ramda": "^0.30.2",
2501
+ "@types/ramda": "^0.31.0",
2502
2502
  "fs-extra": "^11.3.0",
2503
2503
  tslib: "^2.8.1",
2504
2504
  tsup: "^8.5.0",
2505
2505
  tsx: "^4.20.3",
2506
- typescript: "^5.8.3"
2506
+ typescript: "^5.9.2"
2507
2507
  }
2508
2508
  };
2509
2509
 
@@ -2429,11 +2429,11 @@ import * as R7 from "ramda";
2429
2429
  // package.json
2430
2430
  var package_default = {
2431
2431
  name: "@digdir/designsystemet",
2432
- version: "1.1.8",
2432
+ version: "1.1.10",
2433
2433
  description: "CLI for Designsystemet",
2434
2434
  author: "Designsystemet team",
2435
2435
  engines: {
2436
- node: ">=22.17.0"
2436
+ node: ">=22.18.0"
2437
2437
  },
2438
2438
  repository: {
2439
2439
  type: "git",
@@ -2504,22 +2504,22 @@ var package_default = {
2504
2504
  postcss: "^8.5.6",
2505
2505
  ramda: "^0.31.3",
2506
2506
  "style-dictionary": "^5.0.1",
2507
- zod: "^3.25.76",
2508
- "zod-validation-error": "^3.5.3"
2507
+ zod: "^4.0.15",
2508
+ "zod-validation-error": "^4.0.1"
2509
2509
  },
2510
2510
  devDependencies: {
2511
2511
  "@tokens-studio/types": "0.5.2",
2512
2512
  "@types/apca-w3": "^0.1.3",
2513
2513
  "@types/chroma-js": "^3.1.1",
2514
2514
  "@types/fs-extra": "^11.0.4",
2515
- "@types/node": "^22.16.3",
2515
+ "@types/node": "^22.17.0",
2516
2516
  "@types/object-hash": "^3.0.6",
2517
- "@types/ramda": "^0.30.2",
2517
+ "@types/ramda": "^0.31.0",
2518
2518
  "fs-extra": "^11.3.0",
2519
2519
  tslib: "^2.8.1",
2520
2520
  tsup: "^8.5.0",
2521
2521
  tsx: "^4.20.3",
2522
- typescript: "^5.8.3"
2522
+ typescript: "^5.9.2"
2523
2523
  }
2524
2524
  };
2525
2525
 
@@ -4,11 +4,11 @@ import chalk3 from "chalk";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@digdir/designsystemet",
7
- version: "1.1.8",
7
+ version: "1.1.10",
8
8
  description: "CLI for Designsystemet",
9
9
  author: "Designsystemet team",
10
10
  engines: {
11
- node: ">=22.17.0"
11
+ node: ">=22.18.0"
12
12
  },
13
13
  repository: {
14
14
  type: "git",
@@ -79,22 +79,22 @@ var package_default = {
79
79
  postcss: "^8.5.6",
80
80
  ramda: "^0.31.3",
81
81
  "style-dictionary": "^5.0.1",
82
- zod: "^3.25.76",
83
- "zod-validation-error": "^3.5.3"
82
+ zod: "^4.0.15",
83
+ "zod-validation-error": "^4.0.1"
84
84
  },
85
85
  devDependencies: {
86
86
  "@tokens-studio/types": "0.5.2",
87
87
  "@types/apca-w3": "^0.1.3",
88
88
  "@types/chroma-js": "^3.1.1",
89
89
  "@types/fs-extra": "^11.0.4",
90
- "@types/node": "^22.16.3",
90
+ "@types/node": "^22.17.0",
91
91
  "@types/object-hash": "^3.0.6",
92
- "@types/ramda": "^0.30.2",
92
+ "@types/ramda": "^0.31.0",
93
93
  "fs-extra": "^11.3.0",
94
94
  tslib: "^2.8.1",
95
95
  tsup: "^8.5.0",
96
96
  tsx: "^4.20.3",
97
- typescript: "^5.8.3"
97
+ typescript: "^5.9.2"
98
98
  }
99
99
  };
100
100
 
@@ -5,11 +5,11 @@ import * as R from "ramda";
5
5
  // package.json
6
6
  var package_default = {
7
7
  name: "@digdir/designsystemet",
8
- version: "1.1.8",
8
+ version: "1.1.10",
9
9
  description: "CLI for Designsystemet",
10
10
  author: "Designsystemet team",
11
11
  engines: {
12
- node: ">=22.17.0"
12
+ node: ">=22.18.0"
13
13
  },
14
14
  repository: {
15
15
  type: "git",
@@ -80,22 +80,22 @@ var package_default = {
80
80
  postcss: "^8.5.6",
81
81
  ramda: "^0.31.3",
82
82
  "style-dictionary": "^5.0.1",
83
- zod: "^3.25.76",
84
- "zod-validation-error": "^3.5.3"
83
+ zod: "^4.0.15",
84
+ "zod-validation-error": "^4.0.1"
85
85
  },
86
86
  devDependencies: {
87
87
  "@tokens-studio/types": "0.5.2",
88
88
  "@types/apca-w3": "^0.1.3",
89
89
  "@types/chroma-js": "^3.1.1",
90
90
  "@types/fs-extra": "^11.0.4",
91
- "@types/node": "^22.16.3",
91
+ "@types/node": "^22.17.0",
92
92
  "@types/object-hash": "^3.0.6",
93
- "@types/ramda": "^0.30.2",
93
+ "@types/ramda": "^0.31.0",
94
94
  "fs-extra": "^11.3.0",
95
95
  tslib: "^2.8.1",
96
96
  tsup: "^8.5.0",
97
97
  tsx: "^4.20.3",
98
- typescript: "^5.8.3"
98
+ typescript: "^5.9.2"
99
99
  }
100
100
  };
101
101
 
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@digdir/designsystemet",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "description": "CLI for Designsystemet",
5
5
  "author": "Designsystemet team",
6
6
  "engines": {
7
- "node": ">=22.17.0"
7
+ "node": ">=22.18.0"
8
8
  },
9
9
  "repository": {
10
10
  "type": "git",
@@ -51,22 +51,22 @@
51
51
  "postcss": "^8.5.6",
52
52
  "ramda": "^0.31.3",
53
53
  "style-dictionary": "^5.0.1",
54
- "zod": "^3.25.76",
55
- "zod-validation-error": "^3.5.3"
54
+ "zod": "^4.0.15",
55
+ "zod-validation-error": "^4.0.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@tokens-studio/types": "0.5.2",
59
59
  "@types/apca-w3": "^0.1.3",
60
60
  "@types/chroma-js": "^3.1.1",
61
61
  "@types/fs-extra": "^11.0.4",
62
- "@types/node": "^22.16.3",
62
+ "@types/node": "^22.17.0",
63
63
  "@types/object-hash": "^3.0.6",
64
- "@types/ramda": "^0.30.2",
64
+ "@types/ramda": "^0.31.0",
65
65
  "fs-extra": "^11.3.0",
66
66
  "tslib": "^2.8.1",
67
67
  "tsup": "^8.5.0",
68
68
  "tsx": "^4.20.3",
69
- "typescript": "^5.8.3"
69
+ "typescript": "^5.9.2"
70
70
  },
71
71
  "scripts": {
72
72
  "designsystemet": "tsx ./bin/designsystemet.ts",