@sleeperhq/mini-core 5.0.1 → 5.0.3

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.
@@ -18,7 +18,7 @@
18
18
  "@react-navigation/native": "6.1.17",
19
19
  "@react-navigation/stack": "6.4.0",
20
20
  "@shopify/flash-list": "1.8.3",
21
- "@sleeperhq/mini-core": "5.0.1",
21
+ "@sleeperhq/mini-core": "5.0.3",
22
22
  "amazon-cognito-identity-js": "6.3.2",
23
23
  "crypto-js": "3.3.0",
24
24
  "decimal.js-light": "2.5.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -51,7 +51,7 @@
51
51
  "babel-loader": "9.1.3",
52
52
  "react-native-linear-gradient": "2.8.3",
53
53
  "react-native-reanimated": "3.19.2",
54
- "react-native-rename": "blitzstudios/react-native-rename.git#react-native-rename-v3.2.17-gitpkg",
54
+ "react-native-rename": "blitzstudios/react-native-rename.git#react-native-rename-v1.0.0-gitpkg",
55
55
  "react-native-turbo-image": "blitzstudios/react-native-turbo-image.git#react-native-turbo-image-v1.0.7-gitpkg",
56
56
  "regenerator-runtime": "0.13.11",
57
57
  "rx": "4.1.0",
package/rspack.config.js CHANGED
@@ -147,7 +147,15 @@ module.exports = env => {
147
147
  * https://github.com/babel/babel-loader#options
148
148
  */
149
149
  rules: [
150
- ...Repack.getJsTransformRules(),
150
+ {
151
+ test: /\.[cm]?[jt]sx?$/,
152
+ type: 'javascript/auto',
153
+ use: {
154
+ loader: '@callstack/repack/babel-swc-loader',
155
+ parallel: true,
156
+ options: {},
157
+ },
158
+ },
151
159
  {
152
160
  test: /\.jsx?$/,
153
161
  type: 'javascript/auto',
@@ -244,13 +252,15 @@ module.exports = env => {
244
252
  ],
245
253
  listenerIP: config.remoteIP,
246
254
  }),
247
- new ReanimatedPlugin(),
255
+ new ReanimatedPlugin({ unstable_disableTransform: true }),
248
256
  new Repack.plugins.ModuleFederationPluginV2({
249
257
  name: config.name,
250
258
  filename: `${config.name}.container.bundle`,
251
259
  exposes: {
252
260
  app: sampleClassPathLocal,
253
261
  },
262
+ // Disable DTS generation to avoid @module-federation/dts-plugin errors during dev
263
+ dts: false,
254
264
  shared: {
255
265
  // Adding this here fixes the named chunks problem.
256
266
  // It also makes sure any third party javascript packages are included in the container,
@@ -12,7 +12,7 @@ const socketConnect = (client, appConfig) => {
12
12
 
13
13
  const packagerConnect = async (rootPath) => {
14
14
  const appJsonPath = path.join(rootPath, appJsonFilename);
15
- const { default: appConfig } = await import(appJsonPath, { assert: { type: "json" } });
15
+ const { default: appConfig } = await import(appJsonPath, { with: { type: "json" } });
16
16
 
17
17
  if (!appConfig.remoteIP) {
18
18
  throw new Error(appJsonFilename + ' is missing remoteIP field');