@playcademy/vite-plugin 0.1.27 → 0.1.29

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/README.md CHANGED
@@ -211,18 +211,18 @@ import { PlaycademyClient } from '@playcademy/sdk'
211
211
  const client = await PlaycademyClient.init()
212
212
 
213
213
  // Load dynamic JSON data (e.g., level selected by user)
214
- const levelData = await client.runtime.cdn.json`levels/level-${levelId}.json`
214
+ const levelData = await client.runtime.assets.json`levels/level-${levelId}.json`
215
215
 
216
216
  // Load images dynamically using tagged template literals
217
- img.src = client.runtime.cdn.url`badges/${badgeType}.png`
218
- audio.src = client.runtime.cdn.url`sfx/${soundEffect}.wav`
217
+ img.src = client.runtime.assets.url`badges/${badgeType}.png`
218
+ audio.src = client.runtime.assets.url`sfx/${soundEffect}.wav`
219
219
 
220
220
  // Or use regular function calls
221
- const data = await client.runtime.cdn.fetch('data/config.json')
222
- const blob = await client.runtime.cdn.blob('images/hero.png')
221
+ const data = await client.runtime.assets.fetch('data/config.json')
222
+ const blob = await client.runtime.assets.blob('images/hero.png')
223
223
  ```
224
224
 
225
- These helpers automatically resolve to the correct CDN path in production and relative paths in local development.
225
+ These helpers automatically resolve to the correct asset URLs in production and relative paths in local development.
226
226
 
227
227
  ### Production Build
228
228
 
package/dist/index.js CHANGED
@@ -41199,7 +41199,7 @@ var import_picocolors7 = __toESM(require_picocolors(), 1);
41199
41199
  // package.json
41200
41200
  var package_default = {
41201
41201
  name: "@playcademy/vite-plugin",
41202
- version: "0.1.26",
41202
+ version: "0.1.28",
41203
41203
  type: "module",
41204
41204
  exports: {
41205
41205
  ".": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcademy/vite-plugin",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "archiver": "^7.0.1",
23
23
  "picocolors": "^1.1.1",
24
- "playcademy": "0.14.5"
24
+ "playcademy": "0.14.7"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@inquirer/prompts": "^7.8.6",