hytopia 0.5.2 → 0.5.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.
package/bin/scripts.js CHANGED
@@ -106,6 +106,7 @@ function installProjectDependencies() {
106
106
  execSync('bun add hytopia@latest --force');
107
107
  execSync('bun add @hytopia.com/assets --force');
108
108
  execSync('bun pm trust mediasoup');
109
+ execSync('bun pm trust sharp');
109
110
  }
110
111
 
111
112
  /**
@@ -6,7 +6,7 @@ const package = JSON.parse(fs.readFileSync('./package.json', 'utf8'));
6
6
  const server = fs.readFileSync('./server.js', 'utf8');
7
7
 
8
8
  if (!server.includes('__DEV_SDK_VERSION__')) {
9
- throw new Error('__DEV_SDK_VERSION__ not found in server.js. Please create a fresh build before publishing with: cd ../server && bun run build.');
9
+ throw new Error('__DEV_SDK_VERSION__ not found in server.js. Please create a fresh build before publishing! You can do this by running: cd ../server && bun run build.');
10
10
  }
11
11
 
12
12
  fs.writeFileSync('./server.js', server.replace(/__DEV_SDK_VERSION__/g, package.version));
@@ -14,6 +14,7 @@
14
14
  "openai": "^4.77.3"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -13,6 +13,7 @@
13
13
  "hytopia": "latest"
14
14
  },
15
15
  "trustedDependencies": [
16
- "mediasoup"
16
+ "mediasoup",
17
+ "sharp"
17
18
  ]
18
19
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "@hytopia.com/assets": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -13,6 +13,7 @@
13
13
  "hytopia": "latest"
14
14
  },
15
15
  "trustedDependencies": [
16
- "mediasoup"
16
+ "mediasoup",
17
+ "sharp"
17
18
  ]
18
19
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
@@ -14,6 +14,7 @@
14
14
  "hytopia": "latest"
15
15
  },
16
16
  "trustedDependencies": [
17
- "mediasoup"
17
+ "mediasoup",
18
+ "sharp"
18
19
  ]
19
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "main": "server.js",
6
6
  "bin": {
@@ -53,7 +53,8 @@
53
53
  "@gltf-transform/cli": "4.1.1"
54
54
  },
55
55
  "trustedDependencies": [
56
- "mediasoup"
56
+ "mediasoup",
57
+ "sharp"
57
58
  ],
58
59
  "scripts": {
59
60
  "prepublishOnly": "node ./bin/writeVersion.js"