Skip to content

Releases

@edgestore/shared@0.8.1

Choose a tag to compare

@edgestore/shared@0.8.1

@edgestore/server@0.8.1

Choose a tag to compare

Patch Changes

  • #319 edc3811 Thanks @raviships! - Security: remove the /proxy-file route (GHSA-q5q6-5j7p-935p). Upgrade @edgestore/server and @edgestore/react together.

  • Updated dependencies []:

    • @edgestore/shared@0.8.1

@edgestore/react@0.8.1

Choose a tag to compare

Patch Changes

  • #319 edc3811 Thanks @raviships! - Security: remove the /proxy-file route (GHSA-q5q6-5j7p-935p). Upgrade @edgestore/server and @edgestore/react together.

  • Updated dependencies []:

    • @edgestore/shared@0.8.1

@edgestore/shared@1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 04:11
238e6e9

Patch Changes

  • #309 85791bb Thanks @raviships! - Require beforeDelete to replace or overwrite existing files from the browser.

    Replacing a file deletes it, so a browser upload with replaceTargetUrl, or
    with a manualFileName that matches an existing file, now runs the bucket's
    beforeDelete on that file first. Replacement targets must be in the same
    bucket. Without beforeDelete these uploads fail. Generated file names and
    backend uploads are unchanged.

    Custom providers that let the browser choose file names should call the new
    authorizeOverwrite request parameter with any file already at the key.

@edgestore/server@1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 04:11
238e6e9

Patch Changes

  • #309 85791bb Thanks @raviships! - Require beforeDelete to replace or overwrite existing files from the browser.

    Replacing a file deletes it, so a browser upload with replaceTargetUrl, or
    with a manualFileName that matches an existing file, now runs the bucket's
    beforeDelete on that file first. Replacement targets must be in the same
    bucket. Without beforeDelete these uploads fail. Generated file names and
    backend uploads are unchanged.

    Custom providers that let the browser choose file names should call the new
    authorizeOverwrite request parameter with any file already at the key.

  • #308 83cba2a Thanks @raviships! - Harden the edgestore-ctx cookie against cross-site requests.

    • The cookie now defaults to SameSite=Lax and HttpOnly, and to Secure
      when NODE_ENV is production. cookieConfig.ctx.options still overrides
      each default; a frontend on a different site needs sameSite: 'none' and
      secure: true. Browsers don't store Secure cookies over plain HTTP
      (Safari not even on localhost), so set secure: false to test a production
      build over HTTP.
    • Requests with a body must use Content-Type: application/json, as
      @edgestore/react already does. Other content types get a 400.
    • The encrypted context now expires with the cookie's maxAge instead of
      always after 30 days.
  • Updated dependencies [85791bb]:

    • @edgestore/shared@1.0.1
    • @edgestore/sdk@1.0.1

@edgestore/sdk@1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 04:11
238e6e9

No changes in this release.

@edgestore/react@1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 04:11
238e6e9

Patch Changes

  • Updated dependencies [85791bb]:
    • @edgestore/shared@1.0.1

@edgestore/cli@1.0.1

Choose a tag to compare

@github-actions github-actions released this 24 Oct 04:11
238e6e9

Patch Changes

@edgestore/shared@1.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 05:52
0257162

Major Changes

  • #194 1bd3452 Thanks @raviships! - Replace the custom provider interface with the EdgeStoreProvider contract and
    the defineProvider helper. The backend client only exposes the operations a
    provider implements.

  • #159 bd89793 Thanks @raviships! - Publish ESM-only packages and require Node.js 22.22.0 or newer.
    @edgestore/react no longer installs server-only dependencies.

  • #151 7c8a7b6 Thanks @raviships! - Accept any Standard Schema library for bucket input, and drop the Zod peer
    dependency. The server now validates upload input, rejects invalid requests
    with BAD_REQUEST, and passes the parsed output to callbacks.

Minor Changes

  • #275 e1548ab Thanks @raviships! - Pass options.waitForProcessing to resolve an upload with the processed file,
    and onPhaseChange to show when processing starts. Failures and timeouts reject
    with UploadCanceledError and UploadProcessingTimeoutError. Providers opt in
    by implementing uploads.getStatus.

@edgestore/server@1.0.0

Choose a tag to compare

@github-actions github-actions released this 04 Oct 05:52
0257162

Major Changes

  • #262 17477fb Thanks @raviships! - Sign Azure Blob URLs with the storage account key: set storageAccountKey or
    ES_AZURE_ACCOUNT_KEY in place of sasToken or ES_AZURE_SAS_TOKEN. Replace
    customBaseUrl and ES_AZURE_BASE_URL with endpoint and ES_AZURE_ENDPOINT.
    Azure Blob rejects temporary, replaceTargetUrl, and cookie-based
    accessControl rules.

  • #194 1bd3452 Thanks @raviships! - Rebuild the backend client on EdgeStore API v2. Methods are renamed (get,
    list, confirm, delete, restore, their Many variants, and
    createSignedUrl(s)), files are referenced by { id }, { key }, or
    { url }, and list uses cursor pagination. Singular methods throw
    EdgeStoreFileMutationError, and batch methods report per-file failures.

  • #194 1bd3452 Thanks @raviships! - Replace the custom provider interface with the EdgeStoreProvider contract and
    the defineProvider helper. The backend client only exposes the operations a
    provider implements.

  • #159 bd89793 Thanks @raviships! - Publish ESM-only packages and require Node.js 22.22.0 or newer.
    @edgestore/react no longer installs server-only dependencies.

  • #253 fa37415 Thanks @raviships! - Rename the provider factories: EdgeStoreProvider() is now edgestore(),
    AWSProvider() from providers/aws is now s3() from providers/s3, and
    AzureProvider() from providers/azure is now azureBlob() from
    providers/azure-blob.

  • #263 ed81242 Thanks @raviships! - Remove deprecated and duplicate APIs: @edgestore/react/shared (use
    @edgestore/react/errors), @edgestore/server/core (use @edgestore/server),
    InferClientResponse (use InferClientOutputs), and the S3 accessKeyId and
    secretAccessKey options (use credentials or the ES_AWS_* variables).

  • #255 7a66d4c Thanks @raviships! - Load protected files directly from their file origin in development. The
    /proxy-file route and the React disableDevProxy option are removed.
    Adapters no longer set the edgestore-token cookie, so cookieConfig.token is
    removed.

  • #253 fa37415 Thanks @raviships! - Configure the provider once with es.router({ ... }).provider(...) and pass
    only the router to adapters. Use router.client in place of
    initEdgeStoreClient.

  • #249 f0375e3 Thanks @raviships! - Replace the S3 overwritePath option with path, which returns a key relative
    to the router bucket. S3 rejects temporary, replaceTargetUrl, and
    cookie-based accessControl rules instead of ignoring them.

  • #151 7c8a7b6 Thanks @raviships! - Accept any Standard Schema library for bucket input, and drop the Zod peer
    dependency. The server now validates upload input, rejects invalid requests
    with BAD_REQUEST, and passes the parsed output to callbacks.

Minor Changes

  • #248 ae605b9 Thanks @raviships! - Bundle Markdown API references that match the installed version, for coding
    agents.

  • #262 17477fb Thanks @raviships! - Add Azure Blob block uploads for large files, backend uploads, private buckets
    with signed downloads, a path callback, a baseUrl option for file URLs, and
    per-object settings (cache control, content disposition, and metadata).

  • #274 8c8d8ab Thanks @raviships! - Support EDGESTORE_* environment variables for credentials, API and base URLs,
    and signing secrets.

  • #253 fa37415 Thanks @raviships! - The edgestore() provider accepts a Bearer token with an explicit project
    in place of project keys.

  • #237 31405ca Thanks @raviships! - Initialize protected file access on the file origins returned by EdgeStore,
    including project subdomains and the shared origin used by existing links.

  • #256 017f324 Thanks @raviships! - Make long browser multipart uploads resilient: part URLs are signed in batches,
    failed parts are retried with backoff, and failed or canceled uploads abort the
    multipart session.

  • #249 f0375e3 Thanks @raviships! - Add S3 multipart uploads for large files, backend uploads, private buckets with
    signed downloads, and per-object settings (cache and download headers,
    metadata, tags, storage class, and encryption).

  • #275 e1548ab Thanks @raviships! - Pass options.waitForProcessing to resolve an upload with the processed file,
    and onPhaseChange to show when processing starts. Failures and timeouts reject
    with UploadCanceledError and UploadProcessingTimeoutError. Providers opt in
    by implementing uploads.getStatus.

Patch Changes

  • #263 ed81242 Thanks @raviships! - Respond with 401 UNAUTHORIZED instead of a server error when the
    edgestore-ctx cookie is expired, tampered with, or encrypted with a different
    secret.
  • Updated dependencies [fc16f0a, fc16f0a, fc16f0a, fc16f0a, f822286]:
    • @edgestore/shared@1.0.0
    • @edgestore/sdk@1.0.0
⌂ 换网址