@dimah-s3/db 1.5.9 → 1.5.10

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/cli.js CHANGED
@@ -6,7 +6,7 @@ function runCli(db) {
6
6
  db,
7
7
  command: "dimah-s3-db",
8
8
  description: "FumaDB CLI for @dimah-s3/db",
9
- version: "1.5.9"
9
+ version: "1.5.10"
10
10
  });
11
11
  return main();
12
12
  }
@@ -1,5 +1,5 @@
1
- import type { DbClientGetInput, DbClientListInput, DbClientListResponse, DbClientObject } from "../types/storage-object.d.ts";
2
- export type { DbClientGetInput, DbClientListInput, DbClientListResponse, DbClientObject, } from "../types/storage-object.d.ts";
1
+ import type { DbClientGetInput, DbClientListInput, DbClientListResponse, DbClientObject } from "../types/storage-object.js";
2
+ export type { DbClientGetInput, DbClientListInput, DbClientListResponse, DbClientObject, } from "../types/storage-object.js";
3
3
  /**
4
4
  * Client plugin for the server `db()` endpoints.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { type DimahS3DbClient, type StorageObjectStore } from "../store/storage-object-store.d.ts";
2
- import type { ScopeResolver, StorageObject, StorageObjectStatus } from "../types/storage-object.d.ts";
1
+ import { type DimahS3DbClient, type StorageObjectStore } from "../store/storage-object-store.js";
2
+ import type { ScopeResolver, StorageObject, StorageObjectStatus } from "../types/storage-object.js";
3
3
  /** Minimal context the guard needs — matches every key-bearing server hook context. */
4
4
  export type ObjectAccessGuardContext = {
5
5
  request: Request;
@@ -1,5 +1,5 @@
1
- import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.d.ts";
2
- import type { ScopeResolver } from "../types/storage-object.d.ts";
1
+ import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.js";
2
+ import type { ScopeResolver } from "../types/storage-object.js";
3
3
  export type CreateQuotaGuardOptions = {
4
4
  client: DimahS3DbClient | StorageObjectStore;
5
5
  resolveScope: ScopeResolver;
@@ -1,6 +1,6 @@
1
1
  import { type S3Client } from "@aws-sdk/client-s3";
2
- import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.d.ts";
3
- import type { StorageObject } from "../types/storage-object.d.ts";
2
+ import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.js";
3
+ import type { StorageObject } from "../types/storage-object.js";
4
4
  export type PurgeStalePendingOptions = {
5
5
  /** FumaDB client (`DimahS3DB.client(adapter)`) or a prebuilt store. */
6
6
  client: DimahS3DbClient | StorageObjectStore;
@@ -1,5 +1,5 @@
1
- import type { StorageObjectStore } from "../store/storage-object-store.d.ts";
2
- import type { DbClientListResponse, DbClientObject, ScopeResolver } from "../types/storage-object.d.ts";
1
+ import type { StorageObjectStore } from "../store/storage-object-store.js";
2
+ import type { DbClientListResponse, DbClientObject, ScopeResolver } from "../types/storage-object.js";
3
3
  export { dbListQuerySchema, dbGetQuerySchema, DB_LIST_DEFAULT_LIMIT, DB_LIST_MAX_LIMIT, } from "./list-query-schema";
4
4
  /**
5
5
  * HTTP endpoints for the `db` plugin — `GET /db/objects` and `GET /db/object`.
@@ -1,6 +1,6 @@
1
1
  import type { DimahS3PluginHooks } from "@dimah-s3/server";
2
- import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.d.ts";
3
- import type { ScopeResolver } from "../types/storage-object.d.ts";
2
+ import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.js";
3
+ import type { ScopeResolver } from "../types/storage-object.js";
4
4
  export type CreateDatabaseLifecycleHooksOptions = {
5
5
  client: DimahS3DbClient | StorageObjectStore;
6
6
  resolveScope: ScopeResolver;
@@ -1,5 +1,5 @@
1
- import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.d.ts";
2
- import type { ScopeResolver } from "../types/storage-object.d.ts";
1
+ import type { DimahS3DbClient, StorageObjectStore } from "../store/storage-object-store.js";
2
+ import type { ScopeResolver } from "../types/storage-object.js";
3
3
  export type DbPluginOptions = {
4
4
  /** FumaDB client (`DimahS3DB.client(adapter)`) or a prebuilt objects store. */
5
5
  client: DimahS3DbClient | StorageObjectStore;
@@ -108,7 +108,7 @@ export declare function db(options: DbPluginOptions): import("@dimah-s3/server")
108
108
  contentType?: string | undefined;
109
109
  prefix?: string | undefined;
110
110
  }>;
111
- }, import("../types/storage-object.d.ts").DbClientListResponse>;
111
+ }, import("../types/storage-object.js").DbClientListResponse>;
112
112
  object: import("better-call").StrictEndpoint<string, {
113
113
  use: import("better-call").MiddlewareHandler[];
114
114
  } & {
@@ -122,7 +122,7 @@ export declare function db(options: DbPluginOptions): import("@dimah-s3/server")
122
122
  bucket?: string | undefined;
123
123
  }>;
124
124
  }, {
125
- object: import("../types/storage-object.d.ts").DbClientObject;
125
+ object: import("../types/storage-object.js").DbClientObject;
126
126
  }>;
127
127
  }>;
128
128
  //# sourceMappingURL=db.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { DbClientObject, StorageObject } from "../types/storage-object.d.ts";
1
+ import type { DbClientObject, StorageObject } from "../types/storage-object.js";
2
2
  /**
3
3
  * Map a full store row to the browser wire contract for `GET /db/objects`.
4
4
  * Drops server-only fields (`scope`, `eTag`, `metadata`, `acl`, …).
@@ -27,5 +27,5 @@ export declare const v1: import("fumadb/schema").Schema<"1.0.0", {
27
27
  deletedAt: import("fumadb/schema").Column<"timestamp", Date | null, Date | null>;
28
28
  }, {}>;
29
29
  }>;
30
- export type { StorageObjectStatus } from "../types/storage-object.d.ts";
30
+ export type { StorageObjectStatus } from "../types/storage-object.js";
31
31
  //# sourceMappingURL=v1.d.ts.map
@@ -1,4 +1,4 @@
1
- import type { StorageObject } from "../types/storage-object.d.ts";
1
+ import type { StorageObject } from "../types/storage-object.js";
2
2
  /** Raw `storage_object` row as returned by the FumaDB ORM. */
3
3
  export type StorageObjectRow = {
4
4
  id: string;
@@ -1,6 +1,6 @@
1
1
  import type { InferFumaDB } from "fumadb";
2
- import type { DimahS3DB } from "../fuma-db.d.ts";
3
- import type { StorageObject, StorageObjectStatus } from "../types/storage-object.d.ts";
2
+ import type { DimahS3DB } from "../fuma-db.js";
3
+ import type { StorageObject, StorageObjectStatus } from "../types/storage-object.js";
4
4
  /** FumaDB client for the @dimah-s3/db schema. */
5
5
  export type DimahS3DbClient = InferFumaDB<typeof DimahS3DB>;
6
6
  /** Identifies one object row — `(bucket, key)` is unique. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimah-s3/db",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Optional database plugin for dimah-s3 — track S3 object ownership, listings, and resumable uploads",
5
5
  "keywords": [
6
6
  "s3",
@@ -50,29 +50,29 @@
50
50
  "src/schema/examples"
51
51
  ],
52
52
  "dependencies": {
53
- "@dimah-s3/core": "1.5.9",
53
+ "@dimah-s3/core": "1.5.10",
54
54
  "@paralleldrive/cuid2": "^3.3.0",
55
55
  "fumadb": "^0.6.0",
56
56
  "zod": "^4.6.5"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/client-s3": "^3.1134.0",
60
- "@dimah-s3/server": "1.5.9",
61
- "@types/node": "^26.6.1",
59
+ "@aws-sdk/client-s3": "^3.1146.0",
60
+ "@dimah-s3/server": "1.5.10",
61
+ "@types/node": "^26.6.4",
62
62
  "@workspace/eslint-config": "0.0.1",
63
63
  "@workspace/tsup-config": "0.0.0",
64
64
  "@workspace/typescript-config": "0.0.1",
65
65
  "@workspace/vitest-config": "0.0.7",
66
- "drizzle-orm": "^0.45.2",
67
- "eslint": "^10.10.0",
68
- "tsc-alias": "^1.9.5",
66
+ "drizzle-orm": "^0.45.3",
67
+ "eslint": "^10.12.0",
68
+ "tsc-alias": "^1.9.7",
69
69
  "tsup": "^8.5.1",
70
70
  "typescript": "7.0.2",
71
- "vitest": "^5.0.1"
71
+ "vitest": "^5.0.3"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@aws-sdk/client-s3": ">=3",
75
- "@dimah-s3/server": "1.5.9",
75
+ "@dimah-s3/server": "1.5.10",
76
76
  "drizzle-orm": "^0.44.0 || ^0.45.0 || >=1.0.0-rc.1 <2.0.0"
77
77
  },
78
78
  "peerDependenciesMeta": {