@devvit/client 0.11.20-next-2025-08-01-18-17-21-3ee23a730.0 → 0.11.20-next-2025-08-01-23-38-05-9f5c14c49.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.
@@ -1 +1 @@
1
- {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/effects/share.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,cAAc,GAAG;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAIF,wBAAsB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAqBlF;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAEjD"}
1
+ {"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../src/effects/share.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,cAAc,GAAG;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAIF,wBAAsB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAuBlF;AAED,wBAAgB,YAAY,IAAI,MAAM,GAAG,SAAS,CAEjD"}
package/effects/share.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import { emitEffect } from '@devvit/shared-types/client/emit-effect.js';
2
+ import { maxShareParamUserDataChars } from '@devvit/shared-types/client/share.js';
2
3
  import { ICON_FILE_PATH } from '@devvit/shared-types/constants.js';
3
4
  // to-do: unit test.
4
5
  // to-do: move to web view scripts.
5
6
  export async function showShareSheet(opts) {
6
- if (opts.data && opts.data.length > 1024)
7
- throw Error(`data must be <= 1024 characters but was ${opts.data.length} characters`);
7
+ if (opts.data && opts.data.length > maxShareParamUserDataChars)
8
+ throw Error(`data must be <= ${maxShareParamUserDataChars} characters but was ${opts.data.length} characters`);
8
9
  const iconURL = `${new URL(ICON_FILE_PATH, location.origin)}`;
9
10
  let iconRsp;
10
11
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/client",
3
- "version": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
3
+ "version": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,16 +25,16 @@
25
25
  },
26
26
  "types": "./index.d.ts",
27
27
  "dependencies": {
28
- "@devvit/protos": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
29
- "@devvit/reddit": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
30
- "@devvit/shared": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
31
- "@devvit/shared-types": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
32
- "@devvit/web-view-scripts": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0"
28
+ "@devvit/protos": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
29
+ "@devvit/reddit": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
30
+ "@devvit/shared": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
31
+ "@devvit/shared-types": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
32
+ "@devvit/web-view-scripts": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@ampproject/filesize": "4.3.0",
36
- "@devvit/repo-tools": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
37
- "@devvit/tsconfig": "0.11.20-next-2025-08-01-18-17-21-3ee23a730.0",
36
+ "@devvit/repo-tools": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
37
+ "@devvit/tsconfig": "0.11.20-next-2025-08-01-23-38-05-9f5c14c49.0",
38
38
  "esbuild": "0.23.0",
39
39
  "eslint": "9.11.1",
40
40
  "typescript": "5.8.3",
@@ -50,5 +50,5 @@
50
50
  }
51
51
  },
52
52
  "source": "./src/index.ts",
53
- "gitHead": "1b807e61c0e34e8a2f336ed25f3d14e4685c70fc"
53
+ "gitHead": "0275bb97ce3d59a993ef0f5b784d348e10825c6e"
54
54
  }