neon 3.1.0 → 3.2.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 (68) hide show
  1. package/README.md +30 -5
  2. package/dist/{_shared/auth_selection.js → _chunks/auth_selection-DGgq6ifc.js} +3 -3
  3. package/dist/_chunks/cmd_pipeline-CUbBO9U_.js +2818 -0
  4. package/dist/{_shared/credentials.js → _chunks/credentials-MYdHdKah.js} +3 -3
  5. package/dist/_chunks/env-NbA61JR3.js +585 -0
  6. package/dist/{_shared/env-core/env.js → _chunks/env_services-Tz9G4JeT.js} +179 -43
  7. package/dist/{_shared/paths.js → _chunks/paths-DMq0Lt7a.js} +2 -2
  8. package/dist/{_shared/profiles.js → _chunks/profiles-Ir29rqns.js} +4 -13
  9. package/dist/_chunks/psql-DWH-kc69.js +2169 -0
  10. package/dist/{_virtual/_rolldown/runtime.js → _chunks/rolldown-runtime-D7D4PA-g.js} +1 -1
  11. package/dist/{_shared/secure_file.js → _chunks/secure_file-BucZj4yQ.js} +2 -4
  12. package/dist/analytics.js +2 -2
  13. package/dist/auth_context.js +1 -1
  14. package/dist/commands/api.js +2 -2
  15. package/dist/commands/api_keys.js +2 -2
  16. package/dist/commands/auth.js +7 -6
  17. package/dist/commands/bootstrap.js +3 -3
  18. package/dist/commands/branches.js +2 -2
  19. package/dist/commands/bucket.js +2 -2
  20. package/dist/commands/checkout.js +2 -2
  21. package/dist/commands/config.js +2 -2
  22. package/dist/commands/connection_string.js +2 -2
  23. package/dist/commands/data_api.js +2 -2
  24. package/dist/commands/databases.js +2 -2
  25. package/dist/commands/deploy.js +2 -2
  26. package/dist/commands/dev.js +3 -3
  27. package/dist/commands/diff.js +2 -2
  28. package/dist/commands/env.js +42 -32
  29. package/dist/commands/functions.js +2 -2
  30. package/dist/commands/index.js +35 -33
  31. package/dist/commands/init.js +3 -3
  32. package/dist/commands/inspect.js +2 -2
  33. package/dist/commands/ip_allow.js +2 -2
  34. package/dist/commands/link.js +2 -2
  35. package/dist/commands/logs.js +2 -2
  36. package/dist/commands/neon_auth.js +2 -2
  37. package/dist/commands/open.js +33 -0
  38. package/dist/commands/operations.js +2 -2
  39. package/dist/commands/orgs.js +2 -2
  40. package/dist/commands/profile.js +7 -7
  41. package/dist/commands/projects.js +2 -2
  42. package/dist/commands/psql.js +2 -2
  43. package/dist/commands/roles.js +2 -2
  44. package/dist/commands/set_context.js +2 -2
  45. package/dist/commands/snapshots.js +2 -2
  46. package/dist/commands/status.js +2 -2
  47. package/dist/commands/user.js +2 -2
  48. package/dist/commands/vpc_endpoints.js +2 -2
  49. package/dist/config.js +1 -1
  50. package/dist/dev/env.js +1 -364
  51. package/dist/env_services.js +2 -49
  52. package/dist/index.js +2 -1
  53. package/dist/init/auth.js +4 -4
  54. package/dist/psql/cli.js +1 -1
  55. package/dist/psql/command/cmd_copy.js +1 -1
  56. package/dist/psql/command/cmd_io.js +1 -1403
  57. package/dist/psql/command/cmd_pipeline.js +1 -595
  58. package/dist/psql/command/dispatch.js +1 -2
  59. package/dist/psql/core/common.js +1 -834
  60. package/dist/psql/core/mainloop.js +1 -2
  61. package/dist/psql/core/startup.js +1 -656
  62. package/dist/psql/index.js +1 -1516
  63. package/dist/psql/io/psqlrc.js +1 -1
  64. package/dist/psql/types/index.js +6 -0
  65. package/dist/utils/inspect_db.js +1 -1
  66. package/dist/utils/middlewares.js +2 -1
  67. package/package.json +7 -4
  68. package/dist/_shared/env-core/reuse-secrets.js +0 -179
package/dist/init/auth.js CHANGED
@@ -1,6 +1,6 @@
1
- import { inspectCredentials, interpretCredentials } from "../_shared/credentials.js";
2
- import { resolveConfigFile } from "../_shared/paths.js";
3
- import { DEFAULT_PROFILE } from "../_shared/profiles.js";
1
+ import { o as inspectCredentials, s as interpretCredentials } from "../_chunks/credentials-MYdHdKah.js";
2
+ import { o as resolveConfigFile } from "../_chunks/paths-DMq0Lt7a.js";
3
+ import { t as DEFAULT_PROFILE } from "../_chunks/profiles-Ir29rqns.js";
4
4
  import { log } from "@clack/prompts";
5
5
  import { execa } from "execa";
6
6
  //#region src/init/auth.ts
@@ -43,7 +43,7 @@ async function isAuthenticated() {
43
43
  * Shares the reader with `neon` and `@neon/env` rather than keeping a copy — the inline path
44
44
  * resolution this replaced was the third implementation of "where is the config directory", and
45
45
  * it also looked only for `access_token`, so an account signed in with an API key read as not
46
- * authenticated and got sent to a browser. See `shared/cli-core/README.md`.
46
+ * authenticated and got sent to a browser. See `internals/cli-core/README.md`.
47
47
  *
48
48
  * `null` means *absent*, and only absent. A file that exists and cannot be read throws: this
49
49
  * value decides whether to start a browser sign-in, and a sign-in overwrites the file it could
package/dist/psql/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { looksLikeConnectionString, runPsql } from "./index.js";
2
+ import { i as looksLikeConnectionString, u as runPsql } from "../_chunks/psql-DWH-kc69.js";
3
3
  //#region src/psql/cli.ts
4
4
  /**
5
5
  * Standalone psql shim.
@@ -1,6 +1,6 @@
1
1
  import { writeErr, writeOut } from "./shared.js";
2
2
  import { pumpReadable } from "../wire/copy.js";
3
- import { getPipelineState } from "./cmd_pipeline.js";
3
+ import { m as getPipelineState } from "../../_chunks/cmd_pipeline-CUbBO9U_.js";
4
4
  import { createReadStream, createWriteStream, promises } from "node:fs";
5
5
  import { spawn } from "node:child_process";
6
6
  import { Buffer } from "node:buffer";