@devvit/build-pack 0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0 → 0.11.18

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":"dependency-spec-util.d.ts","sourceRoot":"","sources":["../../src/esbuild/dependency-spec-util.ts"],"names":[],"mappings":"AA4BA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC9B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,EACzC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC7B,cAAc,CAgFhB"}
1
+ {"version":3,"file":"dependency-spec-util.d.ts","sourceRoot":"","sources":["../../src/esbuild/dependency-spec-util.ts"],"names":[],"mappings":"AAyBA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAK7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAC;AAEhF;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,EAC9B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,EACzC,SAAS,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC7B,cAAc,CA8EhB"}
@@ -1,4 +1,4 @@
1
- import { AppSettingsDefinition, ContextActionDefinition, CustomPostDefinition, Definition, FlairDefinition, GraphQLDefinition, HTTPDefinition, InstallationSettingsDefinition, LinksAndCommentsDefinition, ListingsDefinition, MediaServiceDefinition, ModerationDefinition, ModlogDefinition, ModNoteDefinition, NewModmailDefinition, OnAppInstallDefinition, PrivateMessagesDefinition, RealtimeDefinition, RedisAPIDefinition, SettingsDefinition, SubredditsDefinition, UIEventHandlerDefinition, UserActionsDefinition, UsersDefinition, WidgetsDefinition, WikiDefinition, } from '@devvit/protos';
1
+ import { ContextActionDefinition, CustomPostDefinition, Definition, FlairDefinition, GraphQLDefinition, HTTPDefinition, LinksAndCommentsDefinition, ListingsDefinition, MediaServiceDefinition, ModerationDefinition, ModlogDefinition, ModNoteDefinition, NewModmailDefinition, OnAppInstallDefinition, PrivateMessagesDefinition, RealtimeDefinition, RedisAPIDefinition, SubredditsDefinition, UIEventHandlerDefinition, UserActionsDefinition, UsersDefinition, WidgetsDefinition, WikiDefinition, } from '@devvit/protos';
2
2
  import { PaymentProcessorDefinition, PaymentsServiceDefinition } from '@devvit/protos/payments.js';
3
3
  import { WebbitServerDefinition } from '@devvit/protos/types/devvit/actor/webbit/webbit.js';
4
4
  import { normalizeDomains } from '@devvit/shared-types/fetch-domains.js';
@@ -41,18 +41,17 @@ export function createDependencySpec(actorSpec, config, namespace) {
41
41
  use(spec, RedisAPIDefinition);
42
42
  if (config.post) {
43
43
  provide(spec, CustomPostDefinition, UIEventHandlerDefinition);
44
+ if (config.post.create.menu.enable || config.blocks?.menu.enable)
45
+ provide(spec, ContextActionDefinition);
44
46
  if (config.post.create.onInstall)
45
47
  provide(spec, OnAppInstallDefinition);
46
48
  }
47
49
  if (config.server)
48
50
  provide(spec, WebbitServerDefinition);
49
- if (config.permissions.menu)
51
+ if ((config.menuActions?.length || 0) > 0)
50
52
  provide(spec, ContextActionDefinition);
51
- if (config.permissions.settings) {
52
- use(spec, SettingsDefinition);
53
- provide(spec, AppSettingsDefinition, InstallationSettingsDefinition);
54
- }
55
53
  // to-do: when scheduler, SchedulerDefinition / SchedulerHandlerDefinition.
54
+ // to-do: when settings, SettingsDefinition / AppSettingsDefinition / InstallationSettingsDefinition.
56
55
  // to-do: when form, UIEventHandlerDefinition.
57
56
  // to-do: when triggers:
58
57
  // OnAppInstallDefinition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/build-pack",
3
- "version": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
3
+ "version": "0.11.18",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "types": "./index.d.ts",
25
25
  "dependencies": {
26
- "@devvit/protos": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
27
- "@devvit/shared-types": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
26
+ "@devvit/protos": "0.11.18",
27
+ "@devvit/shared-types": "0.11.18",
28
28
  "esbuild": "0.23.0",
29
29
  "rxjs": "7.8.1",
30
30
  "tsv": "0.2.0",
@@ -35,10 +35,10 @@
35
35
  "@devvit/server": "*"
36
36
  },
37
37
  "devDependencies": {
38
- "@devvit/public-api": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
39
- "@devvit/repo-tools": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
40
- "@devvit/server": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
41
- "@devvit/tsconfig": "0.11.18-next-2025-06-30-16-07-46-77bec1ee2.0",
38
+ "@devvit/public-api": "0.11.18",
39
+ "@devvit/repo-tools": "0.11.18",
40
+ "@devvit/server": "0.11.18",
41
+ "@devvit/tsconfig": "0.11.18",
42
42
  "@types/tsv": "0.2.1",
43
43
  "eslint": "9.11.1",
44
44
  "vitest": "1.6.1"
@@ -47,5 +47,5 @@
47
47
  "directory": "dist"
48
48
  },
49
49
  "source": "./src/index.ts",
50
- "gitHead": "5c38e5e8360e4ab0fcb4a291770affe65a320c66"
50
+ "gitHead": "528a395e1d56da073194f98bd6eec9f073b4ae3a"
51
51
  }