@visulima/storage 1.0.0-alpha.6 → 1.0.0-alpha.8

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 (33) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/LICENSE.md +6 -6
  3. package/dist/handler/http/fetch/index.js +4 -4
  4. package/dist/handler/http/hono/index.js +3 -3
  5. package/dist/handler/http/nextjs/index.d.ts +2 -2
  6. package/dist/handler/http/nextjs/index.js +4 -4
  7. package/dist/handler/http/node/index.js +8 -4
  8. package/dist/handler/http/solid-start/index.js +3 -3
  9. package/dist/index.js +1 -1
  10. package/dist/openapi/index.js +3 -3
  11. package/dist/packem_shared/{GCSMetaStorage-D2UXIUl1.js → GCSMetaStorage-BYhwecZl.js} +1 -1
  12. package/dist/packem_shared/{GCStorage-CKKUTi6G.js → GCStorage-BmnoK7Rz.js} +1 -1
  13. package/dist/packem_shared/{Multipart-CNFK_Okz.js → Multipart-5Xpy7WhY.js} +3 -3
  14. package/dist/packem_shared/{Multipart-CtUL7BQw.js → Multipart-C-iU9LXj.js} +4 -4
  15. package/dist/packem_shared/{Rest-CAOAEkOj.js → Rest-DO7OslCs.js} +4 -4
  16. package/dist/packem_shared/{Rest-DNuLwBrK.js → Rest-DTaszQ6n.js} +4 -4
  17. package/dist/packem_shared/{TUS_RESUMABLE-GJzZ9R-f.js → TUS_RESUMABLE-BfguFdM1.js} +1 -1
  18. package/dist/packem_shared/{Tus-B8PmlMgR.js → Tus-BQItPVAC.js} +4 -4
  19. package/dist/packem_shared/{Tus-C4F1aYOl.js → Tus-BibjweWH.js} +5 -5
  20. package/dist/packem_shared/{base-handler-core-BKuf4YLT.js → base-handler-core-DLEVHemv.js} +1 -1
  21. package/dist/packem_shared/{base-handler-fetch-Cr0hLiqg.js → base-handler-fetch-A7V0N6AJ.js} +2 -2
  22. package/dist/packem_shared/{base-handler-node-gk5aN9Cx.js → base-handler-node-Dx7ce3sU.js} +2 -2
  23. package/dist/packem_shared/{gcs-meta-storage-DD2FFN7j.js → gcs-meta-storage-DqNjM7DP.js} +1 -1
  24. package/dist/packem_shared/headers-C9DasoT1.js +1318 -0
  25. package/dist/packem_shared/{multipart-base-B3i67SSX.js → multipart-base-BY0rhkw5.js} +1 -1
  26. package/dist/packem_shared/{rest-base-GRCcnan7.js → rest-base-Bt9Np3M8.js} +2 -2
  27. package/dist/packem_shared/{restOpenApiSpec-CwcHHY2C.js → restOpenApiSpec-D1JC_Jto.js} +1 -1
  28. package/dist/packem_shared/{tusOpenApiSpec-6ohiToBy.js → tusOpenApiSpec-mBZkl7he.js} +1 -1
  29. package/dist/packem_shared/{xhrOpenApiSpec-DS17brnx.js → xhrOpenApiSpec-B1V5Dxrj.js} +1 -1
  30. package/dist/storage/gcs/index.js +2 -2
  31. package/dist/utils/headers.d.ts +4 -4
  32. package/package.json +5 -5
  33. package/dist/packem_shared/headers-DoS5nwM-.js +0 -3220
@@ -1,4 +1,4 @@
1
- import { c as createHttpError } from './headers-DoS5nwM-.js';
1
+ import { c as createHttpError } from './headers-C9DasoT1.js';
2
2
 
3
3
  class MultipartBase {
4
4
  /**
@@ -1,6 +1,6 @@
1
- import { c as createHttpError } from './headers-DoS5nwM-.js';
1
+ import { c as createHttpError } from './headers-C9DasoT1.js';
2
2
  import { hasBody } from 'type-is';
3
- import { a as getHeader } from './base-handler-core-BKuf4YLT.js';
3
+ import { a as getHeader } from './base-handler-core-DLEVHemv.js';
4
4
  import { ERRORS } from './ERRORS-D0apMqnc.js';
5
5
  import { b as buildResponseFile, a as buildFileHeaders, c as buildChunkedUploadHeaders, d as buildFileMetadataHeaders } from './response-builder-BtnRiBUI.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { createPaginationMetaSchemaObject, createPaginationSchemaObject } from '@visulima/pagination';
3
- import { sharedGetList, sharedGet, sharedGetMeta, sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject } from './sharedGet-Cpo7QUyu.js';
3
+ import { sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject, sharedGetList, sharedGet, sharedGetMeta } from './sharedGet-Cpo7QUyu.js';
4
4
 
5
5
  const swaggerSpec = (origin, path, options) => {
6
6
  const { supportedTransformerFormat, tags, transformer } = { tags: ["REST"], transformer: false, ...options };
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { createPaginationMetaSchemaObject, createPaginationSchemaObject } from '@visulima/pagination';
3
- import { sharedGet, sharedGetList, sharedGetMeta, sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject } from './sharedGet-Cpo7QUyu.js';
3
+ import { sharedGet, sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject, sharedGetList, sharedGetMeta } from './sharedGet-Cpo7QUyu.js';
4
4
 
5
5
  const swaggerSpec = (path, options) => {
6
6
  const { supportedTransformerFormat, tags, transformer } = { tags: ["Tus"], transformer: false, ...options };
@@ -1,6 +1,6 @@
1
1
  import { createHash } from 'node:crypto';
2
2
  import { createPaginationMetaSchemaObject, createPaginationSchemaObject } from '@visulima/pagination';
3
- import { sharedGetList, sharedGet, sharedGetMeta, sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject } from './sharedGet-Cpo7QUyu.js';
3
+ import { sharedFileMetaSchemaObject, sharedErrorSchemaObject, sharedFileMetaExampleObject, sharedGetList, sharedGet, sharedGetMeta } from './sharedGet-Cpo7QUyu.js';
4
4
 
5
5
  const swaggerSpec = (origin, path, options) => {
6
6
  const { supportedTransformerFormat, tags, transformer } = { tags: ["Multipart"], transformer: false, ...options };
@@ -1,4 +1,4 @@
1
1
  export { default as GCSConfig } from '../../packem_shared/GCSConfig-vPP22kN6.js';
2
2
  export { default as GCSFile } from '../../packem_shared/GCSFile-BIEunhAN.js';
3
- export { G as GCSMetaStorage } from '../../packem_shared/gcs-meta-storage-DD2FFN7j.js';
4
- export { default as GCStorage } from '../../packem_shared/GCStorage-CKKUTi6G.js';
3
+ export { G as GCSMetaStorage } from '../../packem_shared/gcs-meta-storage-DqNjM7DP.js';
4
+ export { default as GCStorage } from '../../packem_shared/GCStorage-BmnoK7Rz.js';
@@ -2,7 +2,7 @@
2
2
  * Enhanced HTTP header utilities using remix-run/headers for type-safe header manipulation.
3
3
  * This module provides internal utilities for the storage package to handle complex headers.
4
4
  */
5
- import { Accept, ContentDisposition, ContentType, SuperHeaders } from "@remix-run/headers";
5
+ import { Accept, ContentDisposition, ContentType } from "@remix-run/headers";
6
6
  import type { Headers as UploadHeaders } from "./types.d.ts";
7
7
  /**
8
8
  * Cache-Control directive options
@@ -78,11 +78,11 @@ export declare const HeaderUtilities: {
78
78
  */
79
79
  ensureCharset(contentType: string, defaultCharset?: string): string;
80
80
  /**
81
- * Convert our Headers type to EnhancedHeaders from remix-run/headers.
81
+ * Convert our Headers type to native Headers object.
82
82
  * @param headers Headers in array or object format
83
- * @returns SuperHeaders instance with converted header values
83
+ * @returns Headers instance with converted header values
84
84
  */
85
- fromHeaders(headers: UploadHeaders): SuperHeaders;
85
+ fromHeaders(headers: UploadHeaders): Headers;
86
86
  /**
87
87
  * Get preferred media type from Accept header based on quality factors and supported types.
88
88
  * @param acceptHeader HTTP Accept header value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/storage",
3
- "version": "1.0.0-alpha.6",
3
+ "version": "1.0.0-alpha.8",
4
4
  "description": "Visulima upload - Store files in a web-accessible location via a simplified API. Can automatically scale and rotate images. Includes S3, Azure, GCS and local filesystem-based backends with the most convenient features of each.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -186,11 +186,11 @@
186
186
  "LICENSE.md"
187
187
  ],
188
188
  "dependencies": {
189
- "@remix-run/multipart-parser": "^0.14.0",
189
+ "@remix-run/multipart-parser": "^0.14.2",
190
190
  "@sindresorhus/fnv1a": "3.1.0",
191
- "@visulima/pagination": "5.0.0-alpha.5",
192
- "file-type": "21.3.0",
193
- "lru-cache": "^11.2.4",
191
+ "@visulima/pagination": "5.0.0-alpha.6",
192
+ "file-type": "21.3.1",
193
+ "lru-cache": "^11.2.6",
194
194
  "mime": "^4.1.0",
195
195
  "nanoid": "5.1.6",
196
196
  "path-to-regexp": "8.3.0",