@devvit/server 0.12.6-next-2025-12-05-15-56-58-f3fde924b.0 → 0.12.6-next-2025-12-05-20-00-45-8a5827c28.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,6 +1,5 @@
1
+ import '@devvit/shared-types/shared/devvit-worker-global.js';
1
2
  import type { IncomingMessage, Server, ServerOptions, ServerResponse } from 'node:http';
2
- import type { Metadata } from '@devvit/protos';
3
- import type { FormField } from '@devvit/shared';
4
3
  /**
5
4
  * Creates a new Devvit server. This implements the same API as Node.js's `createServer` function,
6
5
  * but we do not guarantee that this actually creates an HTTP server of any kind - it may be any
@@ -14,15 +13,6 @@ export declare const createServer: <Request extends typeof IncomingMessage = typ
14
13
  declare global {
15
14
  namespace globalThis {
16
15
  var enableWebbitBundlingHack: boolean;
17
- var devvit: {
18
- metadataProvider?: () => Readonly<Metadata> | undefined;
19
- settings?: {
20
- /** Global settings. */
21
- app?: FormField[] | undefined;
22
- /** Subreddit settings. */
23
- installation?: FormField[] | undefined;
24
- };
25
- };
26
16
  }
27
17
  }
28
18
  //# sourceMappingURL=create-server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-server.d.ts","sourceRoot":"","sources":["../src/create-server.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGxF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD;;;;GAIG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,SAAS,OAAO,eAAe,GAAG,OAAO,eAAe,EAC/D,QAAQ,SAAS,OAAO,cAAc,GAAG,OAAO,cAAc,EAE9D,2BACI,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,GAChC,CAAC,CACC,GAAG,EAAE,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,CAAC,GAAG;IAAE,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;CAAE,KACzD,GAAG,CAAC,EACb,kBAAkB,CAChB,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,EAC1B,GAAG,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG;IAAE,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,CAAA;CAAE,KACzD,GAAG,KACP,MAAM,CAAC,OAAO,EAAE,QAAQ,CAM1B,CAAC;AA6CF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,UAAU,CAAC;QAEnB,IAAI,wBAAwB,EAAE,OAAO,CAAC;KACvC;CACF"}
package/create-server.js CHANGED
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
+ import '@devvit/shared-types/shared/devvit-worker-global.js';
2
3
  import { createServer as nodeCreateServer } from 'node:http';
3
4
  import { getMetadata, runWithContext } from './context.js';
4
5
  import { Context } from './server-context.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/server",
3
- "version": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
3
+ "version": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,17 +31,17 @@
31
31
  "test:unit-with-coverage": "vitest run --coverage"
32
32
  },
33
33
  "dependencies": {
34
- "@devvit/protos": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
35
- "@devvit/public-api": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
36
- "@devvit/shared": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
37
- "@devvit/shared-types": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0"
34
+ "@devvit/protos": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
35
+ "@devvit/public-api": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
36
+ "@devvit/shared": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
37
+ "@devvit/shared-types": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@devvit/repo-tools": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
41
- "@devvit/tsconfig": "0.12.6-next-2025-12-05-15-56-58-f3fde924b.0",
40
+ "@devvit/repo-tools": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
41
+ "@devvit/tsconfig": "0.12.6-next-2025-12-05-20-00-45-8a5827c28.0",
42
42
  "eslint": "9.11.1",
43
43
  "typescript": "5.8.3",
44
44
  "vitest": "1.6.1"
45
45
  },
46
- "gitHead": "1657a194d2514b2634d4f6e10497dd558bddd10f"
46
+ "gitHead": "8fe5d0140935bfdd2604f96d4404810e20f2c896"
47
47
  }