@devvit/realtime 0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0 → 0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.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,2 +1,2 @@
1
1
  export { connectRealtime } from './realtime.js';
2
- //# sourceMappingURL=index-browser.d.ts.map
2
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,15 @@
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 server 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`.
8
+ * 2) Ensure that your server's tsconfig & build environment is set up correctly
9
+ * - specifically, make sure you do NOT set `compilerOptions.customConditions`
10
+ * to `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
11
+ * bundler you're using (esbuild, vite, etc.) is bundling the server code
12
+ * for a Node environment, and not a web browser!
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=clientImportInServerCodePanic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientImportInServerCodePanic.d.ts","sourceRoot":"","sources":["../src/clientImportInServerCodePanic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,15 @@
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 server 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`.
8
+ * 2) Ensure that your server's tsconfig & build environment is set up correctly
9
+ * - specifically, make sure you do NOT set `compilerOptions.customConditions`
10
+ * to `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
11
+ * bundler you're using (esbuild, vite, etc.) is bundling the server code
12
+ * for a Node environment, and not a web browser!
13
+ */
14
+ console.error("Can't import client code in the server!");
15
+ export {};
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@devvit/realtime",
3
- "version": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
3
+ "version": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://developers.reddit.com/"
8
8
  },
9
9
  "type": "module",
10
- "main": "./index.js",
11
10
  "scripts": {
12
11
  "build": "tsc",
13
12
  "clean": "rm -rf .turbo coverage dist",
@@ -19,20 +18,19 @@
19
18
  "test": "yarn test:types && yarn lint",
20
19
  "test:types": "tsc --noEmit"
21
20
  },
22
- "types": "./index.d.ts",
23
21
  "dependencies": {
24
- "@devvit/protos": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
25
- "@devvit/shared": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0"
22
+ "@devvit/protos": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
23
+ "@devvit/shared": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0"
26
24
  },
27
25
  "peerDependencies": {
28
26
  "@devvit/client": "*",
29
27
  "@devvit/server": "*"
30
28
  },
31
29
  "devDependencies": {
32
- "@devvit/client": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
33
- "@devvit/repo-tools": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
34
- "@devvit/server": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
35
- "@devvit/tsconfig": "0.11.20-next-2025-07-23-23-57-19-9b6898ff9.0",
30
+ "@devvit/client": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
31
+ "@devvit/repo-tools": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
32
+ "@devvit/server": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
33
+ "@devvit/tsconfig": "0.11.20-next-2025-07-24-17-36-25-fcf4a28f3.0",
36
34
  "eslint": "9.11.1",
37
35
  "typescript": "5.8.3",
38
36
  "vitest": "1.6.1"
@@ -40,6 +38,5 @@
40
38
  "publishConfig": {
41
39
  "directory": "dist"
42
40
  },
43
- "source": "./src/index.ts",
44
- "gitHead": "a9e365d446cadf15060a6e2312021802923d435f"
41
+ "gitHead": "73176defc732a135c8395a89d4a95be008a4e17e"
45
42
  }
@@ -1,2 +1,2 @@
1
1
  export { realtime, type RealtimeClient } from './RealtimeClient.js';
2
- //# sourceMappingURL=index.d.ts.map
2
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Hey! If you're seeing this, you're probably trying to run server code in the
3
+ * client context, or you have your client build environment set up incorrectly.
4
+ * To fix this:
5
+ * 1) Check that you're not importing server code in your client files. If you
6
+ * are, you should import from `@devvit/web/client` instead of
7
+ * `@devvit/web/server`.
8
+ * 2) Ensure that your client's tsconfig & build environment is set up correctly
9
+ * - specifically, make sure you set `compilerOptions.customConditions` to
10
+ * `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
11
+ * bundler you're using (esbuild, vite, etc.) is bundling the client code
12
+ * for a web browser, and not a Node environment!
13
+ */
14
+ export {};
15
+ //# sourceMappingURL=serverImportInClientCodePanic.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverImportInClientCodePanic.d.ts","sourceRoot":"","sources":["../src/serverImportInClientCodePanic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Hey! If you're seeing this, you're probably trying to run server code in the
3
+ * client context, or you have your client build environment set up incorrectly.
4
+ * To fix this:
5
+ * 1) Check that you're not importing server code in your client files. If you
6
+ * are, you should import from `@devvit/web/client` instead of
7
+ * `@devvit/web/server`.
8
+ * 2) Ensure that your client's tsconfig & build environment is set up correctly
9
+ * - specifically, make sure you set `compilerOptions.customConditions` to
10
+ * `["browser"]` in your `tsconfig.json` file. Also, verify that whatever
11
+ * bundler you're using (esbuild, vite, etc.) is bundling the client code
12
+ * for a web browser, and not a Node environment!
13
+ */
14
+ console.error("Can't import server code in the client!");
15
+ export {};
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-browser.d.ts","sourceRoot":"","sources":["../src/index-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC"}
package/index.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC"}
File without changes
File without changes