dicebear 10.0.0-rc.5 → 10.0.0

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.
@@ -33,9 +33,15 @@ export function getStyleCommandOptions(style) {
33
33
  switch (field.type) {
34
34
  case 'string':
35
35
  option.type = 'string';
36
+ if (field.list) {
37
+ option.array = true;
38
+ }
36
39
  break;
37
40
  case 'number':
38
41
  option.type = 'number';
42
+ if (field.list) {
43
+ option.array = true;
44
+ }
39
45
  break;
40
46
  case 'range':
41
47
  option.type = 'string';
@@ -45,12 +51,18 @@ export function getStyleCommandOptions(style) {
45
51
  break;
46
52
  case 'enum':
47
53
  option.type = 'string';
54
+ if (field.list) {
55
+ option.array = true;
56
+ }
48
57
  if (!field.weighted) {
49
58
  option.choices = field.values;
50
59
  }
51
60
  break;
52
61
  case 'color':
53
62
  option.type = 'string';
63
+ if (field.list) {
64
+ option.array = true;
65
+ }
54
66
  break;
55
67
  }
56
68
  result[key] = option;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dicebear",
3
- "version": "10.0.0-rc.5",
3
+ "version": "10.0.0",
4
4
  "private": false,
5
5
  "description": "CLI for DiceBear — unique avatars from dozens of styles.",
6
6
  "homepage": "https://github.com/dicebear/dicebear",
@@ -25,9 +25,9 @@
25
25
  "prepublishOnly": "npm run build"
26
26
  },
27
27
  "dependencies": {
28
- "@dicebear/converter": "10.0.0-rc.5",
29
- "@dicebear/core": "10.0.0-rc.5",
30
- "@dicebear/styles": "^10.0.0-rc.11",
28
+ "@dicebear/converter": "10.0.0",
29
+ "@dicebear/core": "10.0.0",
30
+ "@dicebear/styles": "^10.0.0",
31
31
  "ajv": "^8.17.1",
32
32
  "chalk": "^5.4.1",
33
33
  "chalk-template": "^1.1.2",
@@ -47,6 +47,6 @@
47
47
  "typescript": "^5.9.3"
48
48
  },
49
49
  "engines": {
50
- "node": ">=18.0.0"
50
+ "node": ">=22.0.0"
51
51
  }
52
52
  }