ponder 0.8.0-next.2 → 0.8.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.
Files changed (39) hide show
  1. package/dist/bin/ponder.d.ts +5 -1
  2. package/dist/bin/ponder.js +1163 -1140
  3. package/dist/bin/ponder.js.map +1 -1
  4. package/dist/{chunk-K6DOVPPV.js → chunk-3D7HS7F5.js} +23 -118
  5. package/dist/chunk-3D7HS7F5.js.map +1 -0
  6. package/dist/index.d.ts +2 -149
  7. package/dist/index.js +1 -3
  8. package/dist/index.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/bin/commands/codegen.ts +13 -12
  11. package/src/bin/commands/dev.ts +87 -29
  12. package/src/bin/commands/list.ts +141 -0
  13. package/src/bin/commands/serve.ts +35 -23
  14. package/src/bin/commands/start.ts +51 -16
  15. package/src/bin/ponder.ts +21 -0
  16. package/src/bin/utils/run.ts +26 -28
  17. package/src/bin/utils/runServer.ts +5 -17
  18. package/src/build/configAndIndexingFunctions.ts +0 -102
  19. package/src/build/index.ts +715 -7
  20. package/src/build/pre.ts +141 -0
  21. package/src/build/schema.ts +6 -58
  22. package/src/common/options.ts +7 -1
  23. package/src/common/telemetry.ts +21 -10
  24. package/src/database/index.ts +332 -516
  25. package/src/drizzle/index.ts +12 -160
  26. package/src/drizzle/kit/index.ts +6 -37
  27. package/src/index.ts +0 -1
  28. package/src/indexing-store/historical.ts +19 -20
  29. package/src/indexing-store/metadata.ts +2 -30
  30. package/src/indexing-store/realtime.ts +9 -11
  31. package/src/server/index.ts +18 -28
  32. package/src/sync-store/migrations.ts +5 -5
  33. package/src/ui/graphiql.html.ts +6 -6
  34. package/src/utils/result.ts +24 -0
  35. package/dist/chunk-K6DOVPPV.js.map +0 -1
  36. package/dist/pglite/.s.PGSQL.5432.out +0 -0
  37. package/dist/pglite/public/.s.PGSQL.5432.out +0 -0
  38. package/dist/pglite/sync/.s.PGSQL.5432.out +0 -0
  39. package/src/build/service.ts +0 -812
@@ -14,18 +14,22 @@ type GlobalOptions = {
14
14
  command: "dev" | "start" | "serve" | "codegen";
15
15
  } & ReturnType<typeof ponder.opts>;
16
16
  declare const devCommand: Command<[], {
17
+ schema?: string | undefined;
17
18
  port: number;
18
19
  hostname?: string | undefined;
19
20
  }>;
20
21
  declare const startCommand: Command<[], {
22
+ schema?: string | undefined;
21
23
  port: number;
22
24
  hostname?: string | undefined;
23
25
  }>;
24
26
  declare const serveCommand: Command<[], {
27
+ schema?: string | undefined;
25
28
  port: number;
26
29
  hostname?: string | undefined;
27
30
  }>;
31
+ declare const dbCommand: Command<[], {}>;
28
32
  declare const codegenCommand: Command<[], {}>;
29
- type CliOptions = Prettify<GlobalOptions & Partial<ReturnType<typeof devCommand.opts> & ReturnType<typeof startCommand.opts> & ReturnType<typeof serveCommand.opts> & ReturnType<typeof codegenCommand.opts>>>;
33
+ type CliOptions = Prettify<GlobalOptions & Partial<ReturnType<typeof devCommand.opts> & ReturnType<typeof startCommand.opts> & ReturnType<typeof serveCommand.opts> & ReturnType<typeof dbCommand.opts> & ReturnType<typeof codegenCommand.opts>>>;
30
34
 
31
35
  export type { CliOptions };