Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make Fragment.stats enumerable #6999

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Conversation

robwalch
Copy link
Collaborator

@robwalch robwalch commented Feb 4, 2025

This PR will...

Make Fragment.stats enumerable.

Why is this Pull Request needed?

Changing stats to a getter (#6811) made it non-enumerable. As a results stats are not copied by the spread operator or Object.assign. The demo app depends on this to display fragment loading progress.

Are there any points in the code the reviewer needs to double check?

Fragment.stats were changed in favor of lazy instantiation (lower memory usage at playlist parse).

Using ES5 defineProperty after class instantiation expects es6>es5 transpiling. This should have no effect if running the ESM modules (need to verify).

Resolves issues:

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

@robwalch robwalch added this to the 1.6.0 milestone Feb 4, 2025
@robwalch robwalch added Regression A bug introduced in a recent release Verify Fixed An unreleased bug fix has been merged and should be verified before closing. labels Feb 4, 2025
@robwalch robwalch changed the title (it was in previous versions and demo … Make Fragment.stats enumerable Feb 4, 2025
@robwalch robwalch merged commit d155119 into master Feb 5, 2025
16 of 17 checks passed
@robwalch robwalch deleted the bugfix/fragment-stats-enumerable branch February 5, 2025 16:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Regression A bug introduced in a recent release Verify Fixed An unreleased bug fix has been merged and should be verified before closing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant