@expo/eas-json 16.19.1 → 16.23.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.
@@ -58,7 +58,15 @@ const CommonBuildProfileSchema = joi_1.default.object({
58
58
  config: joi_1.default.string(),
59
59
  // credentials
60
60
  withoutCredentials: joi_1.default.boolean(),
61
- environment: joi_1.default.string().valid('preview', 'production', 'development'),
61
+ environment: joi_1.default.string()
62
+ .min(3)
63
+ .max(100)
64
+ .pattern(/^[a-z0-9_-]+$/)
65
+ .messages({
66
+ 'string.min': 'Environment name must be at least 3 characters.',
67
+ 'string.max': 'Environment name must not be longer than 100 characters.',
68
+ 'string.pattern.base': 'Environment name can only contain lowercase letters, numbers, dashes and underscores.',
69
+ }),
62
70
  });
63
71
  const PlatformBuildProfileSchema = CommonBuildProfileSchema.concat(joi_1.default.object({
64
72
  // build environment
@@ -45,7 +45,7 @@ export interface CommonBuildProfile {
45
45
  cache?: Omit<Cache, 'clear'>;
46
46
  config?: string;
47
47
  withoutCredentials?: boolean;
48
- environment?: 'preview' | 'production' | 'development';
48
+ environment?: string;
49
49
  }
50
50
  interface PlatformBuildProfile extends Omit<CommonBuildProfile, 'autoIncrement'> {
51
51
  /**
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@expo/eas-json",
3
3
  "description": "A library for interacting with eas.json",
4
- "version": "16.19.1",
4
+ "version": "16.23.0",
5
5
  "author": "Expo <support@expo.dev>",
6
6
  "bugs": "https://github.com/expo/eas-cli/issues",
7
7
  "dependencies": {
8
8
  "@babel/code-frame": "7.23.5",
9
- "@expo/eas-build-job": "1.0.221",
9
+ "@expo/eas-build-job": "1.0.231",
10
10
  "chalk": "4.1.2",
11
11
  "env-string": "1.0.1",
12
12
  "fs-extra": "11.2.0",
@@ -54,5 +54,5 @@
54
54
  "node": "20.11.0",
55
55
  "yarn": "1.22.21"
56
56
  },
57
- "gitHead": "0fd33a95f51ede01a0658558825b1e579106c7f4"
57
+ "gitHead": "10ec54345a292a2f4612e8100005b93ff5eb6a64"
58
58
  }