@theholocron/neon-client 1.31.0 → 1.32.1

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/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import "@theholocron/http-client";
2
2
  import { ErrorSink, Logger } from "@theholocron/observability/core";
3
- //#region src/utils.d.ts
3
+ //#region ../../../../../src/utils.d.ts
4
4
  interface NeonClientOptions {
5
5
  /** Neon API key. */
6
6
  token: string;
@@ -14,7 +14,7 @@ interface NeonClientOptions {
14
14
  errors?: ErrorSink;
15
15
  }
16
16
  //#endregion
17
- //#region src/branches/branches.d.ts
17
+ //#region ../../../../../src/branches/branches.d.ts
18
18
  interface NeonBranch {
19
19
  id: string;
20
20
  name: string;
@@ -35,7 +35,7 @@ interface CreateNeonBranchInput {
35
35
  }>;
36
36
  }
37
37
  //#endregion
38
- //#region src/connection/connection.d.ts
38
+ //#region ../../../../../src/connection/connection.d.ts
39
39
  interface NeonConnectionUriParams {
40
40
  branch_id: string;
41
41
  database_name: string;
@@ -46,7 +46,7 @@ interface NeonConnectionUriResponse {
46
46
  uri: string;
47
47
  }
48
48
  //#endregion
49
- //#region src/databases/databases.d.ts
49
+ //#region ../../../../../src/databases/databases.d.ts
50
50
  interface NeonDatabase {
51
51
  id: number;
52
52
  name: string;
@@ -56,7 +56,7 @@ interface NeonDatabasesResponse {
56
56
  databases: NeonDatabase[];
57
57
  }
58
58
  //#endregion
59
- //#region src/users/users.d.ts
59
+ //#region ../../../../../src/users/users.d.ts
60
60
  interface NeonMe {
61
61
  id?: string;
62
62
  email?: string;
@@ -64,7 +64,7 @@ interface NeonMe {
64
64
  login?: string;
65
65
  }
66
66
  //#endregion
67
- //#region src/index.d.ts
67
+ //#region ../../../../../src/index.d.ts
68
68
  declare function createNeonClient(opts: NeonClientOptions): {
69
69
  branches: {
70
70
  list: (projectId: string) => Promise<NeonBranchesResponse>;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createRestClient } from "@theholocron/http-client";
2
- //#region src/branches/branches.ts
2
+ //#region ../../../../../src/branches/branches.ts
3
3
  function branches(rest) {
4
4
  return {
5
5
  list: (projectId) => rest.request(`/projects/${projectId}/branches`),
@@ -21,7 +21,7 @@ function branches(rest) {
21
21
  };
22
22
  }
23
23
  //#endregion
24
- //#region src/connection/connection.ts
24
+ //#region ../../../../../src/connection/connection.ts
25
25
  function connection(rest) {
26
26
  return { uri: (projectId, params) => {
27
27
  const query = {
@@ -34,7 +34,7 @@ function connection(rest) {
34
34
  } };
35
35
  }
36
36
  //#endregion
37
- //#region src/databases/databases.ts
37
+ //#region ../../../../../src/databases/databases.ts
38
38
  function databases(rest) {
39
39
  return {
40
40
  list: (projectId, branchId) => rest.request(`/projects/${projectId}/branches/${encodeURIComponent(branchId)}/databases`),
@@ -45,12 +45,12 @@ function databases(rest) {
45
45
  };
46
46
  }
47
47
  //#endregion
48
- //#region src/users/users.ts
48
+ //#region ../../../../../src/users/users.ts
49
49
  function users(rest) {
50
50
  return { me: () => rest.request("/users/me") };
51
51
  }
52
52
  //#endregion
53
- //#region src/utils.ts
53
+ //#region ../../../../../src/utils.ts
54
54
  function createNeonRestClient(opts) {
55
55
  return createRestClient({
56
56
  baseUrl: opts.baseUrl ?? "https://console.neon.tech/api/v2",
@@ -62,7 +62,7 @@ function createNeonRestClient(opts) {
62
62
  });
63
63
  }
64
64
  //#endregion
65
- //#region src/index.ts
65
+ //#region ../../../../../src/index.ts
66
66
  function createNeonClient(opts) {
67
67
  const rest = createNeonRestClient(opts);
68
68
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/neon-client",
3
- "version": "1.31.0",
3
+ "version": "1.32.1",
4
4
  "description": "A TypeScript client for the Neon API",
5
5
  "keywords": [
6
6
  "neon",
@@ -33,13 +33,13 @@
33
33
  ],
34
34
  "dependencies": {
35
35
  "@theholocron/observability": "^0.3.0",
36
- "@theholocron/http-client": "^1.31.0"
36
+ "@theholocron/http-client": "^1.32.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@theholocron/cli": "5.0.0-alpha.33",
39
+ "@theholocron/cli": "5.0.0-alpha.79",
40
40
  "@theholocron/eslint-config": "^8.4.3",
41
41
  "@theholocron/tsconfig": "^8.2.0",
42
- "@theholocron/tsdown-config": "^8.2.0",
42
+ "@theholocron/tsdown-config": "^8.6.1",
43
43
  "@theholocron/vitest-config": "^8.2.0",
44
44
  "@types/node": "^26.4.1",
45
45
  "@vitest/coverage-v8": "^5.0.0",
@@ -61,7 +61,7 @@
61
61
  "releases": "https://github.com/theholocron/clients/releases",
62
62
  "wiki": "https://github.com/theholocron/clients/wiki",
63
63
  "scripts": {
64
- "delivery.build": "tsdown",
64
+ "delivery.build": "holocron run delivery.build -- && node ../../scripts/check-bundle-size.mjs",
65
65
  "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
66
66
  "test:watch": "vitest",
67
67
  "verification.typeSafety": "holocron run verification.typeSafety --",