@expo/fingerprint 0.3.0 → 0.4.1
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/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 0.4.1 — 2023-11-14
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 0.4.0 — 2023-10-17
|
|
18
|
+
|
|
19
|
+
### 💡 Others
|
|
20
|
+
|
|
21
|
+
- Transpile for Node 18 (LTS). ([#24471](https://github.com/expo/expo/pull/24471) by [@EvanBacon](https://github.com/EvanBacon))
|
|
22
|
+
|
|
13
23
|
## 0.3.0 — 2023-09-20
|
|
14
24
|
|
|
15
25
|
### 🛠 Breaking changes
|
package/build/utils/Path.js
CHANGED
|
@@ -18,7 +18,7 @@ function isIgnoredPath(filePath, ignorePaths, minimatchOptions = { dot: true })
|
|
|
18
18
|
// As long as previous match result is true and not matched from the current negate pattern, we should early return.
|
|
19
19
|
return false;
|
|
20
20
|
}
|
|
21
|
-
result
|
|
21
|
+
result ||= currMatch;
|
|
22
22
|
}
|
|
23
23
|
return result;
|
|
24
24
|
}
|
package/build/utils/Path.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Path.js","sourceRoot":"","sources":["../../src/utils/Path.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAElC;;GAEG;AACH,SAAgB,aAAa,CAC3B,QAAgB,EAChB,WAAqB,EACrB,mBAAuC,EAAE,GAAG,EAAE,IAAI,EAAE;IAEpD,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,CACnC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,mBAAS,CAAC,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC,CACtE,CAAC;IAEF,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;QACxC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,YAAY,CAAC,MAAM,IAAI,MAAM,IAAI,CAAC,SAAS,EAAE;YAC/C,yCAAyC;YACzC,oHAAoH;YACpH,OAAO,KAAK,CAAC;SACd;QACD,MAAM,
|
|
1
|
+
{"version":3,"file":"Path.js","sourceRoot":"","sources":["../../src/utils/Path.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAElC;;GAEG;AACH,SAAgB,aAAa,CAC3B,QAAgB,EAChB,WAAqB,EACrB,mBAAuC,EAAE,GAAG,EAAE,IAAI,EAAE;IAEpD,MAAM,aAAa,GAAG,WAAW,CAAC,GAAG,CACnC,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,mBAAS,CAAC,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC,CACtE,CAAC;IAEF,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;QACxC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC/C,IAAI,YAAY,CAAC,MAAM,IAAI,MAAM,IAAI,CAAC,SAAS,EAAE;YAC/C,yCAAyC;YACzC,oHAAoH;YACpH,OAAO,KAAK,CAAC;SACd;QACD,MAAM,KAAK,SAAS,CAAC;KACtB;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AApBD,sCAoBC"}
|
|
@@ -24,42 +24,49 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
24
24
|
"type": "dir",
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"filePath": "node_modules/expo-
|
|
27
|
+
"filePath": "node_modules/expo-file-system/android",
|
|
28
28
|
"reasons": [
|
|
29
29
|
"expoAutolinkingAndroid",
|
|
30
30
|
],
|
|
31
31
|
"type": "dir",
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"filePath": "node_modules/expo-
|
|
34
|
+
"filePath": "node_modules/expo-font/android",
|
|
35
35
|
"reasons": [
|
|
36
36
|
"expoAutolinkingAndroid",
|
|
37
37
|
],
|
|
38
38
|
"type": "dir",
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
"filePath": "node_modules/expo-
|
|
41
|
+
"filePath": "node_modules/expo-keep-awake/android",
|
|
42
42
|
"reasons": [
|
|
43
43
|
"expoAutolinkingAndroid",
|
|
44
44
|
],
|
|
45
45
|
"type": "dir",
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
"filePath": "node_modules/expo-
|
|
48
|
+
"filePath": "node_modules/expo-modules-core/android",
|
|
49
49
|
"reasons": [
|
|
50
50
|
"expoAutolinkingAndroid",
|
|
51
51
|
],
|
|
52
52
|
"type": "dir",
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"filePath": "node_modules/expo-modules-core/android",
|
|
55
|
+
"filePath": "node_modules/expo-modules-core/android-annotation",
|
|
56
|
+
"reasons": [
|
|
57
|
+
"expoAutolinkingAndroid",
|
|
58
|
+
],
|
|
59
|
+
"type": "dir",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"filePath": "node_modules/expo-modules-core/android-annotation-processor",
|
|
56
63
|
"reasons": [
|
|
57
64
|
"expoAutolinkingAndroid",
|
|
58
65
|
],
|
|
59
66
|
"type": "dir",
|
|
60
67
|
},
|
|
61
68
|
{
|
|
62
|
-
"contents": "{"modules":[{"packageName":"expo","packageVersion":"
|
|
69
|
+
"contents": "{"extraDependencies":{"androidMavenRepos":[],"iosPods":{}},"modules":[{"packageName":"expo","packageVersion":"49.0.16","projects":[{"name":"expo","sourceDir":"node_modules/expo/android"}],"modules":[]},{"packageName":"expo-application","packageVersion":"5.3.1","projects":[{"name":"expo-application","sourceDir":"node_modules/expo-application/android"}],"modules":[]},{"packageName":"expo-constants","packageVersion":"14.4.2","projects":[{"name":"expo-constants","sourceDir":"node_modules/expo-constants/android"}],"modules":["expo.modules.constants.ConstantsModule"]},{"packageName":"expo-file-system","packageVersion":"15.4.4","projects":[{"name":"expo-file-system","sourceDir":"node_modules/expo-file-system/android"}],"modules":["expo.modules.filesystem.FileSystemModule"]},{"packageName":"expo-font","packageVersion":"11.4.0","projects":[{"name":"expo-font","sourceDir":"node_modules/expo-font/android"}],"modules":[]},{"packageName":"expo-keep-awake","packageVersion":"12.3.0","projects":[{"name":"expo-keep-awake","sourceDir":"node_modules/expo-keep-awake/android"}],"modules":[]},{"packageName":"expo-modules-core","packageVersion":"1.5.11","projects":[{"name":"expo-modules-core","sourceDir":"node_modules/expo-modules-core/android"},{"name":"expo-modules-core$android-annotation","sourceDir":"node_modules/expo-modules-core/android-annotation"},{"name":"expo-modules-core$android-annotation-processor","sourceDir":"node_modules/expo-modules-core/android-annotation-processor"}],"modules":[]}]}",
|
|
63
70
|
"id": "expoAutolinkingConfig:android",
|
|
64
71
|
"reasons": [
|
|
65
72
|
"expoAutolinkingAndroid",
|
|
@@ -87,13 +94,6 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
87
94
|
],
|
|
88
95
|
"type": "dir",
|
|
89
96
|
},
|
|
90
|
-
{
|
|
91
|
-
"filePath": "node_modules/expo-error-recovery/ios",
|
|
92
|
-
"reasons": [
|
|
93
|
-
"expoAutolinkingIos",
|
|
94
|
-
],
|
|
95
|
-
"type": "dir",
|
|
96
|
-
},
|
|
97
97
|
{
|
|
98
98
|
"filePath": "node_modules/expo-file-system/ios",
|
|
99
99
|
"reasons": [
|
|
@@ -123,7 +123,7 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
123
123
|
"type": "dir",
|
|
124
124
|
},
|
|
125
125
|
{
|
|
126
|
-
"contents": "{"modules":[{"packageName":"expo","packageVersion":"
|
|
126
|
+
"contents": "{"extraDependencies":{"androidMavenRepos":[],"iosPods":{}},"modules":[{"packageName":"expo","packageVersion":"49.0.16","pods":[{"podName":"Expo","podspecDir":"node_modules/expo"}],"swiftModuleNames":["Expo"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-application","packageVersion":"5.3.1","pods":[{"podName":"EXApplication","podspecDir":"node_modules/expo-application/ios"}],"swiftModuleNames":["EXApplication"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-constants","packageVersion":"14.4.2","pods":[{"podName":"EXConstants","podspecDir":"node_modules/expo-constants/ios"}],"swiftModuleNames":["EXConstants"],"modules":["ConstantsModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-file-system","packageVersion":"15.4.4","pods":[{"podName":"EXFileSystem","podspecDir":"node_modules/expo-file-system/ios"}],"swiftModuleNames":["EXFileSystem"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-font","packageVersion":"11.4.0","pods":[{"podName":"EXFont","podspecDir":"node_modules/expo-font/ios"}],"swiftModuleNames":["EXFont"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-keep-awake","packageVersion":"12.3.0","pods":[{"podName":"ExpoKeepAwake","podspecDir":"node_modules/expo-keep-awake/ios"}],"swiftModuleNames":["ExpoKeepAwake"],"modules":["KeepAwakeModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-modules-core","packageVersion":"1.5.11","pods":[{"podName":"ExpoModulesCore","podspecDir":"node_modules/expo-modules-core"}],"swiftModuleNames":["ExpoModulesCore"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false}]}",
|
|
127
127
|
"id": "expoAutolinkingConfig:ios",
|
|
128
128
|
"reasons": [
|
|
129
129
|
"expoAutolinkingIos",
|
|
@@ -131,7 +131,7 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
131
131
|
"type": "contents",
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
|
-
"contents": "{"android":{"adaptiveIcon":{"backgroundColor":"#
|
|
134
|
+
"contents": "{"android":{"adaptiveIcon":{"backgroundColor":"#ffffff","foregroundImage":"./assets/adaptive-icon.png"}},"assetBundlePatterns":["**/*"],"icon":"./assets/icon.png","ios":{"supportsTablet":true},"name":"fingerprint-e2e-managed","orientation":"portrait","platforms":["android","ios"],"sdkVersion":"49.0.0","slug":"fingerprint-e2e-managed","splash":{"backgroundColor":"#ffffff","image":"./assets/splash.png","resizeMode":"contain"},"userInterfaceStyle":"light","version":"1.0.0","web":{"favicon":"./assets/favicon.png"}}",
|
|
135
135
|
"id": "expoConfig",
|
|
136
136
|
"reasons": [
|
|
137
137
|
"expoConfig",
|
|
@@ -159,6 +159,55 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
159
159
|
],
|
|
160
160
|
"type": "file",
|
|
161
161
|
},
|
|
162
|
+
{
|
|
163
|
+
"filePath": "node_modules/chalk/index.js",
|
|
164
|
+
"reasons": [
|
|
165
|
+
"expoConfigPlugins",
|
|
166
|
+
],
|
|
167
|
+
"type": "file",
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"filePath": "node_modules/chalk/node_modules/ansi-styles/index.js",
|
|
171
|
+
"reasons": [
|
|
172
|
+
"expoConfigPlugins",
|
|
173
|
+
],
|
|
174
|
+
"type": "file",
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"filePath": "node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/index.js",
|
|
178
|
+
"reasons": [
|
|
179
|
+
"expoConfigPlugins",
|
|
180
|
+
],
|
|
181
|
+
"type": "file",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
"filePath": "node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/conversions.js",
|
|
185
|
+
"reasons": [
|
|
186
|
+
"expoConfigPlugins",
|
|
187
|
+
],
|
|
188
|
+
"type": "file",
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"filePath": "node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/node_modules/color-name/index.js",
|
|
192
|
+
"reasons": [
|
|
193
|
+
"expoConfigPlugins",
|
|
194
|
+
],
|
|
195
|
+
"type": "file",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"filePath": "node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert/route.js",
|
|
199
|
+
"reasons": [
|
|
200
|
+
"expoConfigPlugins",
|
|
201
|
+
],
|
|
202
|
+
"type": "file",
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"filePath": "node_modules/chalk/templates.js",
|
|
206
|
+
"reasons": [
|
|
207
|
+
"expoConfigPlugins",
|
|
208
|
+
],
|
|
209
|
+
"type": "file",
|
|
210
|
+
},
|
|
162
211
|
{
|
|
163
212
|
"filePath": ".gitignore",
|
|
164
213
|
"reasons": [
|
|
@@ -182,7 +231,7 @@ exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
|
|
|
182
231
|
"type": "dir",
|
|
183
232
|
},
|
|
184
233
|
{
|
|
185
|
-
"contents": "{"expo":{"root":"node_modules/expo","name":"expo","platforms":{"ios":{"podspecPath":"node_modules/expo/Expo.podspec","configurations":[],"scriptPhases":[]},"android":{"sourceDir":"node_modules/expo/android","packageImportPath":"import expo.modules.ExpoModulesPackage;","packageInstance":"new ExpoModulesPackage()","buildTypes":[],"componentDescriptors":[],"
|
|
234
|
+
"contents": "{"expo":{"root":"node_modules/expo","name":"expo","platforms":{"ios":{"podspecPath":"node_modules/expo/Expo.podspec","configurations":[],"scriptPhases":[]},"android":{"sourceDir":"node_modules/expo/android","packageImportPath":"import expo.modules.ExpoModulesPackage;","packageInstance":"new ExpoModulesPackage()","buildTypes":[],"componentDescriptors":[],"cmakeListsPath":"node_modules/expo/android/build/generated/source/codegen/jni/CMakeLists.txt"}}}}",
|
|
186
235
|
"id": "rncliAutolinkingConfig",
|
|
187
236
|
"reasons": [
|
|
188
237
|
"bareRncliAutolinking",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import spawnAsync from '@expo/spawn-async';
|
|
2
2
|
import fs from 'fs/promises';
|
|
3
|
-
import os from 'os';
|
|
4
3
|
import path from 'path';
|
|
5
4
|
import rimraf from 'rimraf';
|
|
6
5
|
|
|
@@ -15,13 +14,13 @@ jest.mock('../../src/sourcer/ExpoConfigLoader', () => ({
|
|
|
15
14
|
|
|
16
15
|
describe('bare project test', () => {
|
|
17
16
|
jest.setTimeout(600000);
|
|
18
|
-
const tmpDir =
|
|
17
|
+
const tmpDir = require('temp-dir');
|
|
19
18
|
const projectName = 'fingerprint-e2e-bare';
|
|
20
19
|
const projectRoot = path.join(tmpDir, projectName);
|
|
21
20
|
|
|
22
21
|
beforeAll(async () => {
|
|
23
22
|
rimraf.sync(projectRoot);
|
|
24
|
-
await spawnAsync('
|
|
23
|
+
await spawnAsync('bunx', ['create-expo-app', '-t', 'bare-minimum', projectName], {
|
|
25
24
|
stdio: 'inherit',
|
|
26
25
|
cwd: tmpDir,
|
|
27
26
|
});
|
|
@@ -33,7 +32,7 @@ describe('bare project test', () => {
|
|
|
33
32
|
|
|
34
33
|
it('should have same hash after adding js only library', async () => {
|
|
35
34
|
const hash = await createProjectHashAsync(projectRoot);
|
|
36
|
-
await spawnAsync('
|
|
35
|
+
await spawnAsync('npx', ['expo', 'install', '@react-navigation/core'], {
|
|
37
36
|
stdio: 'ignore',
|
|
38
37
|
cwd: projectRoot,
|
|
39
38
|
});
|
|
@@ -43,7 +42,7 @@ describe('bare project test', () => {
|
|
|
43
42
|
|
|
44
43
|
it('should have different hash after adding native library', async () => {
|
|
45
44
|
const hash = await createProjectHashAsync(projectRoot);
|
|
46
|
-
await spawnAsync('
|
|
45
|
+
await spawnAsync('npx', ['expo', 'install', 'react-native-reanimated'], {
|
|
47
46
|
stdio: 'ignore',
|
|
48
47
|
cwd: projectRoot,
|
|
49
48
|
});
|
|
@@ -26,7 +26,7 @@ describe('managed project test', () => {
|
|
|
26
26
|
|
|
27
27
|
beforeAll(async () => {
|
|
28
28
|
rimraf.sync(projectRoot);
|
|
29
|
-
await spawnAsync('
|
|
29
|
+
await spawnAsync('bunx', ['create-expo-app', '-t', 'blank', projectName], {
|
|
30
30
|
stdio: 'inherit',
|
|
31
31
|
cwd: tmpDir,
|
|
32
32
|
});
|
|
@@ -101,7 +101,7 @@ describe('managed project test', () => {
|
|
|
101
101
|
|
|
102
102
|
it('diffFingerprintChangesAsync - should return diff after adding native library', async () => {
|
|
103
103
|
const fingerprint = await createFingerprintAsync(projectRoot);
|
|
104
|
-
await spawnAsync('
|
|
104
|
+
await spawnAsync('bun', ['install', '--save', '@react-native-community/netinfo@9.3.7'], {
|
|
105
105
|
stdio: 'ignore',
|
|
106
106
|
cwd: projectRoot,
|
|
107
107
|
});
|
|
@@ -110,7 +110,7 @@ describe('managed project test', () => {
|
|
|
110
110
|
[
|
|
111
111
|
{
|
|
112
112
|
"filePath": "node_modules/@react-native-community/netinfo",
|
|
113
|
-
"hash": "
|
|
113
|
+
"hash": "8a255b59e10118a8cf5c1660d12d6b2e9293ed5c",
|
|
114
114
|
"reasons": [
|
|
115
115
|
"bareRncliAutolinking",
|
|
116
116
|
],
|
|
@@ -138,13 +138,15 @@ describe(`getHashSourcesAsync - managed project`, () => {
|
|
|
138
138
|
|
|
139
139
|
beforeAll(async () => {
|
|
140
140
|
rimraf.sync(projectRoot);
|
|
141
|
-
|
|
141
|
+
// Pin the SDK version to prevent the latest version breaking snapshots
|
|
142
|
+
await spawnAsync('bunx', ['create-expo-app', '-t', 'blank@sdk-49', projectName], {
|
|
142
143
|
stdio: 'inherit',
|
|
143
144
|
cwd: tmpDir,
|
|
144
145
|
});
|
|
145
146
|
|
|
146
|
-
// Pin the `expo` package version to prevent the latest version
|
|
147
|
-
await spawnAsync('
|
|
147
|
+
// Pin the `expo` package version to prevent the latest version breaking snapshots
|
|
148
|
+
await spawnAsync('bun', ['install', '--save', 'expo@49.0.16'], {
|
|
149
|
+
stdio: 'ignore',
|
|
148
150
|
cwd: projectRoot,
|
|
149
151
|
});
|
|
150
152
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expo/fingerprint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "A library to generate a fingerprint from a React Native project",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"glob": "^7.1.7",
|
|
49
49
|
"temp-dir": "^2.0.0"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "3142a086578deffd8704a8f1b6f0f661527d836c"
|
|
52
52
|
}
|