@devvit/runtime-lite 0.11.3-next-2024-10-31-9ef830d31.0 → 0.11.3-next-2024-11-11-9c32efd17.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/runtime-lite",
3
- "version": "0.11.3-next-2024-10-31-9ef830d31.0",
3
+ "version": "0.11.3-next-2024-11-11-9c32efd17.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,10 +43,10 @@
43
43
  },
44
44
  "devDependencies": {
45
45
  "@ampproject/filesize": "4.3.0",
46
- "@devvit/protos": "0.11.3-next-2024-10-31-9ef830d31.0",
47
- "@devvit/repo-tools": "0.11.3-next-2024-10-31-9ef830d31.0",
48
- "@devvit/shared-types": "0.11.3-next-2024-10-31-9ef830d31.0",
49
- "@devvit/tsconfig": "0.11.3-next-2024-10-31-9ef830d31.0",
46
+ "@devvit/protos": "0.11.3-next-2024-11-11-9c32efd17.0",
47
+ "@devvit/repo-tools": "0.11.3-next-2024-11-11-9c32efd17.0",
48
+ "@devvit/shared-types": "0.11.3-next-2024-11-11-9c32efd17.0",
49
+ "@devvit/tsconfig": "0.11.3-next-2024-11-11-9c32efd17.0",
50
50
  "@jitl/quickjs-singlefile-browser-release-sync": "0.29.0",
51
51
  "base64-js": "1.5.1",
52
52
  "chokidar-cli": "3.0.0",
@@ -80,5 +80,5 @@
80
80
  }
81
81
  },
82
82
  "source": "./src/index.ts",
83
- "gitHead": "322d47235e5fa4276f9c4d51d280acb6504c63cb"
83
+ "gitHead": "957435b759899e1c9caba221f308a4e835d2ac57"
84
84
  }
@@ -67,7 +67,14 @@ type ReadyResponse = [
67
67
  init: RuntimeMetric
68
68
  ];
69
69
  type PluginsConfiguredResponse = [cmd: ActorResponse.PLUGINS_CONFIGURED];
70
- type BundleLoadedResponse = [cmd: ActorResponse.BUNDLE_LOADED, logs: AppLog[]];
70
+ type BundleLoadedResponse = [
71
+ cmd: ActorResponse.BUNDLE_LOADED,
72
+ logs: AppLog[],
73
+ /**
74
+ * This measures how long it takes to load the LinkedBundle.
75
+ */
76
+ loadBundleMetric: RuntimeMetric
77
+ ];
71
78
  type BundleLoadFailedResponse = [
72
79
  cmd: ActorResponse.BUNDLE_LOAD_FAILED,
73
80
  id: unknown,
@@ -1 +1 @@
1
- {"version":3,"file":"Commands.d.ts","sourceRoot":"","sources":["../../src/types/Commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAEhF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAE9D,oBAAY,YAAY;IACtB;;;;OAIG;IACH,kBAAkB,qBAAqB;IACvC,iCAAiC;IACjC,oBAAoB,uBAAuB;IAC3C,cAAc,kBAAkB;IAChC,WAAW,eAAe;IAC1B,IAAI,SAAS;IACb,eAAe,mBAAmB;IAClC,IAAI,SAAS;CACd;AAED,KAAK,uBAAuB,GAAG,CAAC,YAAY,CAAC,kBAAkB,CAAC,CAAC;AACjE,KAAK,yBAAyB,GAAG,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;AACrE,KAAK,oBAAoB,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;AAClF,KAAK,iBAAiB,GAAG,CAAC,YAAY,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC;AAClE,8BAA8B;AAC9B,KAAK,WAAW,GAAG;IACjB,GAAG,EAAE,YAAY,CAAC,IAAI;IACtB,EAAE,EAAE,MAAM;IACV,MAAM,EAAE,MAAM;IACd,IAAI,EAAE,OAAO,GAAG,UAAU;IAC1B,IAAI,EAAE,QAAQ;IACd,MAAM,EAAE,OAAO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d,GAAG,EAAE,OAAO;IACZ,IAAI,EAAE,OAAO;CACd,CAAC;AACF,KAAK,0BAA0B,GAAG;IAChC,GAAG,EAAE,aAAa,CAAC,mBAAmB;IACtC,EAAE,EAAE,OAAO;IACX,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS;IACjC,IAAI,EAAE,MAAM,EAAE;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAC3B,aAAa,GACb,yBAAyB,GACzB,oBAAoB,GACpB,wBAAwB,GACxB,mBAAmB,GACnB,aAAa,GACb,wBAAwB,GACxB,kBAAkB,GAClB,0BAA0B,CAAC"}
@@ -47,8 +47,17 @@ async function onmessage(ev) {
47
47
  const [, bundle] = ev.data;
48
48
  this.log(`Loading bundle for app ${getAppTitle(bundle)}`);
49
49
  try {
50
+ const startTime = performance.now();
50
51
  this.runtime.loadBundle(bundle);
51
- this.postMessage([ActorResponse.BUNDLE_LOADED, this.runtime.getCallState().logs]);
52
+ const endTime = performance.now();
53
+ this.postMessage([
54
+ ActorResponse.BUNDLE_LOADED,
55
+ this.runtime.getCallState().logs,
56
+ {
57
+ start: startTime,
58
+ end: endTime,
59
+ },
60
+ ]);
52
61
  }
53
62
  catch (err) {
54
63
  this.postMessage([