Skip to content

feat(webapi): implement W3C File API#2537

Merged
karlseguin merged 1 commit into
lightpanda-io:mainfrom
Ar-maan05:feat-implement-file-api
May 25, 2026
Merged

feat(webapi): implement W3C File API#2537
karlseguin merged 1 commit into
lightpanda-io:mainfrom
Ar-maan05:feat-implement-file-api

Conversation

@Ar-maan05

Copy link
Copy Markdown
Contributor

Implements the W3C File Web API, which inherits from Blob.

    - Exposes `validateMimeType` and `writePartWithEndings` in `Blob.zig` to be reused.
    - Implements constructor (`new File(bits, name, options)`), name, and lastModified properties.
    - Maps `lastModified` as an `f64` to prevent JS from seeing it as a `bigint`.
    - Adds HTML integration tests in `file.html`.

@github-actions

github-actions Bot commented May 24, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@Ar-maan05

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@karlseguin
karlseguin merged commit a7e3bea into lightpanda-io:main May 25, 2026
1 of 2 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 25, 2026
@Ar-maan05
Ar-maan05 deleted the feat-implement-file-api branch May 25, 2026 14:12
@Ar-maan05
Ar-maan05 restored the feat-implement-file-api branch June 4, 2026 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants