Skip to content

add cached media type detection - #348

Merged
SharonStrats merged 1 commit into
stagingfrom
feat/isimage
Oct 26, 2026
Merged

SharonStrats merged 1 commit into
stagingfrom
feat/isimage

Conversation

@SharonStrats

@SharonStrats SharonStrats commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Added the image and media checks for a resource to use in the slideshow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SharonStrats
SharonStrats requested a balanced review from Copilot October 26, 2026 10:43
@SharonStrats SharonStrats self-assigned this Oct 26, 2026
@SharonStrats SharonStrats added the enhancement New feature or request label Oct 26, 2026
@SharonStrats SharonStrats moved this to In review in SolidOS NLNet UI Oct 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

Static review identified no blocking issues in these narrowly scoped changes; automated tests were not run.

No open issues 🎉

What changed in this PR

Adds cache-only media detection to the resource logic API, allowing consumers to identify images, audio, and video without fetching resources.

Changes:

  • Adds media detection using RDF types and cached Content-Type headers.
  • Exposes detection helpers through ResourceLogic and adds focused tests.
  • Updates the package version to 6.0.1-5.
File Description
test/​resource/​resourceLogic.test.ts Tests cached-header and RDF-type detection without web operations.
src/​types.ts Declares the new media detection methods.
src/​resource/​resourceLogic.ts Implements generic media detection and image, audio, and video helpers.
package.json Bumps the package version.
package-lock.json Synchronizes the package version metadata.

Review effort: Balanced

@SharonStrats
SharonStrats merged commit 961a6b3 into staging Oct 26, 2026
8 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in SolidOS NLNet UI Oct 26, 2026
@SharonStrats
SharonStrats deleted the feat/isimage branch October 26, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants