@devvit/ui-renderer 0.11.0-next-2024-07-03-7b33ed48f.0 → 0.11.0-next-2024-07-03-70e6c9f34.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,12 +5,12 @@ import type { DevvitSubredditMetadata, LinkedBundle } from '@devvit/protos';
5
5
  * provides. See LinksAndCommentsSubmitCustomPost(). This should always
6
6
  * be available but element properties can be undefined.
7
7
  * @arg meta The current subreddit manifest.
8
- * @return true if an app's @devvit/public-api version supports
8
+ * @return true if an app's @devvit/public-api version is > than 0.11.0 (forcing UI request to be on)
9
9
  * RenderPostContent(UIRequest), false if only
10
10
  * RenderPost(RenderPostRequest) is supported, undefined if unknown
11
11
  * (caller should choose a safe default).
12
12
  */
13
- export declare function apiVersionSupportsUIRequest(dx: Readonly<{
13
+ export declare function shouldUseUIRequest(dx: Readonly<{
14
14
  hostname: string;
15
15
  } & Partial<LinkedBundle>> | undefined, meta: Readonly<DevvitSubredditMetadata> | undefined): boolean | undefined;
16
16
  //# sourceMappingURL=api-version-util.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-version-util.d.ts","sourceRoot":"","sources":["../../library/src/client/api-version-util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK5E;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CACzC,EAAE,EAAE,QAAQ,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,SAAS,EACtE,IAAI,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,SAAS,GAClD,OAAO,GAAG,SAAS,CAOrB"}
1
+ {"version":3,"file":"api-version-util.d.ts","sourceRoot":"","sources":["../../library/src/client/api-version-util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAK5E;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,QAAQ,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,GAAG,SAAS,EACtE,IAAI,EAAE,QAAQ,CAAC,uBAAuB,CAAC,GAAG,SAAS,GAClD,OAAO,GAAG,SAAS,CAOrB"}
@@ -7,12 +7,12 @@ import { compareVersions } from 'compare-versions';
7
7
  * provides. See LinksAndCommentsSubmitCustomPost(). This should always
8
8
  * be available but element properties can be undefined.
9
9
  * @arg meta The current subreddit manifest.
10
- * @return true if an app's @devvit/public-api version supports
10
+ * @return true if an app's @devvit/public-api version is > than 0.11.0 (forcing UI request to be on)
11
11
  * RenderPostContent(UIRequest), false if only
12
12
  * RenderPost(RenderPostRequest) is supported, undefined if unknown
13
13
  * (caller should choose a safe default).
14
14
  */
15
- export function apiVersionSupportsUIRequest(dx, meta) {
15
+ export function shouldUseUIRequest(dx, meta) {
16
16
  if (!dx || !meta)
17
17
  return;
18
18
  const skinny = meta.installedRemoteApps.find((skinny) => skinny.hostname === dx.hostname);
@@ -21,5 +21,5 @@ export function apiVersionSupportsUIRequest(dx, meta) {
21
21
  const version = skinny.buildInfo?.dependencies['@devvit/public-api'];
22
22
  if (!version)
23
23
  return;
24
- return compareVersions(version, '0.10.19') >= 0;
24
+ return compareVersions(version, '0.10.1000') > 0;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/ui-renderer",
3
- "version": "0.11.0-next-2024-07-03-7b33ed48f.0",
3
+ "version": "0.11.0-next-2024-07-03-70e6c9f34.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,9 +59,9 @@
59
59
  "types": "./index.d.ts",
60
60
  "dependencies": {
61
61
  "@devvit/multiplatform": "0.0.1-20240529-491771c9",
62
- "@devvit/protos": "0.11.0-next-2024-07-03-7b33ed48f.0",
63
- "@devvit/runtime-lite": "0.11.0-next-2024-07-03-7b33ed48f.0",
64
- "@devvit/shared-types": "0.11.0-next-2024-07-03-7b33ed48f.0",
62
+ "@devvit/protos": "0.11.0-next-2024-07-03-70e6c9f34.0",
63
+ "@devvit/runtime-lite": "0.11.0-next-2024-07-03-70e6c9f34.0",
64
+ "@devvit/shared-types": "0.11.0-next-2024-07-03-70e6c9f34.0",
65
65
  "@dotlottie/player-component": "2.7.2",
66
66
  "compare-versions": "6.1.0",
67
67
  "nice-grpc-web": "3.3.3",
@@ -89,10 +89,10 @@
89
89
  },
90
90
  "devDependencies": {
91
91
  "@ampproject/filesize": "4.3.0",
92
- "@devvit/eslint-config": "0.11.0-next-2024-07-03-7b33ed48f.0",
93
- "@devvit/public-api": "0.11.0-next-2024-07-03-7b33ed48f.0",
94
- "@devvit/repo-tools": "0.11.0-next-2024-07-03-7b33ed48f.0",
95
- "@devvit/tsconfig": "0.11.0-next-2024-07-03-7b33ed48f.0",
92
+ "@devvit/eslint-config": "0.11.0-next-2024-07-03-70e6c9f34.0",
93
+ "@devvit/public-api": "0.11.0-next-2024-07-03-70e6c9f34.0",
94
+ "@devvit/repo-tools": "0.11.0-next-2024-07-03-70e6c9f34.0",
95
+ "@devvit/tsconfig": "0.11.0-next-2024-07-03-70e6c9f34.0",
96
96
  "@lit-labs/ssr": "^2.2.3",
97
97
  "@lit/localize": "0.11.4",
98
98
  "@open-wc/testing-helpers": "2.3.0",
@@ -139,5 +139,5 @@
139
139
  }
140
140
  },
141
141
  "source": "./src/index.ts",
142
- "gitHead": "f16efba0182cf49d0728a31b53859af5a94109ea"
142
+ "gitHead": "2b5ae943f2d279392c984e3137bbc9905f80fdaf"
143
143
  }