@devvit/ui-renderer 0.11.0-next-2024-07-03-971ccc657.0 → 0.11.0-next-2024-07-08-65f535f70.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 is > than 0.11.0 (forcing UI request to be on)
8
+ * @return true if an app's @devvit/public-api version supports
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 shouldUseUIRequest(dx: Readonly<{
13
+ export declare function apiVersionSupportsUIRequest(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,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"}
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"}
@@ -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 is > than 0.11.0 (forcing UI request to be on)
10
+ * @return true if an app's @devvit/public-api version supports
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 shouldUseUIRequest(dx, meta) {
15
+ export function apiVersionSupportsUIRequest(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 shouldUseUIRequest(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.1000') > 0;
24
+ return compareVersions(version, '0.10.19') >= 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-971ccc657.0",
3
+ "version": "0.11.0-next-2024-07-08-65f535f70.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-971ccc657.0",
63
- "@devvit/runtime-lite": "0.11.0-next-2024-07-03-971ccc657.0",
64
- "@devvit/shared-types": "0.11.0-next-2024-07-03-971ccc657.0",
62
+ "@devvit/protos": "0.11.0-next-2024-07-08-65f535f70.0",
63
+ "@devvit/runtime-lite": "0.11.0-next-2024-07-08-65f535f70.0",
64
+ "@devvit/shared-types": "0.11.0-next-2024-07-08-65f535f70.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-971ccc657.0",
93
- "@devvit/public-api": "0.11.0-next-2024-07-03-971ccc657.0",
94
- "@devvit/repo-tools": "0.11.0-next-2024-07-03-971ccc657.0",
95
- "@devvit/tsconfig": "0.11.0-next-2024-07-03-971ccc657.0",
92
+ "@devvit/eslint-config": "0.11.0-next-2024-07-08-65f535f70.0",
93
+ "@devvit/public-api": "0.11.0-next-2024-07-08-65f535f70.0",
94
+ "@devvit/repo-tools": "0.11.0-next-2024-07-08-65f535f70.0",
95
+ "@devvit/tsconfig": "0.11.0-next-2024-07-08-65f535f70.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": "7a3dbb000f6d248d691dfa3d5f8fbfdef89613ac"
142
+ "gitHead": "1b1d7cbcc932bca1977b4743c8971b5c1a0d77ad"
143
143
  }