@devvit/reddit 0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0 → 0.12.1-next-2025-09-10-15-58-19-fe560815f.0

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/RedditClient.d.ts CHANGED
@@ -1157,7 +1157,7 @@ export declare class RedditClient {
1157
1157
  *
1158
1158
  * Valid inputs:
1159
1159
  * - Absolute Reddit URLs without a query string (e.g., https://reddit.com/r/gamesonreddit)
1160
- * - URLs with a query string limited to: utm_source, utm_medium, context
1160
+ * - URLs with a query string limited to: utm_source, utm_medium, devvitshare
1161
1161
  *
1162
1162
  * @note old.reddit.com URLs can be shortened but they will redirect to reddit.com.
1163
1163
  *
package/RedditClient.js CHANGED
@@ -1399,7 +1399,7 @@ export class RedditClient {
1399
1399
  *
1400
1400
  * Valid inputs:
1401
1401
  * - Absolute Reddit URLs without a query string (e.g., https://reddit.com/r/gamesonreddit)
1402
- * - URLs with a query string limited to: utm_source, utm_medium, context
1402
+ * - URLs with a query string limited to: utm_source, utm_medium, devvitshare
1403
1403
  *
1404
1404
  * @note old.reddit.com URLs can be shortened but they will redirect to reddit.com.
1405
1405
  *
@@ -23,7 +23,7 @@ export async function createShareUrl(url) {
23
23
  throw new Error('Only reddit.com URLs under /r/ or /u/ are supported.');
24
24
  }
25
25
  // Fail fast: the service only accepts these query params; others are not supported
26
- const allowedParams = new Set(['utm_source', 'utm_medium', 'context']);
26
+ const allowedParams = new Set(['utm_source', 'utm_medium', 'devvitshare']);
27
27
  const disallowedParams = Array.from(parsedUrl.searchParams.keys()).filter((key) => !allowedParams.has(key));
28
28
  if (disallowedParams.length > 0) {
29
29
  const uniqueDisallowed = Array.from(new Set(disallowedParams)).sort();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/reddit",
3
- "version": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
3
+ "version": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,22 +31,22 @@
31
31
  "test:unit-with-coverage": "vitest run --coverage"
32
32
  },
33
33
  "dependencies": {
34
- "@devvit/protos": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
35
- "@devvit/public-api": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
36
- "@devvit/shared": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
37
- "@devvit/shared-types": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
38
- "@devvit/splash": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0"
34
+ "@devvit/protos": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
35
+ "@devvit/public-api": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
36
+ "@devvit/shared": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
37
+ "@devvit/shared-types": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
38
+ "@devvit/splash": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@devvit/server": "*"
42
42
  },
43
43
  "devDependencies": {
44
- "@devvit/repo-tools": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
45
- "@devvit/server": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
46
- "@devvit/tsconfig": "0.12.1-next-2025-09-09-22-50-11-a0acfa27d.0",
44
+ "@devvit/repo-tools": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
45
+ "@devvit/server": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
46
+ "@devvit/tsconfig": "0.12.1-next-2025-09-10-15-58-19-fe560815f.0",
47
47
  "eslint": "9.11.1",
48
48
  "typescript": "5.8.3",
49
49
  "vitest": "1.6.1"
50
50
  },
51
- "gitHead": "74a836574e06a43f527e561b5af90014b10ea723"
51
+ "gitHead": "f79cc021ffb616890794f7dfa5f1e0d539476252"
52
52
  }