snack-sdk 3.6.0-rc.1 → 3.8.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.
- package/CHANGELOG.md +16 -0
- package/build/DependencyResolver.d.ts +26 -25
- package/build/DependencyResolver.js +258 -257
- package/build/DependencyResolver.js.map +1 -1
- package/build/DevSession.d.ts +20 -20
- package/build/DevSession.js +203 -203
- package/build/FileUploader.d.ts +23 -22
- package/build/FileUploader.js +174 -174
- package/build/FileUploader.js.map +1 -1
- package/build/Logger.d.ts +11 -11
- package/build/Logger.js +33 -33
- package/build/Session.d.ts +301 -296
- package/build/Session.js +1171 -1163
- package/build/Session.js.map +1 -1
- package/build/State.d.ts +16 -16
- package/build/State.js +90 -90
- package/build/State.js.map +1 -1
- package/build/WantedVersions.d.ts +17 -16
- package/build/WantedVersions.js +93 -96
- package/build/WantedVersions.js.map +1 -1
- package/build/defaultConfig.d.ts +12 -13
- package/build/defaultConfig.js +29 -29
- package/build/defaultConfig.js.map +1 -1
- package/build/index.d.ts +7 -7
- package/build/index.js +30 -30
- package/build/index.js.map +1 -1
- package/build/transports/CodeMessageBuilder.d.ts +31 -31
- package/build/transports/CodeMessageBuilder.js +196 -196
- package/build/transports/CodeMessageBuilder.js.map +1 -1
- package/build/transports/Protocol.d.ts +64 -64
- package/build/transports/Protocol.js +2 -2
- package/build/transports/Protocol.js.map +1 -1
- package/build/transports/Transport.d.ts +27 -27
- package/build/transports/Transport.js +298 -298
- package/build/transports/index.d.ts +3 -3
- package/build/transports/index.js +22 -22
- package/build/transports/types.d.ts +63 -63
- package/build/transports/types.js +2 -2
- package/build/transports/types.js.map +1 -1
- package/build/transports/webPlayer.d.ts +12 -11
- package/build/transports/webPlayer.js +70 -70
- package/build/transports/webPlayer.js.map +1 -1
- package/build/types.d.ts +185 -250
- package/build/types.js +2 -2
- package/build/types.js.map +1 -1
- package/build/utils.d.ts +17 -16
- package/build/utils.js +68 -68
- package/build/utils.js.map +1 -1
- package/package.json +3 -2
- package/src/DependencyResolver.ts +11 -7
- package/src/FileUploader.ts +3 -1
- package/src/Session.ts +19 -6
- package/src/State.ts +1 -1
- package/src/WantedVersions.ts +3 -2
- package/src/defaultConfig.ts +5 -5
- package/src/index.ts +37 -9
- package/src/transports/CodeMessageBuilder.ts +7 -2
- package/src/transports/Protocol.ts +1 -1
- package/src/transports/types.ts +2 -1
- package/src/transports/webPlayer.ts +3 -1
- package/src/types.ts +19 -83
- package/src/utils.ts +2 -1
- package/build/sdk.d.ts +0 -34
- package/build/sdk.js +0 -139
- package/build/sdk.js.map +0 -1
- package/build/sdks/features.d.ts +0 -9
- package/build/sdks/features.js +0 -13
- package/build/sdks/features.js.map +0 -1
- package/build/sdks/index.d.ts +0 -5
- package/build/sdks/index.js +0 -124
- package/build/sdks/index.js.map +0 -1
- package/build/sdks/types.d.ts +0 -21
- package/build/sdks/types.js +0 -3
- package/build/sdks/types.js.map +0 -1
- package/src/sdk.ts +0 -135
- package/src/sdks/features.ts +0 -11
- package/src/sdks/index.ts +0 -159
- package/src/sdks/types.ts +0 -49
package/src/sdks/index.ts
DELETED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { SDKSpec } from './types';
|
|
2
|
-
|
|
3
|
-
const assets = {
|
|
4
|
-
// @expo/snack-static/react-native-logo.png is an alias that is
|
|
5
|
-
// implemented in the runtime, and uses by the react-native image docs
|
|
6
|
-
'@expo/snack-static/react-native-logo.png': '*',
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
const unimodules: { [name: string]: '*' } = {
|
|
10
|
-
'@unimodules/core': '*',
|
|
11
|
-
'@unimodules/react-native-adapter': '*',
|
|
12
|
-
};
|
|
13
|
-
const legacyUnimoduleInterfaces: { [name: string]: '*' } = {
|
|
14
|
-
'unimodules-barcode-scanner-interface': '*',
|
|
15
|
-
'unimodules-camera-interface': '*',
|
|
16
|
-
'unimodules-constants-interface': '*',
|
|
17
|
-
'unimodules-face-detector-interface': '*',
|
|
18
|
-
'unimodules-file-system-interface': '*',
|
|
19
|
-
'unimodules-font-interface': '*',
|
|
20
|
-
'unimodules-image-loader-interface': '*',
|
|
21
|
-
'unimodules-permissions-interface': '*',
|
|
22
|
-
'unimodules-sensors-interface': '*',
|
|
23
|
-
'unimodules-task-manager-interface': '*',
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
const sdks: { [version: string]: SDKSpec } = {
|
|
27
|
-
'40.0.0': {
|
|
28
|
-
version: '^40.0.0',
|
|
29
|
-
coreModules: {
|
|
30
|
-
...assets,
|
|
31
|
-
...unimodules,
|
|
32
|
-
...legacyUnimoduleInterfaces,
|
|
33
|
-
expo: '40.0.1',
|
|
34
|
-
react: '16.13.1',
|
|
35
|
-
'react-native': '0.63.2',
|
|
36
|
-
'react-dom': '*',
|
|
37
|
-
'react-native-web': '*',
|
|
38
|
-
},
|
|
39
|
-
bundledModules: {
|
|
40
|
-
// Packages that require special initialisation (see Modules.tsx)
|
|
41
|
-
'expo-asset': '*',
|
|
42
|
-
'expo-font': '*',
|
|
43
|
-
'react-native-gesture-handler': '*',
|
|
44
|
-
'react-native-safe-area-context': '*',
|
|
45
|
-
// 'react-native-vector-icons': '*',
|
|
46
|
-
'@expo/vector-icons': '*',
|
|
47
|
-
|
|
48
|
-
// Packages that are used internally by the runtime
|
|
49
|
-
'expo-constants': '*',
|
|
50
|
-
'expo-file-system': '*',
|
|
51
|
-
'expo-permissions': '*',
|
|
52
|
-
'expo-updates': '*',
|
|
53
|
-
'@react-native-community/async-storage': '*',
|
|
54
|
-
|
|
55
|
-
// Common packages that are included for easy of use
|
|
56
|
-
'prop-types': '*',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
'41.0.0': {
|
|
60
|
-
version: '^41.0.0',
|
|
61
|
-
coreModules: {
|
|
62
|
-
...assets,
|
|
63
|
-
...unimodules,
|
|
64
|
-
...legacyUnimoduleInterfaces,
|
|
65
|
-
expo: '41.0.0',
|
|
66
|
-
react: '16.13.1',
|
|
67
|
-
'react-native': '0.63.2',
|
|
68
|
-
'react-dom': '*',
|
|
69
|
-
'react-native-web': '*',
|
|
70
|
-
},
|
|
71
|
-
bundledModules: {
|
|
72
|
-
// Packages that require special initialisation (see Modules.tsx)
|
|
73
|
-
'expo-asset': '*',
|
|
74
|
-
'expo-font': '*',
|
|
75
|
-
'react-native-gesture-handler': '*',
|
|
76
|
-
'react-native-safe-area-context': '*',
|
|
77
|
-
// 'react-native-vector-icons': '*',
|
|
78
|
-
'@expo/vector-icons': '*',
|
|
79
|
-
|
|
80
|
-
// Packages that are used internally by the runtime
|
|
81
|
-
'expo-constants': '*',
|
|
82
|
-
'expo-file-system': '*',
|
|
83
|
-
'expo-permissions': '*',
|
|
84
|
-
'expo-updates': '*',
|
|
85
|
-
'@react-native-async-storage/async-storage': '*',
|
|
86
|
-
|
|
87
|
-
// Common packages that are included for easy of use
|
|
88
|
-
'prop-types': '*',
|
|
89
|
-
},
|
|
90
|
-
deprecatedModules: {
|
|
91
|
-
'@react-native-community/async-storage':
|
|
92
|
-
'Async Storage has moved to new organization: https://github.com/react-native-async-storage/async-storage',
|
|
93
|
-
'expo-permissions':
|
|
94
|
-
'Use permissions getters and requesters in specific modules instead, such as MediaLibrary.getPermissionsAsync() and MediaLibrary.requestPermissionsAsync().',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
'42.0.0': {
|
|
98
|
-
version: '^42.0.0',
|
|
99
|
-
coreModules: {
|
|
100
|
-
...assets,
|
|
101
|
-
...unimodules,
|
|
102
|
-
expo: '42.0.0',
|
|
103
|
-
react: '16.13.1',
|
|
104
|
-
'react-native': '0.63.4',
|
|
105
|
-
'react-dom': '*',
|
|
106
|
-
'react-native-web': '*',
|
|
107
|
-
},
|
|
108
|
-
bundledModules: {
|
|
109
|
-
'expo-asset': '*',
|
|
110
|
-
'expo-font': '*',
|
|
111
|
-
'react-native-gesture-handler': '*',
|
|
112
|
-
'react-native-safe-area-context': '*',
|
|
113
|
-
'@expo/vector-icons': '*',
|
|
114
|
-
'expo-constants': '*',
|
|
115
|
-
'expo-file-system': '*',
|
|
116
|
-
'expo-updates': '*',
|
|
117
|
-
'@react-native-async-storage/async-storage': '*',
|
|
118
|
-
'prop-types': '*',
|
|
119
|
-
},
|
|
120
|
-
deprecatedModules: {
|
|
121
|
-
'@react-native-community/async-storage':
|
|
122
|
-
'Async Storage has moved to new organization: https://github.com/react-native-async-storage/async-storage',
|
|
123
|
-
'expo-permissions':
|
|
124
|
-
'Use permissions getters and requesters in specific modules instead, such as MediaLibrary.getPermissionsAsync() and MediaLibrary.requestPermissionsAsync().',
|
|
125
|
-
},
|
|
126
|
-
},
|
|
127
|
-
'43.0.0': {
|
|
128
|
-
version: '^43.0.0',
|
|
129
|
-
coreModules: {
|
|
130
|
-
...assets,
|
|
131
|
-
...unimodules,
|
|
132
|
-
expo: '~43.0.0',
|
|
133
|
-
react: '17.0.1',
|
|
134
|
-
'react-native': '0.64.2',
|
|
135
|
-
'react-dom': '*',
|
|
136
|
-
'react-native-web': '*',
|
|
137
|
-
},
|
|
138
|
-
bundledModules: {
|
|
139
|
-
'expo-asset': '*',
|
|
140
|
-
'expo-font': '*',
|
|
141
|
-
'react-native-gesture-handler': '*',
|
|
142
|
-
'react-native-safe-area-context': '*',
|
|
143
|
-
'@expo/vector-icons': '*',
|
|
144
|
-
'expo-constants': '*',
|
|
145
|
-
'expo-file-system': '*',
|
|
146
|
-
'expo-updates': '*',
|
|
147
|
-
'@react-native-async-storage/async-storage': '*',
|
|
148
|
-
'prop-types': '*',
|
|
149
|
-
},
|
|
150
|
-
deprecatedModules: {
|
|
151
|
-
'@react-native-community/async-storage':
|
|
152
|
-
'Async Storage has moved to new organization: https://github.com/react-native-async-storage/async-storage',
|
|
153
|
-
'expo-permissions':
|
|
154
|
-
'Use permissions getters and requesters in specific modules instead, such as MediaLibrary.getPermissionsAsync() and MediaLibrary.requestPermissionsAsync().',
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export default sdks;
|
package/src/sdks/types.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Version of the sdk to use (e.g. "43.0.0").
|
|
3
|
-
*/
|
|
4
|
-
export type SDKVersion = '40.0.0' | '41.0.0' | '42.0.0' | '43.0.0';
|
|
5
|
-
|
|
6
|
-
/** @internal */
|
|
7
|
-
export type SDKSpec = {
|
|
8
|
-
// Version-spec for the published "expo" package. This version is
|
|
9
|
-
// used to fetch compatible package versions. The value is typically
|
|
10
|
-
// in the form of "^39.0.0" but may also contain custom specs, such
|
|
11
|
-
// as "40.0.0-beta.2".
|
|
12
|
-
version: string;
|
|
13
|
-
|
|
14
|
-
// Modules that are pre-loaded by the Snack runtime, and which
|
|
15
|
-
// the user does not need to add to `package.json`.
|
|
16
|
-
// The version for these packages is hardcoded as it cannot be
|
|
17
|
-
// resolved using bundledNativeModules.json.
|
|
18
|
-
coreModules: {
|
|
19
|
-
[name: string]: string;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// Modules that are pre-loaded by the Snack runtime, but which
|
|
23
|
-
// are expected to be added as a dependency anyway. This ensures
|
|
24
|
-
// that `package.json` is up to date, when downloading the Snack
|
|
25
|
-
// as a zip-file. These modules don't have versions defined, but
|
|
26
|
-
// instead bundledNativeModules.json should be used to obtain
|
|
27
|
-
// the recent version.
|
|
28
|
-
bundledModules: {
|
|
29
|
-
[name: string]: '*';
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
// Modules that have been deprecated. The value represents a valid
|
|
33
|
-
// a description providing a solution or explanation (eg.
|
|
34
|
-
// "expo-permissions": "Use permissions getters and requesters in specific modules instead...""
|
|
35
|
-
deprecatedModules?: {
|
|
36
|
-
[name: string]: string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Feature that is supported by the SDK (e.g. "TYPESCRIPT").
|
|
42
|
-
*/
|
|
43
|
-
export type SDKFeature =
|
|
44
|
-
| 'MULTIPLE_FILES'
|
|
45
|
-
| 'PROJECT_DEPENDENCIES'
|
|
46
|
-
| 'TYPESCRIPT'
|
|
47
|
-
| 'UNIMODULE_IMPORTS'
|
|
48
|
-
| 'POSTMESSAGE_TRANSPORT'
|
|
49
|
-
| 'VERSIONED_SNACKAGER';
|