Skip to content

[ID3v2] Split Frame Factory#139

Open
benrr101 wants to merge 46 commits into
developfrom
feat/id3v2/split-frame-factory
Open

[ID3v2] Split Frame Factory#139
benrr101 wants to merge 46 commits into
developfrom
feat/id3v2/split-frame-factory

Conversation

@benrr101

Copy link
Copy Markdown
Owner

Description

This PR splits the ID3v2 frame factory code into fromFile and fromRawData (more or less). This includes a large refactoring of the frame construction code. All frame classes now have a fromFieldBytes(header, fieldBytes, version) method that replaces fromOffsetRawData. The offset wasn't ever very effective, nor was multiple places where headers were being read. Frame extended header fields were moved to the header class as was the extended header reading logic. The tests were completely updated to be waaaaay better.

benrr101 added 30 commits May 23, 2026 13:38
@benrr101 benrr101 added this to the v7.0.0 milestone Jun 11, 2026
@benrr101 benrr101 requested a review from Copilot June 11, 2026 05:25

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 52 out of 53 changed files in this pull request and generated 5 comments.

Comment thread src/id3v2/frames/frameFactory.ts
Comment thread src/id3v2/frames/synchronizedLyricsFrame.ts Outdated
Comment on lines 53 to +56
Guards.truthy(header, "header");
Guards.byte(version, "version");
Guards.truthy(fieldBytes, "fieldBytes");
Guards.byte(version, "number");

Comment thread src/id3v2/id3v2Tag.ts
Comment thread src/id3v2/id3v2Tag.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants