@expo/config 11.0.8 → 11.0.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.
@@ -30,31 +30,49 @@ type IosRunOptions = {
30
30
  rebundle?: boolean;
31
31
  };
32
32
  export type RunOptions = AndroidRunOptions | IosRunOptions;
33
- export type ResolveRemoteBuildCacheProps = {
33
+ export type ResolveBuildCacheProps = {
34
34
  projectRoot: string;
35
35
  platform: 'android' | 'ios';
36
36
  runOptions: RunOptions;
37
37
  fingerprintHash: string;
38
38
  };
39
- export type UploadRemoteBuildCacheProps = {
39
+ /**
40
+ * @deprecated Use `ResolveBuildCacheProps` instead.
41
+ */
42
+ export type ResolveRemoteBuildCacheProps = ResolveBuildCacheProps;
43
+ export type UploadBuildCacheProps = {
40
44
  projectRoot: string;
41
45
  buildPath: string;
42
46
  runOptions: RunOptions;
43
47
  fingerprintHash: string;
44
48
  platform: 'android' | 'ios';
45
49
  };
50
+ /**
51
+ * @deprecated Use `ResolveBuildCacheProps` instead.
52
+ */
53
+ export type UploadRemoteBuildCacheProps = UploadBuildCacheProps;
46
54
  export type CalculateFingerprintHashProps = {
47
55
  projectRoot: string;
48
56
  platform: 'android' | 'ios';
49
57
  runOptions: RunOptions;
50
58
  };
51
- export type RemoteBuildCacheProvider<T = any> = {
52
- plugin: RemoteBuildCachePlugin<T>;
59
+ export type BuildCacheProvider<T = any> = {
60
+ plugin: BuildCacheProviderPlugin<T>;
53
61
  options: T;
54
62
  };
55
- export type RemoteBuildCachePlugin<T = any> = {
56
- resolveRemoteBuildCache(props: ResolveRemoteBuildCacheProps, options: T): Promise<string | null>;
57
- uploadRemoteBuildCache(props: UploadRemoteBuildCacheProps, options: T): Promise<string | null>;
63
+ export type BuildCacheProviderPlugin<T = any> = {
58
64
  calculateFingerprintHash?: (props: CalculateFingerprintHashProps, options: T) => Promise<string | null>;
59
- };
65
+ } & ({
66
+ resolveBuildCache(props: ResolveBuildCacheProps, options: T): Promise<string | null>;
67
+ uploadBuildCache(props: UploadBuildCacheProps, options: T): Promise<string | null>;
68
+ } | {
69
+ /**
70
+ * @deprecated Use `resolveBuildCache` instead.
71
+ */
72
+ resolveRemoteBuildCache: (props: ResolveRemoteBuildCacheProps, options: T) => Promise<string | null>;
73
+ /**
74
+ * @deprecated Use `uploadBuildCache` instead.
75
+ */
76
+ uploadRemoteBuildCache: (props: UploadRemoteBuildCacheProps, options: T) => Promise<string | null>;
77
+ });
60
78
  export {};
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=buildCacheProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildCacheProvider.js","names":[],"sources":["../src/buildCacheProvider.ts"],"sourcesContent":["type AndroidRunOptions = {\n variant?: string;\n device?: boolean | string;\n port?: number;\n bundler?: boolean;\n install?: boolean;\n buildCache?: boolean;\n allArch?: boolean;\n binary?: string;\n appId?: string;\n};\n\ntype IosRunOptions = {\n /** iOS device to target. */\n device?: string | boolean;\n /** Dev server port to use, ignored if `bundler` is `false`. */\n port?: number;\n /** Xcode scheme to build. */\n scheme?: string | boolean;\n /** Xcode configuration to build. Default `Debug` */\n configuration?: 'Debug' | 'Release';\n /** Should start the bundler dev server. */\n bundler?: boolean;\n /** Should install missing dependencies before building. */\n install?: boolean;\n /** Should use derived data for builds. */\n buildCache?: boolean;\n /** Path to an existing binary to install on the device. */\n binary?: string;\n\n /** Re-bundle JS and assets, then embed in existing app, and install again. */\n rebundle?: boolean;\n};\n\nexport type RunOptions = AndroidRunOptions | IosRunOptions;\n\nexport type ResolveBuildCacheProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n fingerprintHash: string;\n};\n\n/**\n * @deprecated Use `ResolveBuildCacheProps` instead.\n */\nexport type ResolveRemoteBuildCacheProps = ResolveBuildCacheProps;\n\nexport type UploadBuildCacheProps = {\n projectRoot: string;\n buildPath: string;\n runOptions: RunOptions;\n fingerprintHash: string;\n platform: 'android' | 'ios';\n};\n/**\n * @deprecated Use `ResolveBuildCacheProps` instead.\n */\nexport type UploadRemoteBuildCacheProps = UploadBuildCacheProps;\n\nexport type CalculateFingerprintHashProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n};\n\nexport type BuildCacheProvider<T = any> = {\n plugin: BuildCacheProviderPlugin<T>;\n options: T;\n};\n\nexport type BuildCacheProviderPlugin<T = any> = {\n calculateFingerprintHash?: (\n props: CalculateFingerprintHashProps,\n options: T\n ) => Promise<string | null>;\n} & (\n | {\n resolveBuildCache(props: ResolveBuildCacheProps, options: T): Promise<string | null>;\n uploadBuildCache(props: UploadBuildCacheProps, options: T): Promise<string | null>;\n }\n | {\n /**\n * @deprecated Use `resolveBuildCache` instead.\n */\n resolveRemoteBuildCache: (\n props: ResolveRemoteBuildCacheProps,\n options: T\n ) => Promise<string | null>;\n /**\n * @deprecated Use `uploadBuildCache` instead.\n */\n uploadRemoteBuildCache: (\n props: UploadRemoteBuildCacheProps,\n options: T\n ) => Promise<string | null>;\n }\n);\n"],"mappings":"","ignoreList":[]}
package/build/index.d.ts CHANGED
@@ -2,4 +2,4 @@ export * from './Config';
2
2
  export * from './Config.types';
3
3
  export * from './getExpoSDKVersion';
4
4
  export * from './Errors';
5
- export * from './remoteBuildCache';
5
+ export * from './buildCacheProvider';
package/build/index.js CHANGED
@@ -47,14 +47,14 @@ Object.keys(_Errors).forEach(function (key) {
47
47
  }
48
48
  });
49
49
  });
50
- var _remoteBuildCache = require("./remoteBuildCache");
51
- Object.keys(_remoteBuildCache).forEach(function (key) {
50
+ var _buildCacheProvider = require("./buildCacheProvider");
51
+ Object.keys(_buildCacheProvider).forEach(function (key) {
52
52
  if (key === "default" || key === "__esModule") return;
53
- if (key in exports && exports[key] === _remoteBuildCache[key]) return;
53
+ if (key in exports && exports[key] === _buildCacheProvider[key]) return;
54
54
  Object.defineProperty(exports, key, {
55
55
  enumerable: true,
56
56
  get: function () {
57
- return _remoteBuildCache[key];
57
+ return _buildCacheProvider[key];
58
58
  }
59
59
  });
60
60
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Config","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Config2","_getExpoSDKVersion","_Errors","_remoteBuildCache"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable import/export */\n\nexport * from './Config';\nexport * from './Config.types';\nexport * from './getExpoSDKVersion';\nexport * from './Errors';\nexport * from './remoteBuildCache';\n"],"mappings":";;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,QAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,QAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,QAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,QAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,kBAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,kBAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,kBAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,kBAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,OAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,OAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,OAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,OAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,iBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,iBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,iBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,iBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_Config","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_Config2","_getExpoSDKVersion","_Errors","_buildCacheProvider"],"sources":["../src/index.ts"],"sourcesContent":["/* eslint-disable import/export */\n\nexport * from './Config';\nexport * from './Config.types';\nexport * from './getExpoSDKVersion';\nexport * from './Errors';\nexport * from './buildCacheProvider';\n"],"mappings":";;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,W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AAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,OAAA,CAAAP,GAAA;IAAA;EAAA;AAAA;AACA,IAAAQ,mBAAA,GAAAZ,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAU,mBAAA,EAAAT,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAQ,mBAAA,CAAAR,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAI,mBAAA,CAAAR,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/config",
3
- "version": "11.0.8",
3
+ "version": "11.0.10",
4
4
  "description": "A library for interacting with the app.json",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@babel/code-frame": "~7.10.4",
37
37
  "@expo/config-plugins": "~10.0.2",
38
- "@expo/config-types": "^53.0.3",
38
+ "@expo/config-types": "^53.0.4",
39
39
  "@expo/json-file": "^9.1.4",
40
40
  "deepmerge": "^4.3.1",
41
41
  "getenv": "^1.0.0",
@@ -49,10 +49,10 @@
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/require-from-string": "^1.2.1",
52
- "expo-module-scripts": "^4.1.6"
52
+ "expo-module-scripts": "^4.1.7"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "a142a9fed1d84934aa4d54b500ad9c6d8d803c63"
57
+ "gitHead": "49c9d53cf0a9fc8179d1c8f5268beadd141f70ca"
58
58
  }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=remoteBuildCache.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"remoteBuildCache.js","names":[],"sources":["../src/remoteBuildCache.ts"],"sourcesContent":["type AndroidRunOptions = {\n variant?: string;\n device?: boolean | string;\n port?: number;\n bundler?: boolean;\n install?: boolean;\n buildCache?: boolean;\n allArch?: boolean;\n binary?: string;\n appId?: string;\n};\n\ntype IosRunOptions = {\n /** iOS device to target. */\n device?: string | boolean;\n /** Dev server port to use, ignored if `bundler` is `false`. */\n port?: number;\n /** Xcode scheme to build. */\n scheme?: string | boolean;\n /** Xcode configuration to build. Default `Debug` */\n configuration?: 'Debug' | 'Release';\n /** Should start the bundler dev server. */\n bundler?: boolean;\n /** Should install missing dependencies before building. */\n install?: boolean;\n /** Should use derived data for builds. */\n buildCache?: boolean;\n /** Path to an existing binary to install on the device. */\n binary?: string;\n\n /** Re-bundle JS and assets, then embed in existing app, and install again. */\n rebundle?: boolean;\n};\n\nexport type RunOptions = AndroidRunOptions | IosRunOptions;\n\nexport type ResolveRemoteBuildCacheProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n fingerprintHash: string;\n};\nexport type UploadRemoteBuildCacheProps = {\n projectRoot: string;\n buildPath: string;\n runOptions: RunOptions;\n fingerprintHash: string;\n platform: 'android' | 'ios';\n};\nexport type CalculateFingerprintHashProps = {\n projectRoot: string;\n platform: 'android' | 'ios';\n runOptions: RunOptions;\n};\n\nexport type RemoteBuildCacheProvider<T = any> = {\n plugin: RemoteBuildCachePlugin<T>;\n options: T;\n};\n\nexport type RemoteBuildCachePlugin<T = any> = {\n resolveRemoteBuildCache(props: ResolveRemoteBuildCacheProps, options: T): Promise<string | null>;\n uploadRemoteBuildCache(props: UploadRemoteBuildCacheProps, options: T): Promise<string | null>;\n calculateFingerprintHash?: (\n props: CalculateFingerprintHashProps,\n options: T\n ) => Promise<string | null>;\n};\n"],"mappings":"","ignoreList":[]}