@devvit/client 0.13.0-next-2025-10-04-02-52-00-3c6373ae7.0 → 0.13.0-next-2025-10-06-17-22-07-430902c23.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/client-meta.min.json +42 -109
- package/client.min.js +1 -1
- package/client.min.js.map +4 -4
- package/clientContext.d.ts +1 -2
- package/clientContext.d.ts.map +1 -1
- package/clientContext.js +2 -15
- package/index.d.ts +9 -8
- package/index.d.ts.map +1 -1
- package/index.js +8 -7
- package/package.json +7 -8
- package/context.test.d.ts.map +0 -1
package/clientContext.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import '@devvit/
|
|
2
|
-
import { type Context } from '@devvit/web-view-scripts/init-context.js';
|
|
1
|
+
import type { Context } from '@devvit/shared-types/client/client-context.js';
|
|
3
2
|
export declare const context: Context;
|
|
4
3
|
//# sourceMappingURL=clientContext.d.ts.map
|
package/clientContext.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientContext.d.ts","sourceRoot":"","sources":["../src/clientContext.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"clientContext.d.ts","sourceRoot":"","sources":["../src/clientContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AAG7E,eAAO,MAAM,OAAO,EAAE,OAAqC,CAAC"}
|
package/clientContext.js
CHANGED
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export const context = new Proxy({}, {
|
|
4
|
-
get: (_target, prop) => {
|
|
5
|
-
return globalThis.devvit.context[prop];
|
|
6
|
-
},
|
|
7
|
-
// The following two methods set up the Proxy to behave like a normal object when iterating over keys or
|
|
8
|
-
// checking if a property exists. (This helps ensure tests pass too.)
|
|
9
|
-
ownKeys() {
|
|
10
|
-
return Object.keys(globalThis.devvit.context);
|
|
11
|
-
},
|
|
12
|
-
getOwnPropertyDescriptor(_target, key) {
|
|
13
|
-
return { enumerable: true, configurable: true, value: globalThis.devvit.context[key] };
|
|
14
|
-
},
|
|
15
|
-
});
|
|
1
|
+
// Use nullish coalescing for local development.
|
|
2
|
+
export const context = globalThis.devvit?.context;
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export type {
|
|
1
|
+
export * from './clientContext.js';
|
|
2
|
+
export * from './effects/navigate-to.js';
|
|
3
|
+
export * from './effects/run-as-user.js';
|
|
4
|
+
export * from './effects/share.js';
|
|
5
|
+
export * from './effects/show-form.js';
|
|
6
|
+
export * from './effects/show-toast.js';
|
|
7
|
+
export * from './effects/web-view-mode.js';
|
|
8
|
+
export type { Context } from '@devvit/shared-types/client/client-context.js';
|
|
9
|
+
export * from '@devvit/shared-types/PostData.js';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,YAAY,EAAE,OAAO,EAAE,MAAM,+CAA+C,CAAC;AAC7E,cAAc,kCAAkC,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
1
|
+
export * from './clientContext.js';
|
|
2
|
+
export * from './effects/navigate-to.js';
|
|
3
|
+
export * from './effects/run-as-user.js';
|
|
4
|
+
export * from './effects/share.js';
|
|
5
|
+
export * from './effects/show-form.js';
|
|
6
|
+
export * from './effects/show-toast.js';
|
|
7
|
+
export * from './effects/web-view-mode.js';
|
|
8
|
+
export * from '@devvit/shared-types/PostData.js';
|
|
8
9
|
import { registerListener } from './effects/web-view-mode.js';
|
|
9
10
|
registerListener();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/client",
|
|
3
|
-
"version": "0.13.0-next-2025-10-
|
|
3
|
+
"version": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,15 +33,14 @@
|
|
|
33
33
|
"test:unit-with-coverage": "vitest run --coverage"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@devvit/protos": "0.13.0-next-2025-10-
|
|
37
|
-
"@devvit/shared": "0.13.0-next-2025-10-
|
|
38
|
-
"@devvit/shared-types": "0.13.0-next-2025-10-
|
|
39
|
-
"@devvit/web-view-scripts": "0.13.0-next-2025-10-04-02-52-00-3c6373ae7.0"
|
|
36
|
+
"@devvit/protos": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
|
|
37
|
+
"@devvit/shared": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
|
|
38
|
+
"@devvit/shared-types": "0.13.0-next-2025-10-06-17-22-07-430902c23.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
41
|
"@ampproject/filesize": "4.3.0",
|
|
43
|
-
"@devvit/repo-tools": "0.13.0-next-2025-10-
|
|
44
|
-
"@devvit/tsconfig": "0.13.0-next-2025-10-
|
|
42
|
+
"@devvit/repo-tools": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
|
|
43
|
+
"@devvit/tsconfig": "0.13.0-next-2025-10-06-17-22-07-430902c23.0",
|
|
45
44
|
"esbuild": "0.25.9",
|
|
46
45
|
"eslint": "9.11.1",
|
|
47
46
|
"typescript": "5.8.3",
|
|
@@ -53,5 +52,5 @@
|
|
|
53
52
|
"none": "106 KB"
|
|
54
53
|
}
|
|
55
54
|
},
|
|
56
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "bf7c8f6e794edd496cf8071c2072f3adef60883d"
|
|
57
56
|
}
|
package/context.test.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.test.d.ts","sourceRoot":"","sources":["../src/context.test.ts"],"names":[],"mappings":""}
|