get rid of process.browser checks
See original GitHub issueIt makes the tests a lot harder to understand. Not exactly sure how we would do it and how it will affect implementations, need time and help from the community to get this right. A suggestion would be to
- check the commit history, why were the
process.browser
checks added in the first place? - if we remove them, what would the consequences be?
- rewrite/update implementations that rely on this based in 1. and 2.
See the following comments:
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (16 by maintainers)
Top Results From Across the Web
Remove process/browser.js #403 - preactjs/preact-compat
I was able to remove it locally by changing: var DEV = typeof process==='undefined' ... Process checking adds .56 KB (gzip) to bundle...
Read more >How do I detect whether I am on server on client in next.js?
You can use process.browser to distinguish between server environment (NodeJS) and client environment (browser). process.browser is true on ...
Read more >How to Clear the Cache and Cookies in Your Web Browser
Select History. ... Select Clear Browsing Data from the left-hand side. Set the Time Range set to All Time. Check-mark Cookies and other...
Read more >How to Clear Cache for All Major Browsers - Kinsta
Find out how to clear the browser cache in most major browsers with these quick steps and ... Check Out Our Video Guide...
Read more >Clear your web browser's cache, cookies, and history - IU KB
At the top of the "Clear browsing data" window, click Advanced. · Select the following: Browsing history; Download history; Cookies and other ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To summarize what’s been achieved:
Done in #277 and #297.
Done in #277.
If there are any assumptions left we’ll likely run into them when updating
memdown
andlevel-js
.Range options are now serialized, and nullish values are rejected, since #277. To support
bytewise
and others, range options are no longer touched, and a test that assumednull
meant “not defined” has been removed. Inencoding-down
, we should be able to remove_setupIteratorOptions
.Solved in #277.
I’ll open a new issue for the backlog.
Solved in #297 (and earlier PRs) with a
bufferKeys
option.I prefer this approach and I think @juliangruber does as well.