@nexpress/core 0.3.3 → 0.3.6

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,6 @@
1
1
  import {
2
2
  runHook
3
- } from "./chunk-MXOHWU2P.js";
3
+ } from "./chunk-WRDIRDH7.js";
4
4
  import {
5
5
  getAllCollectionSlugs,
6
6
  getCollectionConfig,
@@ -80,4 +80,4 @@ async function publishScheduledDocuments(atTime = /* @__PURE__ */ new Date()) {
80
80
  export {
81
81
  publishScheduledDocuments
82
82
  };
83
- //# sourceMappingURL=chunk-HYYMUVUK.js.map
83
+ //# sourceMappingURL=chunk-7KGF7JVJ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPluginRegistration
3
- } from "./chunk-MXOHWU2P.js";
3
+ } from "./chunk-WRDIRDH7.js";
4
4
  import {
5
5
  getCurrentSiteId
6
6
  } from "./chunk-SBCVAC2Z.js";
@@ -319,4 +319,4 @@ export {
319
319
  setPluginConfig,
320
320
  pluginConfigCacheTag
321
321
  };
322
- //# sourceMappingURL=chunk-2TOS5BYT.js.map
322
+ //# sourceMappingURL=chunk-KHTS6Y3E.js.map
@@ -29,7 +29,7 @@ import {
29
29
  findDocuments,
30
30
  getDocumentById,
31
31
  saveDocument
32
- } from "./chunk-MXOHWU2P.js";
32
+ } from "./chunk-WRDIRDH7.js";
33
33
  import {
34
34
  deleteMedia
35
35
  } from "./chunk-2VZZ7M26.js";
@@ -1956,4 +1956,4 @@ export {
1956
1956
  revokeMemberRole,
1957
1957
  purgeMemberContent
1958
1958
  };
1959
- //# sourceMappingURL=chunk-WOLMQGW7.js.map
1959
+ //# sourceMappingURL=chunk-STOLH4V2.js.map
@@ -145,7 +145,7 @@ function registerBuiltinHandlers() {
145
145
  registerJobHandler("notifications:sendDigest", handleNotificationsSendDigest);
146
146
  }
147
147
  async function handleContentPublishScheduled(_) {
148
- const { publishScheduledDocuments } = await import("./scheduled-7MSJIJLE.js");
148
+ const { publishScheduledDocuments } = await import("./scheduled-T5WZ4I6O.js");
149
149
  const result = await publishScheduledDocuments();
150
150
  if (result.published > 0) {
151
151
  console.info(
@@ -193,7 +193,7 @@ async function handleMediaCleanup(data) {
193
193
  async function handlePluginScheduledTask(data) {
194
194
  if (isRecord(data) && typeof data.pluginId === "string" && typeof data.taskId === "string") {
195
195
  try {
196
- const { runPluginScheduledTask } = await import("./host-HDRI7WIP.js");
196
+ const { runPluginScheduledTask } = await import("./host-SUX3SPOX.js");
197
197
  await runPluginScheduledTask(data.pluginId, data.taskId);
198
198
  return;
199
199
  } catch (err) {
@@ -673,7 +673,7 @@ var PgBossAdapter = class {
673
673
  this.workRegistrations.push({ queueName, register });
674
674
  await register();
675
675
  }
676
- const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-HDRI7WIP.js");
676
+ const { getRegisteredPluginSchedules, runPluginScheduledTask } = await import("./host-SUX3SPOX.js");
677
677
  for (const schedule of getRegisteredPluginSchedules()) {
678
678
  const queueName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
679
679
  await this.boss.createQueue(queueName);
@@ -775,7 +775,7 @@ var PgBossAdapter = class {
775
775
  });
776
776
  await this.boss.schedule(digestQueue, "0 8 * * *", { cadence: "daily" }, { key: "daily" });
777
777
  await this.boss.schedule(digestQueue, "0 8 * * 1", { cadence: "weekly" }, { key: "weekly" });
778
- const { getRegisteredPluginSchedules } = await import("./host-HDRI7WIP.js");
778
+ const { getRegisteredPluginSchedules } = await import("./host-SUX3SPOX.js");
779
779
  for (const schedule of getRegisteredPluginSchedules()) {
780
780
  const pgBossName = `${toQueueName("plugin:scheduledTask")}.${schedule.pluginId}.${schedule.taskId}`;
781
781
  await this.boss.schedule(pgBossName, schedule.cron, {
@@ -939,7 +939,7 @@ var PgBossAdapter = class {
939
939
  * `workerOwnsRegistrations` so the admin UI can warn the operator.
940
940
  */
941
941
  async reconcilePluginSchedules() {
942
- const { getRegisteredPluginSchedules } = await import("./host-HDRI7WIP.js");
942
+ const { getRegisteredPluginSchedules } = await import("./host-SUX3SPOX.js");
943
943
  const wantedList = getRegisteredPluginSchedules();
944
944
  const wantedByName = /* @__PURE__ */ new Map();
945
945
  for (const schedule of wantedList) {
@@ -1267,4 +1267,4 @@ export {
1267
1267
  stopWorker,
1268
1268
  stopProducer
1269
1269
  };
1270
- //# sourceMappingURL=chunk-WG3B2GNE.js.map
1270
+ //# sourceMappingURL=chunk-UMEFU7Y3.js.map
@@ -1836,7 +1836,7 @@ function createPluginRuntimeContext(options) {
1836
1836
  return row.value;
1837
1837
  },
1838
1838
  async getPlugin() {
1839
- const { getPluginConfig } = await import("./config-CO6TXCA6.js");
1839
+ const { getPluginConfig } = await import("./config-YFGOXHSR.js");
1840
1840
  const value = await getPluginConfig(pluginId);
1841
1841
  if (value && typeof value === "object" && !Array.isArray(value)) {
1842
1842
  return value;
@@ -1844,8 +1844,8 @@ function createPluginRuntimeContext(options) {
1844
1844
  return {};
1845
1845
  },
1846
1846
  async setPlugin(data) {
1847
- const { setPluginConfig } = await import("./config-CO6TXCA6.js");
1848
- const { getPluginRegistration: getPluginRegistration2 } = await import("./host-HDRI7WIP.js");
1847
+ const { setPluginConfig } = await import("./config-YFGOXHSR.js");
1848
+ const { getPluginRegistration: getPluginRegistration2 } = await import("./host-SUX3SPOX.js");
1849
1849
  const reg = getPluginRegistration2(pluginId);
1850
1850
  if (reg?.configSchema) {
1851
1851
  await setPluginConfig(pluginId, data, null);
@@ -2076,7 +2076,7 @@ function invalidatePluginEnabled(pluginId) {
2076
2076
  var fetchOverride = null;
2077
2077
 
2078
2078
  // src/plugins/compat.ts
2079
- var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.3.3" : "0.0.0-dev";
2079
+ var FRAMEWORK_VERSION_FROM_PACKAGE = true ? "0.3.6" : "0.0.0-dev";
2080
2080
  var frameworkVersion = FRAMEWORK_VERSION_FROM_PACKAGE;
2081
2081
  function getFrameworkVersion() {
2082
2082
  return frameworkVersion;
@@ -2226,7 +2226,7 @@ function insertSortedByPriority(list, entry) {
2226
2226
  list.sort((a, b) => a.priority - b.priority);
2227
2227
  }
2228
2228
  async function loadPluginConfig(pluginId) {
2229
- const { getPluginConfig } = await import("./config-CO6TXCA6.js");
2229
+ const { getPluginConfig } = await import("./config-YFGOXHSR.js");
2230
2230
  const value = await getPluginConfig(pluginId);
2231
2231
  if (value && typeof value === "object" && !Array.isArray(value)) {
2232
2232
  return value;
@@ -2737,4 +2737,4 @@ export {
2737
2737
  findDocuments,
2738
2738
  getDocumentById
2739
2739
  };
2740
- //# sourceMappingURL=chunk-MXOHWU2P.js.map
2740
+ //# sourceMappingURL=chunk-WRDIRDH7.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  findDocuments
3
- } from "./chunk-MXOHWU2P.js";
3
+ } from "./chunk-WRDIRDH7.js";
4
4
  import {
5
5
  getI18nConfig
6
6
  } from "./chunk-4ZLMEKFX.js";
@@ -597,4 +597,4 @@ export {
597
597
  buildDiscussionForumPostingJsonLd,
598
598
  buildPersonJsonLd
599
599
  };
600
- //# sourceMappingURL=chunk-AOEN5EIX.js.map
600
+ //# sourceMappingURL=chunk-YYPSQMFY.js.map
package/dist/community.js CHANGED
@@ -33,8 +33,8 @@ import {
33
33
  unfollow,
34
34
  unresolvedReportCount,
35
35
  updateComment
36
- } from "./chunk-WOLMQGW7.js";
37
- import "./chunk-HYYMUVUK.js";
36
+ } from "./chunk-STOLH4V2.js";
37
+ import "./chunk-7KGF7JVJ.js";
38
38
  import {
39
39
  buildDigestEmail,
40
40
  runDigestSweep
@@ -94,7 +94,7 @@ import {
94
94
  setProfanityAdapter
95
95
  } from "./chunk-KU5M27ZC.js";
96
96
  import "./chunk-2N53KKIL.js";
97
- import "./chunk-MXOHWU2P.js";
97
+ import "./chunk-WRDIRDH7.js";
98
98
  import "./chunk-2VZZ7M26.js";
99
99
  import "./chunk-EQ2Z3KMD.js";
100
100
  import {
@@ -5,8 +5,8 @@ import {
5
5
  isVersionedPluginConfig,
6
6
  pluginConfigCacheTag,
7
7
  setPluginConfig
8
- } from "./chunk-2TOS5BYT.js";
9
- import "./chunk-MXOHWU2P.js";
8
+ } from "./chunk-KHTS6Y3E.js";
9
+ import "./chunk-WRDIRDH7.js";
10
10
  import "./chunk-2VZZ7M26.js";
11
11
  import "./chunk-LMPYQLMH.js";
12
12
  import "./chunk-2KNG5KMM.js";
@@ -30,4 +30,4 @@ export {
30
30
  pluginConfigCacheTag,
31
31
  setPluginConfig
32
32
  };
33
- //# sourceMappingURL=config-CO6TXCA6.js.map
33
+ //# sourceMappingURL=config-YFGOXHSR.js.map
@@ -16,7 +16,7 @@ import {
16
16
  runHookAndCollect,
17
17
  runPluginScheduledTask,
18
18
  schedulePluginTask
19
- } from "./chunk-MXOHWU2P.js";
19
+ } from "./chunk-WRDIRDH7.js";
20
20
  import "./chunk-2VZZ7M26.js";
21
21
  import "./chunk-EFZH6UPY.js";
22
22
  import "./chunk-4ZLMEKFX.js";
@@ -49,4 +49,4 @@ export {
49
49
  runPluginScheduledTask,
50
50
  schedulePluginTask
51
51
  };
52
- //# sourceMappingURL=host-HDRI7WIP.js.map
52
+ //# sourceMappingURL=host-SUX3SPOX.js.map
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  introspectThemeSettingsSchema,
5
5
  pluginConfigCacheTag,
6
6
  setPluginConfig
7
- } from "./chunk-2TOS5BYT.js";
7
+ } from "./chunk-KHTS6Y3E.js";
8
8
  import {
9
9
  getPluginTemplatesForCollection,
10
10
  registerPluginTemplates,
@@ -41,7 +41,7 @@ import {
41
41
  renderSitemapIndexXml,
42
42
  renderSitemapXml,
43
43
  validateSeoSettingsPatch
44
- } from "./chunk-AOEN5EIX.js";
44
+ } from "./chunk-YYPSQMFY.js";
45
45
  import {
46
46
  ARGON2_OPTIONS,
47
47
  authenticated,
@@ -130,10 +130,10 @@ import {
130
130
  unfollow,
131
131
  unresolvedReportCount,
132
132
  updateComment
133
- } from "./chunk-WOLMQGW7.js";
133
+ } from "./chunk-STOLH4V2.js";
134
134
  import {
135
135
  publishScheduledDocuments
136
- } from "./chunk-HYYMUVUK.js";
136
+ } from "./chunk-7KGF7JVJ.js";
137
137
  import {
138
138
  buildDigestEmail,
139
139
  runDigestSweep
@@ -229,7 +229,7 @@ import {
229
229
  schedulePluginTask,
230
230
  updateMemberDocument,
231
231
  withDeferredPostCommit
232
- } from "./chunk-MXOHWU2P.js";
232
+ } from "./chunk-WRDIRDH7.js";
233
233
  import {
234
234
  DEFAULT_IMAGE_SIZES,
235
235
  cleanupDeletedMedia,
@@ -366,7 +366,7 @@ import {
366
366
  startWorker,
367
367
  stopProducer,
368
368
  stopWorker
369
- } from "./chunk-WG3B2GNE.js";
369
+ } from "./chunk-UMEFU7Y3.js";
370
370
  import {
371
371
  DEFAULT_JOB_LOG_RETENTION_MS,
372
372
  countJobLogs,
package/dist/jobs.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  startWorker,
19
19
  stopProducer,
20
20
  stopWorker
21
- } from "./chunk-WG3B2GNE.js";
21
+ } from "./chunk-UMEFU7Y3.js";
22
22
  import {
23
23
  DEFAULT_JOB_LOG_RETENTION_MS,
24
24
  countJobLogs,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  publishScheduledDocuments
3
- } from "./chunk-HYYMUVUK.js";
4
- import "./chunk-MXOHWU2P.js";
3
+ } from "./chunk-7KGF7JVJ.js";
4
+ import "./chunk-WRDIRDH7.js";
5
5
  import "./chunk-2VZZ7M26.js";
6
6
  import "./chunk-EFZH6UPY.js";
7
7
  import "./chunk-4ZLMEKFX.js";
@@ -18,4 +18,4 @@ import "./chunk-PZ5AY32C.js";
18
18
  export {
19
19
  publishScheduledDocuments
20
20
  };
21
- //# sourceMappingURL=scheduled-7MSJIJLE.js.map
21
+ //# sourceMappingURL=scheduled-T5WZ4I6O.js.map
package/dist/seo.js CHANGED
@@ -12,8 +12,8 @@ import {
12
12
  renderSitemapIndexXml,
13
13
  renderSitemapXml,
14
14
  validateSeoSettingsPatch
15
- } from "./chunk-AOEN5EIX.js";
16
- import "./chunk-MXOHWU2P.js";
15
+ } from "./chunk-YYPSQMFY.js";
16
+ import "./chunk-WRDIRDH7.js";
17
17
  import "./chunk-2VZZ7M26.js";
18
18
  import "./chunk-EFZH6UPY.js";
19
19
  import "./chunk-4ZLMEKFX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexpress/core",
3
- "version": "0.3.3",
3
+ "version": "0.3.6",
4
4
  "description": "Server-side core for NexPress — collections pipeline, auth, jobs, media, plugins, observability.",
5
5
  "license": "MIT",
6
6
  "author": "Nexpress",
@@ -104,13 +104,13 @@
104
104
  }
105
105
  },
106
106
  "dependencies": {
107
- "@aws-sdk/client-s3": "^3.840.0",
107
+ "@aws-sdk/client-s3": "^3.1049.0",
108
108
  "@node-rs/argon2": "^2.0.2",
109
109
  "arctic": "^3.7.0",
110
110
  "drizzle-orm": "^0.45.2",
111
111
  "intl-messageformat": "^11.2.4",
112
- "jose": "^6.2.2",
113
- "pg": "^8.20.0",
112
+ "jose": "^6.2.3",
113
+ "pg": "^8.21.0",
114
114
  "pg-boss": "^12.18.2",
115
115
  "sharp": "^0.34.2",
116
116
  "zod": "^4.4.3"