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

Progress-tracking, jsdoc, require native Promise support, dependency updates #641

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

davidnbooth
Copy link

For some reason the Worker kept hanging on pdf generation until I removed the "es6-promise" dependency. I'm not sure if you'll want to merge this change because it would break the library for people who DO need the promise polyfill, but I made some other changes as well that I think are useful.

There's a rough implementation of the progress tracking feature and jsdoc comments for all the functions/methods.

Even if this pull request isn't appropriate as-is due to the promise polyfill issue, I'd love to connect about how I could help with this project if possible!

I don't think (?) its necessary for it to be a property of the Worker
and this just makes it a slightly simpler object
Instead of calling setProgress to initialize the progress, and then using updateProgress as a wrapper around it, initialize the values directly in the constructor, and then we only need one function - updateProgress.
This helps the type checker know about the .progress property of the workers.
changed test port to 3001 (less common port number)
This is necessary so that plugins can extend the template.
added npm script for docs generation
generated docs
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