-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
fix: add buffer #362
fix: add buffer #362
Conversation
I prefer not to change the timing behavior in node, because if folks are using |
Hm, could it be considered a semver-major change in browsers as well? |
for reference from streams repo nodejs/readable-stream#414 recap:
and no i dont think it would be a breaking change in browsers nextTick injected by bundlers is mostly what |
for reference browserify and webpack use this https://github.com/defunctzombie/node-process/blob/master/browser.js#L134 |
can i go forward and update this PR with this ?
|
They (immediate and the process polyfill) seem similar enough, yeah. Both have microtask behavior and a synchronously draining queue. They might even have borrowed code from each other :) |
Possible issue: |
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.
Will merge end of week. Could do it now but because browser tests are skipped on PRs from outside contributors, I need to reserve some time to test this, level-js
and memdown
.
try my runner to test in the browser https://github.com/hugomrdias/playwright-test i have had serious problems with airtap not bundling correctly and the DX is much nicer. |
I've been working on adding playwright to airtap actually 😄 (and any other browser for that matter). What does DX mean? |
cool, any feedback would be awesome or if you need any help please ping me. |
6.2.3 |
This increased the dependency count for |
Yeah, it's hard to satisfy everyone's needs. Ideas? |
I've got an idea for |
Ok opened Level/leveldown#714 |
Developer Experience |
this seems to be related only to the use of |
@hugomrdias Would you mind opening an issue in airtap to describe your experience? Unless it's about webpack, then the answer is simply "yeah, we're browserify die-hards, and you should be using another tool". |
sure, and it’s not about webpack actually i don't care about webpack (i want to add support for more bundlers in the same way it already support multiple test runners) its about giving the developer the same experience that they have in node (everything is properly redirected to the terminal) and if they really need to run in debug mode (browser window opened) they always have a clean env, devtools opened already focused in the console (playwright needs to land support for this already talked with them and they support it). Also it supports extensions env, webworkers etc |
@vweevers should we change to https://github.com/YuzuJS/setImmediate to fix the |
Thanks for the airtap feedback! Agree on all points, and there's an effort underway to do all that except for extensions and webworkers (although that would be easier to implement in the next version).
That's a macrotask library, while |
Opened two PRs to reduce dependencies |
@Raynos A heads up: I'm swamped atm |
No worries :) |
ofc .. my bad what about https://github.com/feross/queue-microtask (https://nodejs.org/api/globals.html#globals_queuemicrotask_callback) |
@hugomrdias re: immediate and web workers, I suggest that whoever needs that sends a PR to |
This PR add buffer as a dependency.
Related to Level/level-js#191
@vweevers regarding process.nextTick should we copy immediate.js and immediate-browser.js from level-js and then remove and require in level-js from here ?