Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add ES5 syntax check for UMD builds #5301

Merged
merged 3 commits into from Mar 16, 2023

Conversation

thornbill
Copy link

This PR will...

Add a build time check to verify UMD builds are valid ES5 syntax.

Why is this Pull Request needed?

A regression was unknowingly introduced in the v1.2.5 release that caused builds to no longer be compiled to ES5.
This type of check could have caught the issue.

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

This should fail until the build output is corrected.

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

Copy link
Member

@tjenkinson tjenkinson left a comment

Choose a reason for hiding this comment

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

Thanks! I think it would be good to get es-check as an actual dependency though so that it's using a specific version, and then it could also be called in existing package.json scripts

.github/workflows/build.yml Outdated Show resolved Hide resolved
@thornbill
Copy link
Author

Thanks for the review @tjenkinson. I've made the requested changes.

I'm not entirely sure why there are so many changes to the package-lock file... it seems most are related to the netlify-cli package.

because renovate will keep it updated
tjenkinson
tjenkinson previously approved these changes Mar 16, 2023
Copy link
Member

@tjenkinson tjenkinson left a comment

Choose a reason for hiding this comment

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

LGTM! although we can't merge it yet given that the new check correctly fails atm

refs #5299

@robwalch
Copy link
Collaborator

We could wait for #5299 or merge it into there/temp branch for me to rebase that PR.

@robwalch robwalch changed the base branch from master to task/es5-check March 16, 2023 18:31
@robwalch robwalch merged commit 257f9cd into video-dev:task/es5-check Mar 16, 2023
@robwalch
Copy link
Collaborator

Merged into working branch. Adding to #5299.

@thornbill thornbill deleted the add-es5-build-check branch March 16, 2023 18:35
robwalch added a commit that referenced this pull request Mar 16, 2023
* task/es5-check:
  Add ES5 syntax check for UMD builds (#5301)
robwalch pushed a commit that referenced this pull request Mar 17, 2023
robwalch added a commit that referenced this pull request Mar 17, 2023
Add an es module target (#2910)
UMD build worker injection (#5107)
Add ES5 syntax check for UMD builds (#5301, #5288)
robwalch added a commit that referenced this pull request Mar 23, 2023
Add an es module target (#2910)
UMD build worker injection (#5107)
Add ES5 syntax check for UMD builds (#5301, #5288)
robwalch added a commit that referenced this pull request Mar 24, 2023
Add an es module target (#2910)
UMD build worker injection (#5107)
Add ES5 syntax check for UMD builds (#5301, #5288)
robwalch added a commit that referenced this pull request Mar 27, 2023
Add an es module target (#2910)
UMD build worker injection (#5107)
Add ES5 syntax check for UMD builds (#5301, #5288)
robwalch added a commit that referenced this pull request Mar 27, 2023
)

* Convert build packager to rollup
* Add an es module target (#2910)
* UMD build worker injection (#5107)
* Add ES5 syntax check for UMD builds (#5301, #5288)
* Add common rollup config
* handle `self` not existing (happens in nodejs. The check that makes sure the dist file can be required in node and not throw was failing because of this.)
* Disable coverage in CI
* Add `config.workerPath` option and "hls.worker.js" build output (#5107)
* Include transmuxer-interface id ("main" and "audio") in Web Worker setup and error logs

Co-authored-by: Tom Jenkinson <tom@tjenkinson.me>
@robwalch robwalch added this to the 1.4.0 milestone Mar 28, 2023
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.

None yet

3 participants