@expo/cli 1.0.0-canary-20250304-8a21aa7 → 1.0.0-canary-20250305-0af9ad2

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/build/bin/cli CHANGED
@@ -121,7 +121,7 @@ const args = (0, _arg().default)({
121
121
  });
122
122
  if (args["--version"]) {
123
123
  // Version is added in the build script.
124
- console.log("1.0.0-canary-20250304-8a21aa7");
124
+ console.log("1.0.0-canary-20250305-0af9ad2");
125
125
  process.exit(0);
126
126
  }
127
127
  if (args["--non-interactive"]) {
@@ -31,7 +31,7 @@ class FetchClient {
31
31
  this.headers = {
32
32
  accept: "application/json",
33
33
  "content-type": "application/json",
34
- "user-agent": `expo-cli/${"1.0.0-canary-20250304-8a21aa7"}`,
34
+ "user-agent": `expo-cli/${"1.0.0-canary-20250305-0af9ad2"}`,
35
35
  authorization: "Basic " + _nodeBuffer().Buffer.from(`${target}:`).toString("base64")
36
36
  };
37
37
  }
@@ -79,7 +79,7 @@ function createContext() {
79
79
  cpu: summarizeCpuInfo(),
80
80
  app: {
81
81
  name: "expo/cli",
82
- version: "1.0.0-canary-20250304-8a21aa7"
82
+ version: "1.0.0-canary-20250305-0af9ad2"
83
83
  },
84
84
  ci: _ciInfo().isCI ? {
85
85
  name: _ciInfo().name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/cli",
3
- "version": "1.0.0-canary-20250304-8a21aa7",
3
+ "version": "1.0.0-canary-20250305-0af9ad2",
4
4
  "description": "The Expo CLI",
5
5
  "main": "build/bin/cli",
6
6
  "bin": {
@@ -42,18 +42,17 @@
42
42
  "@0no-co/graphql.web": "^1.0.8",
43
43
  "@babel/runtime": "^7.20.0",
44
44
  "@expo/code-signing-certificates": "^0.0.5",
45
- "@expo/config": "11.0.0-canary-20250304-8a21aa7",
46
- "@expo/config-plugins": "9.1.0-canary-20250304-8a21aa7",
45
+ "@expo/config": "11.0.0-canary-20250305-0af9ad2",
46
+ "@expo/config-plugins": "9.1.0-canary-20250305-0af9ad2",
47
47
  "@expo/devcert": "^1.1.2",
48
- "@expo/env": "1.0.1-canary-20250304-8a21aa7",
49
- "@expo/image-utils": "0.6.6-canary-20250304-8a21aa7",
50
- "@expo/json-file": "9.0.3-canary-20250304-8a21aa7",
51
- "@expo/metro-config": "0.20.0-canary-20250304-8a21aa7",
52
- "@expo/osascript": "2.1.7-canary-20250304-8a21aa7",
53
- "@expo/package-manager": "1.6.2-canary-20250304-8a21aa7",
54
- "@expo/plist": "0.2.3-canary-20250304-8a21aa7",
55
- "@expo/prebuild-config": "9.0.0-canary-20250304-8a21aa7",
56
- "@expo/rudder-sdk-node": "^1.1.1",
48
+ "@expo/env": "1.0.1-canary-20250305-0af9ad2",
49
+ "@expo/image-utils": "0.6.6-canary-20250305-0af9ad2",
50
+ "@expo/json-file": "9.0.3-canary-20250305-0af9ad2",
51
+ "@expo/metro-config": "0.20.0-canary-20250305-0af9ad2",
52
+ "@expo/osascript": "2.1.7-canary-20250305-0af9ad2",
53
+ "@expo/package-manager": "1.6.2-canary-20250305-0af9ad2",
54
+ "@expo/plist": "0.2.3-canary-20250305-0af9ad2",
55
+ "@expo/prebuild-config": "9.0.0-canary-20250305-0af9ad2",
57
56
  "@expo/spawn-async": "^1.7.2",
58
57
  "@expo/ws-tunnel": "^1.0.1",
59
58
  "@expo/xcpretty": "^4.3.0",
@@ -110,7 +109,7 @@
110
109
  "devDependencies": {
111
110
  "@expo/multipart-body-parser": "^1.0.0",
112
111
  "@expo/ngrok": "4.1.3",
113
- "@expo/server": "0.5.2-canary-20250304-8a21aa7",
112
+ "@expo/server": "0.5.2-canary-20250305-0af9ad2",
114
113
  "@graphql-codegen/cli": "^2.16.3",
115
114
  "@graphql-codegen/typescript": "^2.8.7",
116
115
  "@graphql-codegen/typescript-operations": "^2.5.12",
@@ -142,7 +141,7 @@
142
141
  "@types/ws": "^8.5.4",
143
142
  "devtools-protocol": "^0.0.1113120",
144
143
  "expo-atlas": "^0.4.0",
145
- "expo-module-scripts": "4.0.5-canary-20250304-8a21aa7",
144
+ "expo-module-scripts": "4.0.5-canary-20250305-0af9ad2",
146
145
  "find-process": "^1.4.7",
147
146
  "jest-runner-tsd": "^6.0.0",
148
147
  "klaw-sync": "^6.0.0",
@@ -155,5 +154,5 @@
155
154
  "tree-kill": "^1.2.2",
156
155
  "tsd": "^0.28.1"
157
156
  },
158
- "gitHead": "8a21aa734aadf339bb2778a80d32602ed561405b"
157
+ "gitHead": "0af9ad2afd326af47eae076f81a89105a026312d"
159
158
  }
@@ -1,43 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "RudderClient", {
6
- enumerable: true,
7
- get: ()=>RudderClient
8
- });
9
- function _rudderSdkNode() {
10
- const data = /*#__PURE__*/ _interopRequireDefault(require("@expo/rudder-sdk-node"));
11
- _rudderSdkNode = function() {
12
- return data;
13
- };
14
- return data;
15
- }
16
- const _constants = require("../utils/constants");
17
- function _interopRequireDefault(obj) {
18
- return obj && obj.__esModule ? obj : {
19
- default: obj
20
- };
21
- }
22
- class RudderClient {
23
- /** This client should only be used in debug mode, or in the detached script */ strategy = "debug";
24
- constructor(sdk){
25
- if (!sdk) {
26
- sdk = new (_rudderSdkNode()).default(_constants.TELEMETRY_TARGET, _constants.TELEMETRY_ENDPOINT, {
27
- flushInterval: 300
28
- });
29
- }
30
- this.rudderstack = sdk;
31
- }
32
- abort() {
33
- throw new Error("Cannot abort Rudderstack client records");
34
- }
35
- async record(records) {
36
- await Promise.all(records.map((record)=>this.rudderstack.track(record)));
37
- }
38
- async flush() {
39
- await this.rudderstack.flush();
40
- }
41
- }
42
-
43
- //# sourceMappingURL=RudderClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/utils/telemetry/clients/RudderClient.ts"],"sourcesContent":["import RudderAnalytics from '@expo/rudder-sdk-node';\n\nimport { TelemetryClient, TelemetryClientStrategy, TelemetryRecordInternal } from '../types';\nimport { TELEMETRY_ENDPOINT, TELEMETRY_TARGET } from '../utils/constants';\n\nexport class RudderClient implements TelemetryClient {\n /** This client should only be used in debug mode, or in the detached script */\n readonly strategy: TelemetryClientStrategy = 'debug';\n /** The RudderStack SDK instance */\n private rudderstack: RudderAnalytics;\n\n constructor(sdk?: RudderAnalytics) {\n if (!sdk) {\n sdk = new RudderAnalytics(TELEMETRY_TARGET, TELEMETRY_ENDPOINT, {\n flushInterval: 300,\n });\n }\n\n this.rudderstack = sdk;\n }\n\n abort(): TelemetryRecordInternal[] {\n throw new Error('Cannot abort Rudderstack client records');\n }\n\n async record(records: TelemetryRecordInternal[]) {\n await Promise.all(records.map((record) => this.rudderstack.track(record)));\n }\n\n async flush() {\n await this.rudderstack.flush();\n }\n}\n"],"names":["RudderClient","strategy","constructor","sdk","RudderAnalytics","TELEMETRY_TARGET","TELEMETRY_ENDPOINT","flushInterval","rudderstack","abort","Error","record","records","Promise","all","map","track","flush"],"mappings":"AAAA;;;;+BAKaA,cAAY;;aAAZA,YAAY;;;8DALG,uBAAuB;;;;;;2BAGE,oBAAoB;;;;;;AAElE,MAAMA,YAAY;IACvB,6EAA6E,GAC7E,AAASC,QAAQ,GAA4B,OAAO,CAAC;IAIrDC,YAAYC,GAAqB,CAAE;QACjC,IAAI,CAACA,GAAG,EAAE;YACRA,GAAG,GAAG,IAAIC,CAAAA,cAAe,EAAA,CAAA,QAAA,CAACC,UAAgB,iBAAA,EAAEC,UAAkB,mBAAA,EAAE;gBAC9DC,aAAa,EAAE,GAAG;aACnB,CAAC,CAAC;QACL,CAAC;QAED,IAAI,CAACC,WAAW,GAAGL,GAAG,CAAC;IACzB;IAEAM,KAAK,GAA8B;QACjC,MAAM,IAAIC,KAAK,CAAC,yCAAyC,CAAC,CAAC;IAC7D;UAEMC,MAAM,CAACC,OAAkC,EAAE;QAC/C,MAAMC,OAAO,CAACC,GAAG,CAACF,OAAO,CAACG,GAAG,CAAC,CAACJ,MAAM,GAAK,IAAI,CAACH,WAAW,CAACQ,KAAK,CAACL,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7E;UAEMM,KAAK,GAAG;QACZ,MAAM,IAAI,CAACT,WAAW,CAACS,KAAK,EAAE,CAAC;IACjC;CACD"}
@@ -1,82 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "RudderDetachedClient", {
6
- enumerable: true,
7
- get: ()=>RudderDetachedClient
8
- });
9
- function _nodeChildProcess() {
10
- const data = require("node:child_process");
11
- _nodeChildProcess = function() {
12
- return data;
13
- };
14
- return data;
15
- }
16
- function _nodeFs() {
17
- const data = /*#__PURE__*/ _interopRequireDefault(require("node:fs"));
18
- _nodeFs = function() {
19
- return data;
20
- };
21
- return data;
22
- }
23
- function _nodePath() {
24
- const data = /*#__PURE__*/ _interopRequireDefault(require("node:path"));
25
- _nodePath = function() {
26
- return data;
27
- };
28
- return data;
29
- }
30
- const _createTempPath = require("../../createTempPath");
31
- function _interopRequireDefault(obj) {
32
- return obj && obj.__esModule ? obj : {
33
- default: obj
34
- };
35
- }
36
- const debug = require("debug")("expo:telemetry:client:detached");
37
- class RudderDetachedClient {
38
- /** This client should be used for short-lived commands */ strategy = "detached";
39
- /** All recorded telemetry events */ records = [];
40
- abort() {
41
- return this.records;
42
- }
43
- record(record) {
44
- this.records.push(...record.map((record)=>({
45
- ...record,
46
- originalTimestamp: record.sentAt
47
- })));
48
- }
49
- async flush() {
50
- try {
51
- if (!this.records.length) {
52
- return debug("No records to flush, skipping...");
53
- }
54
- const file = (0, _createTempPath.createTempFilePath)("expo-telemetry.json");
55
- const data = JSON.stringify({
56
- records: this.records
57
- });
58
- this.records = [];
59
- await _nodeFs().default.promises.mkdir(_nodePath().default.dirname(file), {
60
- recursive: true
61
- });
62
- await _nodeFs().default.promises.writeFile(file, data);
63
- const child = (0, _nodeChildProcess().spawn)(process.execPath, [
64
- require.resolve("./flushRudderDetached"),
65
- file
66
- ], {
67
- detached: true,
68
- windowsHide: true,
69
- shell: false,
70
- stdio: "ignore"
71
- });
72
- child.unref();
73
- } catch (error) {
74
- // This could fail if any direct or indirect imports change during an upgrade to the `expo` dependency via `npx expo install --fix`,
75
- // since this file may no longer be present after the upgrade, but before the process under the old Expo CLI version is terminated.
76
- debug("Exception while initiating detached flush:", error);
77
- }
78
- debug("Detached flush started");
79
- }
80
- }
81
-
82
- //# sourceMappingURL=RudderDetachedClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/utils/telemetry/clients/RudderDetachedClient.ts"],"sourcesContent":["import { spawn } from 'node:child_process';\nimport fs from 'node:fs';\nimport path from 'node:path';\n\nimport { createTempFilePath } from '../../createTempPath';\nimport type { TelemetryClient, TelemetryClientStrategy, TelemetryRecordInternal } from '../types';\n\nconst debug = require('debug')('expo:telemetry:client:detached') as typeof console.log;\n\nexport class RudderDetachedClient implements TelemetryClient {\n /** This client should be used for short-lived commands */\n readonly strategy: TelemetryClientStrategy = 'detached';\n /** All recorded telemetry events */\n private records: TelemetryRecordInternal[] = [];\n\n abort() {\n return this.records;\n }\n\n record(record: TelemetryRecordInternal[]) {\n this.records.push(\n ...record.map((record) => ({\n ...record,\n originalTimestamp: record.sentAt,\n }))\n );\n }\n\n async flush() {\n try {\n if (!this.records.length) {\n return debug('No records to flush, skipping...');\n }\n\n const file = createTempFilePath('expo-telemetry.json');\n const data = JSON.stringify({ records: this.records });\n\n this.records = [];\n\n await fs.promises.mkdir(path.dirname(file), { recursive: true });\n await fs.promises.writeFile(file, data);\n\n const child = spawn(process.execPath, [require.resolve('./flushRudderDetached'), file], {\n detached: true,\n windowsHide: true,\n shell: false,\n stdio: 'ignore',\n });\n\n child.unref();\n } catch (error) {\n // This could fail if any direct or indirect imports change during an upgrade to the `expo` dependency via `npx expo install --fix`,\n // since this file may no longer be present after the upgrade, but before the process under the old Expo CLI version is terminated.\n debug('Exception while initiating detached flush:', error);\n }\n\n debug('Detached flush started');\n }\n}\n"],"names":["RudderDetachedClient","debug","require","strategy","records","abort","record","push","map","originalTimestamp","sentAt","flush","length","file","createTempFilePath","data","JSON","stringify","fs","promises","mkdir","path","dirname","recursive","writeFile","child","spawn","process","execPath","resolve","detached","windowsHide","shell","stdio","unref","error"],"mappings":"AAAA;;;;+BASaA,sBAAoB;;aAApBA,oBAAoB;;;yBATX,oBAAoB;;;;;;;8DAC3B,SAAS;;;;;;;8DACP,WAAW;;;;;;gCAEO,sBAAsB;;;;;;AAGzD,MAAMC,KAAK,GAAGC,OAAO,CAAC,OAAO,CAAC,CAAC,gCAAgC,CAAC,AAAsB,AAAC;AAEhF,MAAMF,oBAAoB;IAC/B,wDAAwD,GACxD,AAASG,QAAQ,GAA4B,UAAU,CAAC;IACxD,kCAAkC,GAClC,AAAQC,OAAO,GAA8B,EAAE,CAAC;IAEhDC,KAAK,GAAG;QACN,OAAO,IAAI,CAACD,OAAO,CAAC;IACtB;IAEAE,MAAM,CAACA,MAAiC,EAAE;QACxC,IAAI,CAACF,OAAO,CAACG,IAAI,IACZD,MAAM,CAACE,GAAG,CAAC,CAACF,MAAM,GAAK,CAAC;gBACzB,GAAGA,MAAM;gBACTG,iBAAiB,EAAEH,MAAM,CAACI,MAAM;aACjC,CAAC,CAAC,CACJ,CAAC;IACJ;UAEMC,KAAK,GAAG;QACZ,IAAI;YACF,IAAI,CAAC,IAAI,CAACP,OAAO,CAACQ,MAAM,EAAE;gBACxB,OAAOX,KAAK,CAAC,kCAAkC,CAAC,CAAC;YACnD,CAAC;YAED,MAAMY,IAAI,GAAGC,IAAAA,eAAkB,mBAAA,EAAC,qBAAqB,CAAC,AAAC;YACvD,MAAMC,IAAI,GAAGC,IAAI,CAACC,SAAS,CAAC;gBAAEb,OAAO,EAAE,IAAI,CAACA,OAAO;aAAE,CAAC,AAAC;YAEvD,IAAI,CAACA,OAAO,GAAG,EAAE,CAAC;YAElB,MAAMc,OAAE,EAAA,QAAA,CAACC,QAAQ,CAACC,KAAK,CAACC,SAAI,EAAA,QAAA,CAACC,OAAO,CAACT,IAAI,CAAC,EAAE;gBAAEU,SAAS,EAAE,IAAI;aAAE,CAAC,CAAC;YACjE,MAAML,OAAE,EAAA,QAAA,CAACC,QAAQ,CAACK,SAAS,CAACX,IAAI,EAAEE,IAAI,CAAC,CAAC;YAExC,MAAMU,KAAK,GAAGC,IAAAA,iBAAK,EAAA,MAAA,EAACC,OAAO,CAACC,QAAQ,EAAE;gBAAC1B,OAAO,CAAC2B,OAAO,CAAC,uBAAuB,CAAC;gBAAEhB,IAAI;aAAC,EAAE;gBACtFiB,QAAQ,EAAE,IAAI;gBACdC,WAAW,EAAE,IAAI;gBACjBC,KAAK,EAAE,KAAK;gBACZC,KAAK,EAAE,QAAQ;aAChB,CAAC,AAAC;YAEHR,KAAK,CAACS,KAAK,EAAE,CAAC;QAChB,EAAE,OAAOC,KAAK,EAAE;YACd,oIAAoI;YACpI,mIAAmI;YACnIlC,KAAK,CAAC,4CAA4C,EAAEkC,KAAK,CAAC,CAAC;QAC7D,CAAC;QAEDlC,KAAK,CAAC,wBAAwB,CAAC,CAAC;IAClC;CACD"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _nodeFs() {
6
- const data = /*#__PURE__*/ _interopRequireDefault(require("node:fs"));
7
- _nodeFs = function() {
8
- return data;
9
- };
10
- return data;
11
- }
12
- const _rudderClient = require("./RudderClient");
13
- function _interopRequireDefault(obj) {
14
- return obj && obj.__esModule ? obj : {
15
- default: obj
16
- };
17
- }
18
- const telemetryFile = process.argv[2];
19
- flush().catch(()=>_nodeFs().default.promises.unlink(telemetryFile)).finally(()=>process.exit(0));
20
- async function flush() {
21
- if (!telemetryFile) return;
22
- let json;
23
- let data;
24
- try {
25
- json = await _nodeFs().default.promises.readFile(telemetryFile, "utf8");
26
- data = JSON.parse(json);
27
- } catch (error) {
28
- if (error.code === "ENOENT") return;
29
- throw error;
30
- }
31
- if (data.records.length) {
32
- const client = new _rudderClient.RudderClient();
33
- await client.record(data.records);
34
- await client.flush();
35
- }
36
- await _nodeFs().default.promises.unlink(telemetryFile);
37
- }
38
-
39
- //# sourceMappingURL=flushRudderDetached.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../../src/utils/telemetry/clients/flushRudderDetached.ts"],"sourcesContent":["import fs from 'node:fs';\n\nimport { RudderClient } from './RudderClient';\nimport type { TelemetryRecordInternal } from '../types';\n\nconst telemetryFile = process.argv[2];\n\nflush()\n .catch(() => fs.promises.unlink(telemetryFile))\n .finally(() => process.exit(0));\n\nasync function flush() {\n if (!telemetryFile) return;\n\n let json: string;\n let data: { records: TelemetryRecordInternal[] };\n\n try {\n json = await fs.promises.readFile(telemetryFile, 'utf8');\n data = JSON.parse(json) as any;\n } catch (error: any) {\n if (error.code === 'ENOENT') return;\n throw error;\n }\n\n if (data.records.length) {\n const client = new RudderClient();\n await client.record(data.records);\n await client.flush();\n }\n\n await fs.promises.unlink(telemetryFile);\n}\n"],"names":["telemetryFile","process","argv","flush","catch","fs","promises","unlink","finally","exit","json","data","readFile","JSON","parse","error","code","records","length","client","RudderClient","record"],"mappings":"AAAA;;;;;8DAAe,SAAS;;;;;;8BAEK,gBAAgB;;;;;;AAG7C,MAAMA,aAAa,GAAGC,OAAO,CAACC,IAAI,CAAC,CAAC,CAAC,AAAC;AAEtCC,KAAK,EAAE,CACJC,KAAK,CAAC,IAAMC,OAAE,EAAA,QAAA,CAACC,QAAQ,CAACC,MAAM,CAACP,aAAa,CAAC,CAAC,CAC9CQ,OAAO,CAAC,IAAMP,OAAO,CAACQ,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;AAElC,eAAeN,KAAK,GAAG;IACrB,IAAI,CAACH,aAAa,EAAE,OAAO;IAE3B,IAAIU,IAAI,AAAQ,AAAC;IACjB,IAAIC,IAAI,AAAwC,AAAC;IAEjD,IAAI;QACFD,IAAI,GAAG,MAAML,OAAE,EAAA,QAAA,CAACC,QAAQ,CAACM,QAAQ,CAACZ,aAAa,EAAE,MAAM,CAAC,CAAC;QACzDW,IAAI,GAAGE,IAAI,CAACC,KAAK,CAACJ,IAAI,CAAC,AAAO,CAAC;IACjC,EAAE,OAAOK,KAAK,EAAO;QACnB,IAAIA,KAAK,CAACC,IAAI,KAAK,QAAQ,EAAE,OAAO;QACpC,MAAMD,KAAK,CAAC;IACd,CAAC;IAED,IAAIJ,IAAI,CAACM,OAAO,CAACC,MAAM,EAAE;QACvB,MAAMC,MAAM,GAAG,IAAIC,aAAY,aAAA,EAAE,AAAC;QAClC,MAAMD,MAAM,CAACE,MAAM,CAACV,IAAI,CAACM,OAAO,CAAC,CAAC;QAClC,MAAME,MAAM,CAAChB,KAAK,EAAE,CAAC;IACvB,CAAC;IAED,MAAME,OAAE,EAAA,QAAA,CAACC,QAAQ,CAACC,MAAM,CAACP,aAAa,CAAC,CAAC;AAC1C,CAAC"}
@@ -1,5 +0,0 @@
1
- // this file is intentionally left blank for the purposes of upgrading to SDK 52 via `npx expo install expo@next|latest --fix`.
2
- // The upgrade of the `expo` package is completed under the old CLI version, which expects this file.
3
- "use strict";
4
-
5
- //# sourceMappingURL=flushDetached.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/utils/telemetry/flushDetached.ts"],"sourcesContent":["// this file is intentionally left blank for the purposes of upgrading to SDK 52 via `npx expo install expo@next|latest --fix`.\n// The upgrade of the `expo` package is completed under the old CLI version, which expects this file.\n"],"names":[],"mappings":"AAAA,+HAA+H;AAC/H,qGAAqG;AADrG"}