Skip to content

Conversation

@jgeurts
Copy link
Contributor

@jgeurts jgeurts commented Dec 26, 2020

Please let me know if you want me to make any changes! As I mentioned in #15, I should have more time than normal to devote to this over the next week or so. Hoping to iron out some issues I've seen with my own project, so there will likely be additional changes incoming.

jgeurts added 9 commits May 18, 2019 18:10
Update dependencies and code style

* Format with prettier
* Order methods and properties based on accessor type
* Add explicit return types to functions
* Remove deprecated seekToEnd() function
* Remove `tracks` from Queue constructor
* Expose Queue.tracks as public
* Transpile as commonjs module
* Use `globalThis` instead of `window` to access `AudioContext`
* Allow currentTrack to be undefined
* Add option to specify `mode` for `fetch()` operations
@jgeurts
Copy link
Contributor Author

jgeurts commented Dec 27, 2020

Regarding the commonjs vs es module output. My app is based on the latest version of next.js and their support for dynamic import is not quite ready... I get the following error:

export class Queue {
^^^^^^

SyntaxError: Unexpected token 'export'
    at wrapSafe (internal/modules/cjs/loader.js:931:16)
    at Module._compile (internal/modules/cjs/loader.js:979:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1035:10)
    at Module.load (internal/modules/cjs/loader.js:879:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:903:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at eval (webpack-internal:///gapless.js:1:18)

Just wanted to provide a bit more context to @probablykasper regarding #15 (comment)

@switz
Copy link
Member

switz commented Jan 19, 2022

I'm going to try and get this merged soon, just a heads up.

@switz
Copy link
Member

switz commented Jan 19, 2022

I'll have to figure out how to get my changes from #17 into this branch. Probably just go line-by-line and merge manually.

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