-
Couldn't load subscription status.
- Fork 80
v6.0.0 - BigInt support & readable-stream@4 #114
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
Conversation
Breaking because this drops support for Node.js <= 12
Bumps [readable-stream](https://github.com/nodejs/readable-stream) from 3.6.0 to 4.2.0. - [Release notes](https://github.com/nodejs/readable-stream/releases) - [Commits](nodejs/readable-stream@v3.6.0...v4.2.0) --- updated-dependencies: - dependency-name: readable-stream dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
|
will bump semver-major because of the Node.js 12 drop in support (dropped already in CI but this forces it in functionality) and also readable-stream@4, which also drops Node.js 12—I believe this is the only real breaking change from there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
|
I'm getting the next typescript errors with this PR: src/Streamer/index.ts:348:20 - error TS2351: This expression is not constructable.
Type 'typeof import("/home/piranna/Trabajo/Dyte/LL-HLS-streamer_bttf/node_modules/bl/BufferList")' has no construct signatures.
348 #bufferList = new BufferList
~~~~~~~~~~
src/Streamer/index.ts:427:17 - error TS2709: Cannot use namespace 'BufferList' as a type.
427 #onBox = (box: BufferList) => {
~~~~~~~~~~
src/Streamer/mp4Parser/box.ts:1:1 - error TS6133: 'BufferList' is declared but its value is never read.
1 import BufferList from 'bl/BufferList'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~This didn't happened with |
|
I've compared with the @types/bl implementation, and seems the main difference is usage of |
|
Ok, found the issue: it got fixed by adding |
I tried to do a PR with this change but something odd is happening when running the tests. I'm not a Typescript expert, so maybe I've missed something, but definitely when setting that line in my node_modules, it works. |
|
@alexandercerutti would you mind weighing in here? See @piranna's error output above. Since it's already out in a minor release and this isn't going to change anything I'm not going to treat TS problems as block this, we can follow-up with a fix. |
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.7.4...v4.8.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Fair enough. |
|
🎉 This PR is included in version 6.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
I've chosen to use The fact that we have that I don't know if having |
|
I think that if/when we go to ESM and have an exports map, |
|
^ my point about ESM is just instructive, today |
|
We can add an |
|
@piranna yeah but it's not really necessary and may be a breaking change because I think it excludes people using imports with different names? ( |
|
@rvagg just to be sure, I'm talking about https://nodejs.org/api/packages.html#package-entry-points. Are we talking about the same thing? If you are concerned about importing using extensions, we can add an entry for them too. Regarding adding default |
|
@piranna yes, and I'm talking specifically about this point in that document:
Right now, without an Sorry, this is a bit of a distraction, I'm just talking about the fact that people want to consume just |
Yes! And I'm one of them! :-) What I say is, we can be able to add ALL the files that we want to export, so people (and me! :-D) can still be able to access :-) Something like this: {
"exports": {
".": "./index.js",
"./index": "./index.js",
"./index.js": "./index.js",
"./BufferList": "./BufferList.js",
"./BufferList.js": "./BufferList.js",
}
}A bit bloated to add both extension and extensionless entries, but you get the idea, and the same for the types. If this is not what you are talking about please clarify, because I don't get your point... :-/ |
|
uhh, yeah we've diverged a long way from the original point, so let's drop this, you're correct but it's not really relevant; we're dealing with this from @alexandercerutti:
the answer being - yes, it's a planned feature, it's in wide usage, so we should allow for it and I think that means we need an |
|
@rvagg I guess the way to achieve this is as @piranna said and as I set on the bottom of Line 88 in a59710d
So, when importing More infos about |
Yes, I copied the idea from |
Never used discussions, but I think it's ok for me. Regarding notifications, I still get them in my mail... |
|
And thank you for taking a look on this :-) |
|
@piranna @rvagg I've tried to add that line, but it seems to conflict with other exports (ES6-style exports). I'm actually a bit stuck there because |
|
I got exactly the same problem. |
|
I might have found a solution to the problem! Sadly, today I didn't have any time to detail it. |
|
I'm honestly interested on knowing about your solution :-) |
Closes #109 & #87, incorporates #87 and #113, /cc @yuyaryshev & @piranna