@devvit/shared-types 0.12.11-next-2026-01-26-21-02-12-29cb7a1f6.0 → 0.12.11-next-2026-01-27-15-47-47-2d4af0114.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/shared-types",
3
- "version": "0.12.11-next-2026-01-26-21-02-12-29cb7a1f6.0",
3
+ "version": "0.12.11-next-2026-01-27-15-47-47-2d4af0114.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,13 +32,13 @@
32
32
  },
33
33
  "types": "./dist/index.d.ts",
34
34
  "dependencies": {
35
- "@devvit/protos": "0.12.11-next-2026-01-26-21-02-12-29cb7a1f6.0",
35
+ "@devvit/protos": "0.12.11-next-2026-01-27-15-47-47-2d4af0114.0",
36
36
  "jsonschema": "1.4.1",
37
37
  "uuid": "9.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@devvit/repo-tools": "0.12.11-next-2026-01-26-21-02-12-29cb7a1f6.0",
41
- "@devvit/tsconfig": "0.12.11-next-2026-01-26-21-02-12-29cb7a1f6.0",
40
+ "@devvit/repo-tools": "0.12.11-next-2026-01-27-15-47-47-2d4af0114.0",
41
+ "@devvit/tsconfig": "0.12.11-next-2026-01-27-15-47-47-2d4af0114.0",
42
42
  "@types/node": "20.14.12",
43
43
  "@types/redis-mock": "0.17.1",
44
44
  "@types/uuid": "9.0.0",
@@ -51,5 +51,5 @@
51
51
  "vitest": "4.0.15"
52
52
  },
53
53
  "source": "./src/index.ts",
54
- "gitHead": "08691c38fd02c7d6157f570778d888e19a612b70"
54
+ "gitHead": "e32809d88a513bf146bdf5bf1b339a7d2cb16bc4"
55
55
  }
@@ -319,6 +319,13 @@ export function validate(config) {
319
319
  errs.push(`Setting "${setting.name}" default values "${setting.defaultValue.join(', ')}" are not in options "${setting.options.map((option) => option.value).join(', ')}"`);
320
320
  }
321
321
  }
322
+ // DR-300: settings names must be unique across global and subreddit scopes
323
+ const globalSettingNames = new Set(Object.keys(config.settings?.global ?? {}));
324
+ for (const subredditSettingName of Object.keys(config.settings?.subreddit ?? {})) {
325
+ if (globalSettingNames.has(subredditSettingName)) {
326
+ errs.push(`Duplicate setting name "${subredditSettingName}" in global and subreddit scopes. Rename or remove one of them.`);
327
+ }
328
+ }
322
329
  if (errs.length)
323
330
  throw Error(`${errs.join('; ')}.`);
324
331
  }