@sleeperhq/mini-core 3.0.7 → 4.0.0-b
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/mini_packages.json +19 -19
- package/package.json +12 -8
- package/{webpack.config.js → rspack.config.js} +28 -80
package/mini_packages.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@react-native-camera-roll/camera-roll": "5.2.0",
|
|
9
9
|
"@react-native-community/blur": "4.4.0",
|
|
10
10
|
"@react-native-community/datetimepicker": "2.6.2",
|
|
11
|
-
"@react-native-community/hooks": "
|
|
11
|
+
"@react-native-community/hooks": "100.1.0",
|
|
12
12
|
"@react-native-community/netinfo": "11.3.2",
|
|
13
13
|
"@react-native-masked-view/masked-view": "0.3.1",
|
|
14
14
|
"@react-native-picker/picker": "1.16.8",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@react-navigation/elements": "1.3.30",
|
|
19
19
|
"@react-navigation/native": "6.1.17",
|
|
20
20
|
"@react-navigation/stack": "6.4.0",
|
|
21
|
-
"@shopify/flash-list": "1.7.
|
|
22
|
-
"@sleeperhq/mini-core": "
|
|
21
|
+
"@shopify/flash-list": "1.7.6",
|
|
22
|
+
"@sleeperhq/mini-core": "4.0.0-b",
|
|
23
23
|
"amazon-cognito-identity-js": "6.3.2",
|
|
24
24
|
"crypto-js": "3.3.0",
|
|
25
25
|
"decimal.js-light": "2.5.1",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"path": "0.12.7",
|
|
29
29
|
"react": "18.3.1",
|
|
30
30
|
"react-freeze": "1.0.4",
|
|
31
|
-
"react-native": "0.
|
|
31
|
+
"react-native": "0.77.2",
|
|
32
32
|
"react-native-action-sheet": "2.2.0",
|
|
33
33
|
"react-native-animatable": "1.3.3",
|
|
34
34
|
"react-native-check-version": "1.0.20",
|
|
@@ -45,36 +45,33 @@
|
|
|
45
45
|
"react-native-dropdownalert": "4.3.0",
|
|
46
46
|
"react-native-emoji-rain": "0.0.1",
|
|
47
47
|
"react-native-fs": "2.18.0",
|
|
48
|
-
"react-native-gesture-handler": "2.
|
|
48
|
+
"react-native-gesture-handler": "2.22.0",
|
|
49
49
|
"react-native-google-places-autocomplete": "2.4.1",
|
|
50
50
|
"react-native-haptic-feedback": "1.6.0",
|
|
51
51
|
"react-native-image-crop-picker": "0.41.6",
|
|
52
52
|
"react-native-image-pan-zoom": "2.1.12",
|
|
53
53
|
"react-native-image-picker": "4.10.3",
|
|
54
54
|
"react-native-image-resizer": "1.4.5",
|
|
55
|
-
"react-native-interactable": "2.0.1",
|
|
56
55
|
"react-native-iphone-x-helper": "1.3.1",
|
|
57
56
|
"react-native-json-tree": "1.3.0",
|
|
58
57
|
"react-native-keep-awake": "4.0.0",
|
|
59
58
|
"react-native-keyboard-aware-scroll-view": "0.9.5",
|
|
60
59
|
"react-native-keyboard-spacer": "0.4.1",
|
|
61
60
|
"react-native-linear-gradient": "2.8.3",
|
|
62
|
-
"react-native-modal": "13.0.0",
|
|
63
61
|
"react-native-modal-datetime-picker": "13.0.1",
|
|
64
62
|
"react-native-parsed-text": "0.0.21",
|
|
65
63
|
"react-native-permissions": "3.6.1",
|
|
66
64
|
"react-native-platform-touchable": "1.1.1",
|
|
67
|
-
"react-native-popup-
|
|
68
|
-
"react-native-popup-menu": "0.16.1",
|
|
65
|
+
"react-native-popup-menu": "0.17.0",
|
|
69
66
|
"react-native-progress": "4.1.2",
|
|
70
67
|
"react-native-qrcode-svg": "6.1.1",
|
|
71
|
-
"react-native-reanimated": "3.
|
|
68
|
+
"react-native-reanimated": "3.17.1",
|
|
72
69
|
"react-native-redash": "18.1.0",
|
|
73
|
-
"react-native-safe-area-context": "
|
|
74
|
-
"react-native-screens": "4.
|
|
70
|
+
"react-native-safe-area-context": "5.1.0",
|
|
71
|
+
"react-native-screens": "4.8.0",
|
|
75
72
|
"react-native-section-list-get-item-layout": "2.2.3",
|
|
76
73
|
"react-native-shake": "5.3.1",
|
|
77
|
-
"react-native-share": "
|
|
74
|
+
"react-native-share": "12.0.5",
|
|
78
75
|
"react-native-shimmer-placeholder": "1.0.36",
|
|
79
76
|
"react-native-simple-toast": "1.1.3",
|
|
80
77
|
"react-native-sms": "1.11.0",
|
|
@@ -82,27 +79,30 @@
|
|
|
82
79
|
"react-native-sound": "0.11.1",
|
|
83
80
|
"react-native-sound-level": "1.1.5",
|
|
84
81
|
"react-native-spinkit": "1.5.1",
|
|
85
|
-
"react-native-svg": "15.
|
|
82
|
+
"react-native-svg": "15.11.2",
|
|
86
83
|
"react-native-swiper": "1.6.0-rc.3",
|
|
87
84
|
"react-native-tab-view": "3.5.0",
|
|
88
85
|
"react-native-tcp-socket": "6.0.6",
|
|
89
86
|
"react-native-triangle": "0.0.9",
|
|
87
|
+
"react-native-turbo-image": "1.22.3",
|
|
90
88
|
"react-native-vector-icons": "10.1.0",
|
|
91
|
-
"react-native-video": "6.
|
|
89
|
+
"react-native-video": "6.10.2",
|
|
92
90
|
"react-native-view-shot": "3.7.0",
|
|
93
|
-
"react-native-webview": "13.
|
|
91
|
+
"react-native-webview": "13.13.5",
|
|
94
92
|
"react-native-webp-format": "1.1.2",
|
|
95
93
|
"regenerator-runtime": "0.13.11",
|
|
96
94
|
"recyclerlistview": "4.2.0",
|
|
97
95
|
"rn-prompt": "1.0.4"
|
|
98
96
|
},
|
|
99
97
|
"overrides": {
|
|
100
|
-
"@callstack/repack": "0.
|
|
101
|
-
"@react-native-async-storage/async-storage": "
|
|
98
|
+
"@callstack/repack": "5.0.7-c",
|
|
99
|
+
"@react-native-async-storage/async-storage": "2.2.0",
|
|
102
100
|
"@react-native-community/audio-toolkit": "2.0.3",
|
|
103
101
|
"react-native-chart-kit": "6.7.0",
|
|
104
102
|
"react-native-circular-progress": "1.3.6",
|
|
105
|
-
"react-native-fast-image": "8.5.11"
|
|
103
|
+
"react-native-fast-image": "8.5.11",
|
|
104
|
+
"react-native-modal": "13.0.1",
|
|
105
|
+
"react-native-popup-dialog": "0.11.46"
|
|
106
106
|
},
|
|
107
107
|
"requiredBy": {
|
|
108
108
|
"amazon-cognito-identity-js": "flexfantasy"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleeperhq/mini-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-b",
|
|
4
4
|
"description": "Core library frameworks for developing Sleeper Mini Apps.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -36,18 +36,22 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/plugin-transform-runtime": "7.25.9",
|
|
38
38
|
"@babel/runtime": "7.26.0",
|
|
39
|
-
"@callstack/repack": "blitzstudios/repack.git#callstack-repack-v5.0.
|
|
39
|
+
"@callstack/repack": "blitzstudios/repack.git#callstack-repack-v5.0.7-c-gitpkg",
|
|
40
40
|
"@react-native-community/cli": "15.0.1",
|
|
41
41
|
"@react-native-community/cli-platform-android": "15.0.1",
|
|
42
42
|
"@react-native-community/cli-platform-apple": "15.0.1",
|
|
43
43
|
"@react-native-community/cli-platform-ios": "15.0.1",
|
|
44
44
|
"@react-native-community/netinfo": "11.3.2",
|
|
45
|
+
"@rspack/core": "1.3.15",
|
|
45
46
|
"@rspack/plugin-react-refresh": "1.0.0",
|
|
47
|
+
"@swc/helpers": "0.5.17",
|
|
46
48
|
"axios": "0.15.3",
|
|
47
49
|
"babel-loader": "9.1.3",
|
|
48
50
|
"react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.4",
|
|
49
51
|
"react-native-linear-gradient": "2.8.3",
|
|
52
|
+
"react-native-reanimated": "3.17.1",
|
|
50
53
|
"react-native-rename": "blitzstudios/react-native-rename.git#react-native-rename-v3.2.17-gitpkg",
|
|
54
|
+
"react-native-turbo-image": "1.22.3",
|
|
51
55
|
"regenerator-runtime": "0.13.11",
|
|
52
56
|
"rx": "4.1.0",
|
|
53
57
|
"string-replace-loader": "3.1.0",
|
|
@@ -56,19 +60,19 @@
|
|
|
56
60
|
},
|
|
57
61
|
"peerDependencies": {
|
|
58
62
|
"react": "18.3.1",
|
|
59
|
-
"react-native": "0.
|
|
60
|
-
"react-native-svg": "15.
|
|
63
|
+
"react-native": "0.77.2",
|
|
64
|
+
"react-native-svg": "15.11.2"
|
|
61
65
|
},
|
|
62
66
|
"devDependencies": {
|
|
63
67
|
"@babel/core": "7.26.0",
|
|
64
68
|
"@babel/preset-typescript": "7.26.0",
|
|
65
|
-
"@
|
|
66
|
-
"@react-native/babel-preset": "0.
|
|
67
|
-
"@react-native/
|
|
69
|
+
"@callstack/repack-plugin-reanimated": "5.1.1",
|
|
70
|
+
"@react-native/babel-preset": "0.77.2",
|
|
71
|
+
"@react-native/eslint-config": "0.77.2",
|
|
72
|
+
"@react-native/typescript-config": "0.77.2",
|
|
68
73
|
"@types/react": "18.2.31",
|
|
69
74
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
70
75
|
"@typescript-eslint/parser": "5.62.0",
|
|
71
|
-
"babel-jest": "26.6.3",
|
|
72
76
|
"eslint": "8.38.0",
|
|
73
77
|
"jest": "26.6.3",
|
|
74
78
|
"lodash": "4.17.21",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const path = require('path');
|
|
2
|
-
const TerserPlugin = require('../../../node_modules/terser-webpack-plugin');
|
|
3
2
|
const Repack = require('../../../node_modules/@callstack/repack');
|
|
4
3
|
const config = require('../../../app.json');
|
|
5
|
-
const {dependencies} = require('../../../package.json');
|
|
6
|
-
const {RebuildNotifyPlugin} = require('./src/plugins/rebuildNotifyPlugin')
|
|
4
|
+
const { dependencies } = require('../../../package.json');
|
|
5
|
+
const { RebuildNotifyPlugin } = require('./src/plugins/rebuildNotifyPlugin');
|
|
6
|
+
const { ReanimatedPlugin } = require('@callstack/repack-plugin-reanimated');
|
|
7
7
|
|
|
8
|
-
const {samples, selectedSample} = config;
|
|
8
|
+
const { samples, selectedSample } = config;
|
|
9
9
|
const sampleClassPath = `../../../src/${samples[selectedSample]}`;
|
|
10
10
|
const sampleClassPathLocal = `./src/${samples[selectedSample]}`
|
|
11
11
|
|
|
@@ -78,7 +78,7 @@ module.exports = env => {
|
|
|
78
78
|
* This should be always `false`, since the Source Map configuration is done
|
|
79
79
|
* by `SourceMapDevToolPlugin`.
|
|
80
80
|
*/
|
|
81
|
-
devtool:
|
|
81
|
+
devtool: 'source-map',
|
|
82
82
|
context,
|
|
83
83
|
entry,
|
|
84
84
|
resolve: {
|
|
@@ -119,7 +119,6 @@ module.exports = env => {
|
|
|
119
119
|
? 'index.android.bundle'
|
|
120
120
|
: 'index.ios.bundle',
|
|
121
121
|
chunkFilename: '[name].chunk.bundle',
|
|
122
|
-
publicPath: Repack.getPublicPath({platform, devServer}),
|
|
123
122
|
uniqueName: config.name,
|
|
124
123
|
},
|
|
125
124
|
/**
|
|
@@ -128,23 +127,6 @@ module.exports = env => {
|
|
|
128
127
|
optimization: {
|
|
129
128
|
/** Enables minification based on values passed from React Native CLI or from fallback. */
|
|
130
129
|
minimize,
|
|
131
|
-
/** Configure minimizer to process the bundle. */
|
|
132
|
-
minimizer: [
|
|
133
|
-
new TerserPlugin({
|
|
134
|
-
test: /\.(js)?bundle(\?.*)?$/i,
|
|
135
|
-
/**
|
|
136
|
-
* Prevents emitting text file with comments, licenses etc.
|
|
137
|
-
* If you want to gather in-file licenses, feel free to remove this line or configure it
|
|
138
|
-
* differently.
|
|
139
|
-
*/
|
|
140
|
-
extractComments: false,
|
|
141
|
-
terserOptions: {
|
|
142
|
-
format: {
|
|
143
|
-
comments: false,
|
|
144
|
-
},
|
|
145
|
-
},
|
|
146
|
-
}),
|
|
147
|
-
],
|
|
148
130
|
chunkIds: 'named',
|
|
149
131
|
},
|
|
150
132
|
/**
|
|
@@ -165,69 +147,35 @@ module.exports = env => {
|
|
|
165
147
|
* https://github.com/babel/babel-loader#options
|
|
166
148
|
*/
|
|
167
149
|
rules: [
|
|
150
|
+
...Repack.getJsTransformRules(),
|
|
168
151
|
{
|
|
169
|
-
test: /\.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
/node_modules(.*[/\\])+@react-native/,
|
|
173
|
-
/node_modules(.*[/\\])+@react-navigation/,
|
|
174
|
-
/node_modules(.*[/\\])+@react-native-community/,
|
|
175
|
-
/node_modules(.*[/\\])+@expo/,
|
|
176
|
-
/node_modules(.*[/\\])+pretty-format/,
|
|
177
|
-
/node_modules(.*[/\\])+metro/,
|
|
178
|
-
/node_modules(.*[/\\])+he/,
|
|
179
|
-
/node_modules(.*[/\\])+abort-controller/,
|
|
180
|
-
/node_modules(.*[/\\])+@callstack\/repack/,
|
|
181
|
-
/node_modules(.*[/\\])+@sleeperhq\/mini-core/,
|
|
182
|
-
],
|
|
152
|
+
test: /\.jsx?$/,
|
|
153
|
+
type: 'javascript/auto',
|
|
154
|
+
exclude: /node_modules/,
|
|
183
155
|
use: {
|
|
184
|
-
loader: '
|
|
185
|
-
options: {
|
|
186
|
-
presets: [
|
|
187
|
-
'@react-native/babel-preset',
|
|
188
|
-
['@babel/preset-typescript', { allowDeclareFields: true }],
|
|
189
|
-
],
|
|
190
|
-
babelrc: false,
|
|
191
|
-
cacheDirectory: true,
|
|
192
|
-
sourceMaps: true,
|
|
193
|
-
},
|
|
156
|
+
loader: '@callstack/repack/flow-loader',
|
|
157
|
+
options: { all: true },
|
|
194
158
|
},
|
|
195
159
|
},
|
|
196
|
-
/**
|
|
197
|
-
* Here you can adjust loader that will process your files.
|
|
198
|
-
*
|
|
199
|
-
* You can also enable persistent caching with `cacheDirectory` - please refer to:
|
|
200
|
-
* https://github.com/babel/babel-loader#options
|
|
201
|
-
*/
|
|
202
160
|
{
|
|
203
|
-
test: /\.
|
|
204
|
-
|
|
161
|
+
test: /\.jsx?$/,
|
|
162
|
+
include: Repack.getModulePaths([
|
|
163
|
+
'react-native-sms',
|
|
164
|
+
'@react-native-masked-view/masked-view',
|
|
165
|
+
'react-native-keyboard-aware-scroll-view',
|
|
166
|
+
'react-native-modal-datetime-picker',
|
|
167
|
+
'@react-native-community/art',
|
|
168
|
+
'@react-native-community/audio-toolkit',
|
|
169
|
+
'react-native-appsflyer',
|
|
170
|
+
'react-native-emoji-rain',
|
|
171
|
+
'react-native-keep-awake',
|
|
172
|
+
'react-native-sms',
|
|
173
|
+
]),
|
|
205
174
|
use: {
|
|
206
|
-
loader: '
|
|
207
|
-
options: {
|
|
208
|
-
presets: [
|
|
209
|
-
'@react-native/babel-preset',
|
|
210
|
-
['@babel/preset-typescript', { allowDeclareFields: true }],
|
|
211
|
-
],
|
|
212
|
-
// sourceType: "unambiguous",
|
|
213
|
-
plugins: devServer && devServer.hmr
|
|
214
|
-
? ['@babel/plugin-transform-runtime', 'module:react-refresh/babel']
|
|
215
|
-
: ['@babel/plugin-transform-runtime'],
|
|
216
|
-
babelrc: false,
|
|
217
|
-
comments: true, // necessary for named chunks
|
|
218
|
-
cacheDirectory: true,
|
|
219
|
-
sourceMaps: true,
|
|
220
|
-
},
|
|
175
|
+
loader: '@callstack/repack/flow-loader',
|
|
176
|
+
options: { all: true },
|
|
221
177
|
},
|
|
222
|
-
|
|
223
|
-
dev && {
|
|
224
|
-
test: /\.[jt]sx?$/,
|
|
225
|
-
include: /src/,
|
|
226
|
-
loader: 'string-replace-loader',
|
|
227
|
-
options: {
|
|
228
|
-
search: 'console.log',
|
|
229
|
-
replace: 'log_mini',
|
|
230
|
-
}
|
|
178
|
+
type: 'javascript/auto',
|
|
231
179
|
},
|
|
232
180
|
/**
|
|
233
181
|
* This loader handles all static assets (images, video, audio and others), so that you can
|
|
@@ -296,7 +244,7 @@ module.exports = env => {
|
|
|
296
244
|
],
|
|
297
245
|
listenerIP: config.remoteIP,
|
|
298
246
|
}),
|
|
299
|
-
|
|
247
|
+
new ReanimatedPlugin(),
|
|
300
248
|
new Repack.plugins.ModuleFederationPlugin({
|
|
301
249
|
name: config.name,
|
|
302
250
|
exposes: {
|