@devvit/client 0.12.1-next-2025-09-08-16-36-02-0857fd917.0 → 0.12.1-next-2025-09-08-18-38-43-78ed48666.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.
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Hey! If you're seeing this, you're probably trying to run client code in the
3
+ * server context, or you have your client build environment set up incorrectly.
4
+ * To fix this:
5
+ * 1) Check that you're not importing client code in your server files. If you
6
+ * are, you should import from `@devvit/web/server` instead of
7
+ * `@devvit/web/client`. `@devvit/client` is client only and has no server
8
+ * support.
9
+ * 2) If this is coming from client code, ensure that your server's tsconfig &
10
+ * build environment is set up correctly - specifically, make sure you set
11
+ * `compilerOptions.customConditions` to `["browser"]` in your `tsconfig.json`
12
+ * file. Also, verify that whatever bundler you're using (esbuild, vite, etc.)
13
+ * is bundling the server code for a web browser, and not a Node environment!
14
+ */
15
+ export {};
16
+ //# sourceMappingURL=clientImportInServerCodePanic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientImportInServerCodePanic.d.ts","sourceRoot":"","sources":["../src/clientImportInServerCodePanic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Hey! If you're seeing this, you're probably trying to run client code in the
3
+ * server context, or you have your client build environment set up incorrectly.
4
+ * To fix this:
5
+ * 1) Check that you're not importing client code in your server files. If you
6
+ * are, you should import from `@devvit/web/server` instead of
7
+ * `@devvit/web/client`. `@devvit/client` is client only and has no server
8
+ * support.
9
+ * 2) If this is coming from client code, ensure that your server's tsconfig &
10
+ * build environment is set up correctly - specifically, make sure you set
11
+ * `compilerOptions.customConditions` to `["browser"]` in your `tsconfig.json`
12
+ * file. Also, verify that whatever bundler you're using (esbuild, vite, etc.)
13
+ * is bundling the server code for a web browser, and not a Node environment!
14
+ */
15
+ console.error("Can't import client code in the server!");
16
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/client",
3
- "version": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
3
+ "version": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,10 +8,12 @@
8
8
  },
9
9
  "type": "module",
10
10
  "exports": {
11
- ".": "./index.js",
11
+ ".": {
12
+ "server": "./clientImportInServerCodePanic.js",
13
+ "default": "./index.js"
14
+ },
12
15
  "./package.json": "./package.json"
13
16
  },
14
- "main": "./dist/index.js",
15
17
  "files": [
16
18
  "**"
17
19
  ],
@@ -30,17 +32,16 @@
30
32
  "test:unit": "vitest run",
31
33
  "test:unit-with-coverage": "vitest run --coverage"
32
34
  },
33
- "types": "./dist/index.d.ts",
34
35
  "dependencies": {
35
- "@devvit/protos": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
36
- "@devvit/shared": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
37
- "@devvit/shared-types": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
38
- "@devvit/web-view-scripts": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0"
36
+ "@devvit/protos": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
37
+ "@devvit/shared": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
38
+ "@devvit/shared-types": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
39
+ "@devvit/web-view-scripts": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/repo-tools": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
43
- "@devvit/tsconfig": "0.12.1-next-2025-09-08-16-36-02-0857fd917.0",
43
+ "@devvit/repo-tools": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
44
+ "@devvit/tsconfig": "0.12.1-next-2025-09-08-18-38-43-78ed48666.0",
44
45
  "esbuild": "0.25.9",
45
46
  "eslint": "9.11.1",
46
47
  "typescript": "5.8.3",
@@ -52,6 +53,5 @@
52
53
  "none": "104 KB"
53
54
  }
54
55
  },
55
- "source": "./src/index.ts",
56
- "gitHead": "9c81842620a8bd6824ee42532789c29eb57bbe29"
56
+ "gitHead": "1c9c60672fd6a2b30e77e758618e5b65a56eb0e8"
57
57
  }