@frogbotai/storage-r2 0.33.0 → 0.35.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.
package/README.md CHANGED
@@ -15,7 +15,7 @@ import { buildConfig } from 'frogbot';
15
15
  import { r2Storage } from '@frogbotai/storage-r2';
16
16
 
17
17
  export default buildConfig({
18
- plugins: [
18
+ storage: [
19
19
  r2Storage({
20
20
  bucket: env.R2_BUCKET,
21
21
  }),
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { r2Storage as _r2Storage } from '@payloadcms/storage-r2';
2
- import type { Plugin } from 'frogbot';
2
+ import type { StorageAdapter } from 'frogbot';
3
3
  import type { StorageAdapterOptions } from 'frogbot/internal';
4
4
  type PayloadR2StorageOptions = Parameters<typeof _r2Storage>[0];
5
5
  export type R2StorageOptions = StorageAdapterOptions<PayloadR2StorageOptions>;
6
- export declare const r2Storage: (options: R2StorageOptions) => Plugin;
6
+ export declare const r2Storage: (options: R2StorageOptions) => StorageAdapter;
7
7
  export {};
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,SAAS,YAAa,gBAAgB,KAAG,MACoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAG9D,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,qBAAqB,CAAC,uBAAuB,CAAC,CAAC;AAE9E,eAAO,MAAM,SAAS,GAAI,SAAS,gBAAgB,KAAG,cACqB,CAAC"}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { r2Storage as _r2Storage } from '@payloadcms/storage-r2';
2
2
  import { storageAdapter } from 'frogbot/internal';
3
3
  export const r2Storage = (options)=>storageAdapter({
4
4
  options,
5
- plugin: _r2Storage
5
+ adapter: _r2Storage
6
6
  });
7
7
 
8
8
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":["r2Storage","_r2Storage","storageAdapter","options","plugin"],"mappings":"AAAA,SAASA,aAAaC,UAAU,QAAQ,yBAAyB;AAGjE,SAASC,cAAc,QAAQ,mBAAmB;AAMlD,OAAO,MAAMF,YAAY,CAACG,UACxBD,eAAwC;QAAEC;QAASC,QAAQH;IAAW,GAAG","file":"index.js"}
1
+ {"version":3,"sources":["../src/index.ts"],"names":["r2Storage","_r2Storage","storageAdapter","options","adapter"],"mappings":"AAAA,SAASA,aAAaC,UAAU,QAAQ,yBAAyB;AAGjE,SAASC,cAAc,QAAQ,mBAAmB;AAMlD,OAAO,MAAMF,YAAY,CAACG,UACxBD,eAAwC;QAAEC;QAASC,SAASH;IAAW,GAAG","file":"index.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogbotai/storage-r2",
3
- "version": "0.33.0",
3
+ "version": "0.35.0",
4
4
  "description": "Cloudflare R2 storage adapter for FrogBot.",
5
5
  "license": "MIT",
6
6
  "author": "Colby Gilbert",
@@ -30,14 +30,14 @@
30
30
  ],
31
31
  "sideEffects": false,
32
32
  "dependencies": {
33
- "@payloadcms/storage-r2": "3.90.1"
33
+ "@payloadcms/storage-r2": "4.0.0-beta.2"
34
34
  },
35
35
  "peerDependencies": {
36
- "frogbot": "0.33.0"
36
+ "frogbot": "0.35.0"
37
37
  },
38
38
  "devDependencies": {
39
- "typescript": "5.6.2",
40
- "frogbot": "0.33.0"
39
+ "typescript": "6.0.3",
40
+ "frogbot": "0.35.0"
41
41
  },
42
42
  "publishConfig": {
43
43
  "access": "public"