@sleeperhq/mini-core 1.6.5 → 1.7.2

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/bin/build_mini.js CHANGED
@@ -46,7 +46,7 @@ const getCommands = (projectName) => {
46
46
  --reset-cache \
47
47
  --bundle-output "${bundleOutputPath[platform]}" \
48
48
  --sourcemap-output "${sourcemapOutputPath[platform]}" \
49
- --minify true \
49
+ --minify false \
50
50
  --assets-dest "${assetsDestPath[platform]}" \
51
51
  --webpackConfig ./node_modules/@sleeperhq/mini-core/webpack.config.js`;
52
52
  };
@@ -1,13 +1,11 @@
1
- import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap, Topic, Location, SportType } from './types';
1
+ import { User, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap, UsersInLeagueMap, PlayoffsInLeagueMap, TransactionsInLeagueMap, TransactionsMap, SportInfoMap, DraftsInLeagueMap, DraftPickTradesInLeagueMap, DraftPicksInDraftMap, PlayersInSportMap, Topic, Location } from './types';
2
2
  import type { SleeperActions } from './sleeper_actions';
3
3
  declare class SleeperContext {
4
4
  static apiLevel: string;
5
5
  user: User;
6
6
  league: League;
7
7
  leaguesMap: LeaguesMap;
8
- leaguesMapBySport: Record<SportType, LeaguesMap>;
9
8
  userLeagueList: string[];
10
- userLeagueListBySport: Record<SportType, string[]>;
11
9
  rostersInLeagueMap: RostersInLeagueMap;
12
10
  userMap: UserMap;
13
11
  matchupsInLeagueMap: MatchupsInLeagueMap;
@@ -1,4 +1,4 @@
1
- import type { Entitlement, HeaderOptions, SportType } from './types';
1
+ import type { Entitlement, HeaderOptions } from './types';
2
2
  type SocketMessage = {
3
3
  _ip?: string;
4
4
  _name?: string;
@@ -7,6 +7,5 @@ type SocketMessage = {
7
7
  _description?: string;
8
8
  _entitlements?: Entitlement[];
9
9
  _headerOptions?: HeaderOptions;
10
- _sports?: SportType[];
11
10
  };
12
11
  export default SocketMessage;
@@ -86,7 +86,6 @@ export type Mini = {
86
86
  email?: string;
87
87
  entitlements?: Entitlement[];
88
88
  headerOptions?: HeaderOptions;
89
- sports?: SportType[];
90
89
  };
91
90
  export type Location = {
92
91
  state: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "1.6.5",
3
+ "version": "1.7.2",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -36,15 +36,15 @@
36
36
  "dependencies": {
37
37
  "@babel/runtime": "7.15.4",
38
38
  "@babel/plugin-transform-runtime": "7.15.0",
39
- "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v2.7.0-gitpkg",
39
+ "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v3.0.0-gitpkg",
40
40
  "@callstack/repack-dev-server": "blitzstudios/repack.git#callstack-repack-dev-server-v1.0.7-gitpkg",
41
41
  "@react-native-community/cli": "6.1.0",
42
42
  "@react-native-community/cli-types": "6.0.0",
43
43
  "@react-native-community/netinfo": "9.3.7",
44
44
  "axios": "0.15.3",
45
45
  "babel-loader": "9.1.2",
46
- "react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.2",
47
- "react-native-interactable": "https://github.com/blitzstudios/react-native-interactable",
46
+ "react-native-fast-image": "https://github.com/blitzstudios/react-native-fast-image.git#release/1.1",
47
+ "react-native-interactable": "https://github.com/blitzstudios/react-native-interactable#release/1.0",
48
48
  "react-native-linear-gradient": "2.5.6",
49
49
  "react-native-rename": "^3.2.12",
50
50
  "react-refresh": "0.14.0",
@@ -54,15 +54,16 @@
54
54
  "webpack": "5.75.0"
55
55
  },
56
56
  "peerDependencies": {
57
- "react": "17.0.2",
58
- "react-native": "0.66.5",
57
+ "react": "18.2.0",
58
+ "react-native": "0.72.6",
59
59
  "react-native-svg": "13.7.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@babel/core": "7.15.8",
63
63
  "@babel/preset-typescript": "7.21.4",
64
64
  "@react-native-community/eslint-config": "^2.0.0",
65
- "@types/react-native": "0.67.7",
65
+ "@types/react": "18.0.24",
66
+ "@types/react-native": "0.72.5",
66
67
  "@typescript-eslint/eslint-plugin": "^5.31.0",
67
68
  "@typescript-eslint/parser": "^5.31.0",
68
69
  "babel-jest": "^26.6.3",
@@ -74,8 +75,7 @@
74
75
  "typescript": "5.0.4"
75
76
  },
76
77
  "resolutions": {
77
- "react-devtools-core": "4.23.0",
78
- "@pmmmwh/react-refresh-webpack-plugin": "0.5.10"
78
+ "react-devtools-core": "4.23.0"
79
79
  },
80
80
  "jest": {
81
81
  "preset": "react-native"
@@ -204,7 +204,6 @@ const DevServer = props => {
204
204
  _name: config.name,
205
205
  _entitlements: config.entitlements,
206
206
  _headerOptions: config.headerOptions,
207
- _sports: config.sports,
208
207
  };
209
208
  const json = JSON.stringify(message);
210
209
  console.log('[Sleeper] Send IP address: ', ipAddress, config.name);
@@ -1,4 +1,4 @@
1
- import type { HeaderOptions, Entitlement, SportType } from '../../declarations/types';
1
+ import type { HeaderOptions, Entitlement } from '../../declarations/types';
2
2
 
3
3
  export * from '../../declarations/types/index.d';
4
4
  export type { default as Context } from '../../declarations/sleeper_context.d';
@@ -14,5 +14,4 @@ export type Config = {
14
14
  logsEnabled?: boolean,
15
15
  entitlements?: Entitlement[],
16
16
  headerOptions?: HeaderOptions,
17
- sports?: SportType[],
18
17
  };