emdash 0.0.1 → 0.0.3

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.
Files changed (36) hide show
  1. package/dist/astro/index.mjs +41 -38
  2. package/dist/astro/index.mjs.map +1 -1
  3. package/dist/astro/middleware.d.mts.map +1 -1
  4. package/dist/astro/middleware.mjs +18 -1
  5. package/dist/astro/middleware.mjs.map +1 -1
  6. package/dist/cli/index.mjs +1 -1
  7. package/dist/cli/index.mjs.map +1 -1
  8. package/dist/db/index.mjs +1 -1
  9. package/dist/index.mjs +1 -1
  10. package/dist/{runner-B-u2F2b6.mjs → runner-C0hCbYnD.mjs} +15 -15
  11. package/dist/runner-C0hCbYnD.mjs.map +1 -0
  12. package/dist/storage/local.d.mts.map +1 -1
  13. package/dist/storage/local.mjs.map +1 -1
  14. package/dist/storage/s3.d.mts.map +1 -1
  15. package/dist/storage/s3.mjs.map +1 -1
  16. package/package.json +5 -5
  17. package/src/api/handlers/device-flow.ts +1 -4
  18. package/src/api/handlers/oauth-clients.ts +1 -5
  19. package/src/astro/integration/index.ts +1 -1
  20. package/src/astro/integration/vite-config.ts +8 -1
  21. package/src/astro/middleware.ts +35 -0
  22. package/src/astro/routes/api/admin/comments/[id]/status.ts +1 -5
  23. package/src/astro/routes/api/auth/passkey/register/verify.ts +1 -3
  24. package/src/astro/routes/api/content/[collection]/[id]/schedule.ts +1 -5
  25. package/src/astro/routes/api/import/wordpress/analyze.ts +1 -1
  26. package/src/astro/routes/api/import/wordpress/media.ts +1 -1
  27. package/src/astro/routes/api/revisions/[revisionId]/restore.ts +1 -5
  28. package/src/astro/routes/api/widget-areas/[name]/reorder.ts +1 -5
  29. package/src/cli/commands/publish.ts +1 -3
  30. package/src/cli/commands/seed.ts +1 -3
  31. package/src/database/migrations/001_initial.ts +39 -5
  32. package/src/database/migrations/032_rate_limits.ts +1 -4
  33. package/src/mcp/server.ts +2 -2
  34. package/src/storage/local.ts +1 -5
  35. package/src/storage/s3.ts +2 -10
  36. package/dist/runner-B-u2F2b6.mjs.map +0 -1
@@ -1119,49 +1119,52 @@ function createViteConfig(options, command) {
1119
1119
  plugins: [createVirtualModulesPlugin(options)],
1120
1120
  ssr: cloudflare ? {
1121
1121
  noExternal: ["emdash", "@emdash-cms/admin"],
1122
- optimizeDeps: { include: [
1123
- "emdash > @portabletext/toolkit",
1124
- "emdash > @unpic/placeholder",
1125
- "emdash > blurhash",
1126
- "emdash > croner",
1127
- "emdash > image-size",
1128
- "emdash > jose",
1129
- "emdash > jpeg-js",
1130
- "emdash > kysely",
1131
- "emdash > mime/lite",
1132
- "emdash > modern-tar",
1133
- "emdash > sanitize-html",
1134
- "emdash > ulidx",
1135
- "emdash > upng-js",
1136
- "emdash > astro-portabletext",
1137
- "emdash > sax",
1138
- "emdash > sanitize-html > parse5",
1139
- "emdash > @emdash-cms/gutenberg-to-portable-text > @wordpress/block-serialization-default-parser",
1140
- "emdash > @emdash-cms/auth > @oslojs/crypto/ecdsa",
1141
- "emdash > @emdash-cms/auth > @oslojs/crypto/sha2",
1142
- "emdash > @emdash-cms/auth > @oslojs/webauthn",
1143
- "react",
1144
- "react/jsx-dev-runtime",
1145
- "react/jsx-runtime",
1146
- "react-dom",
1147
- "react-dom/server",
1148
- "astro > zod/v4",
1149
- "astro > zod/v4/core",
1150
- "@emdash-cms/cloudflare > kysely-d1",
1151
- "astro/virtual-modules/middleware.js",
1152
- "astro/virtual-modules/live-config",
1153
- "astro/content/runtime",
1154
- "astro/assets/utils/inferRemoteSize.js",
1155
- "astro/assets/fonts/runtime.js",
1156
- "@astrojs/cloudflare/image-service"
1157
- ] }
1122
+ optimizeDeps: {
1123
+ exclude: ["virtual:emdash"],
1124
+ include: [
1125
+ "emdash > @portabletext/toolkit",
1126
+ "emdash > @unpic/placeholder",
1127
+ "emdash > blurhash",
1128
+ "emdash > croner",
1129
+ "emdash > image-size",
1130
+ "emdash > jose",
1131
+ "emdash > jpeg-js",
1132
+ "emdash > kysely",
1133
+ "emdash > mime/lite",
1134
+ "emdash > modern-tar",
1135
+ "emdash > sanitize-html",
1136
+ "emdash > ulidx",
1137
+ "emdash > upng-js",
1138
+ "emdash > astro-portabletext",
1139
+ "emdash > sax",
1140
+ "emdash > sanitize-html > parse5",
1141
+ "emdash > @emdash-cms/gutenberg-to-portable-text > @wordpress/block-serialization-default-parser",
1142
+ "emdash > @emdash-cms/auth > @oslojs/crypto/ecdsa",
1143
+ "emdash > @emdash-cms/auth > @oslojs/crypto/sha2",
1144
+ "emdash > @emdash-cms/auth > @oslojs/webauthn",
1145
+ "react",
1146
+ "react/jsx-dev-runtime",
1147
+ "react/jsx-runtime",
1148
+ "react-dom",
1149
+ "react-dom/server",
1150
+ "astro > zod/v4",
1151
+ "astro > zod/v4/core",
1152
+ "@emdash-cms/cloudflare > kysely-d1",
1153
+ "astro/virtual-modules/middleware.js",
1154
+ "astro/virtual-modules/live-config",
1155
+ "astro/content/runtime",
1156
+ "astro/assets/utils/inferRemoteSize.js",
1157
+ "astro/assets/fonts/runtime.js",
1158
+ "@astrojs/cloudflare/image-service"
1159
+ ]
1160
+ }
1158
1161
  } : {
1159
1162
  external: NODE_NATIVE_EXTERNALS,
1160
1163
  noExternal: ["emdash", "@emdash-cms/admin"]
1161
1164
  },
1162
1165
  optimizeDeps: {
1163
1166
  include: useSource ? ["@astrojs/react/client.js"] : ["@emdash-cms/admin", "@astrojs/react/client.js"],
1164
- exclude: cloudflare ? [] : NODE_NATIVE_EXTERNALS
1167
+ exclude: cloudflare ? ["virtual:emdash"] : [...NODE_NATIVE_EXTERNALS, "virtual:emdash"]
1165
1168
  }
1166
1169
  };
1167
1170
  }
@@ -1190,7 +1193,7 @@ const cyan = (s) => `\x1b[36m${s}\x1b[39m`;
1190
1193
  function printBanner(_logger) {
1191
1194
  const banner = `
1192
1195
 
1193
- ${bold(cyan("E C L I P T I C"))}
1196
+ ${bold(cyan("E M D A S H "))}
1194
1197
  `;
1195
1198
  console.log(banner);
1196
1199
  }