René's URL Explorer Experiment


Title: disambiguate "web compatibility" · Issue #142 · nodejs/modules · GitHub

Open Graph Title: disambiguate "web compatibility" · Issue #142 · nodejs/modules

X Title: disambiguate "web compatibility" · Issue #142 · nodejs/modules

Description: similar to "transparent" interop, the use of the term "web compatibility" is a bit muddy in usage. I think we need to discern 2 main things: Code compatibility concerns: if users are being encouraged to/must produce code that cannot run ...

Open Graph Description: similar to "transparent" interop, the use of the term "web compatibility" is a bit muddy in usage. I think we need to discern 2 main things: Code compatibility concerns: if users are being encourag...

X Description: similar to "transparent" interop, the use of the term "web compatibility" is a bit muddy in usage. I think we need to discern 2 main things: Code compatibility concerns: if user...

Opengraph URL: https://github.com/nodejs/modules/issues/142

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"disambiguate \"web compatibility\"","articleBody":"similar to \"transparent\" interop, the use of the term \"web compatibility\" is a bit muddy in usage.\r\n\r\nI think we need to discern 2 main things:\r\n\r\n1. **Code compatibility concerns**: if users are being encouraged to/must produce code that *cannot* run on web browsers. Examples include:\r\n     * using things that are not present on `import.meta` in browsers\r\n     * using magic variables like `__filename` which are not going to be present in the browser\r\n     * using modules written in CJS\r\n2. **Platform compatibility concerns**: if the Node implementation of ESM varies from the WHATWG implementation in a way that prevent people from shipping an ESM module graph that works in Node to the web. Examples include:\r\n     * having a different cache mechanism for indirection\r\n     * having a different value for `import.meta.url`\r\n     * having a different resolution algorithm\r\n\r\nI want to be very clear that platform concerns are about how ESM graphs are loaded and what contextual data is provided to those modules. Underlying formats used to ship modules is unaffected and may be overloaded through different container mechanism such as using webpackage or BinaryAST.\r\n\r\nNotably, I would like to make a discerning line about if importing non-ESM is a compatibility concern on the Code level or the Platform level.\r\n\r\nI believe very firmly that importing non-ESM is neither.\r\n\r\n* For the Code compatibility concern, the simplest example of this is to show an application that contains only ESM. The Code compatibility concern is about requiring code be written using syntax or APIs that cannot work on the web. If you don't import CJS, you don't have this compatibility concern, even if the feature of importing CJS exists.\r\n\r\n* For the Platform compatibility concern, people can claim that `import 'foo';` resolving to CJS in Node is a platform compatibility concern. I want to claim this is a false concern. \r\n\r\n     1. Having `foo` resolve to ESM is still possible either by porting, bundling, or shipping multiple builds. At no point is `foo` required to be CJS by writing `import 'foo';`.\r\n     2. If we look at the idea of the web shipping a format that Node does not support (such as HTML modules). There is nothing preventing that author of HTML modules to take the inverse approach so that it could be loaded in Node. If we are to state that importing CJS is a platform compatibility concern due to requiring specific dependencies be written in CJS, we would also need to state the inverse for HTML modules ; which is false, as `import` does not require the format of the dependency being loaded to be anything , be it CJS or HTML.\r\n\r\nI will leave migration concerns up to @demurgos 's incoming review of the issue, but felt that we should address the topic of what \"web compatibility\" is in a way that we can be concrete in what breaks when we talk about features.\r\n\r\nI am open to changing definitions above, but want to make us be more mindful of using the term \"web compatibility\" without explaining what breaks by including a feature. Is it the ability to use ESM loading mechanisms in both places, or is it the ability to run the same source text in both places? We should also seek to prioritize if the ability to run the same source text in both places is mandatory given that **any** usage of CJS will not be possible to run without some assistance in the browser.","author":{"url":"https://github.com/bmeck","@type":"Person","name":"bmeck"},"datePublished":"2018-06-28T20:00:06.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":113},"url":"https://github.com/142/modules/issues/142"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:aa31f156-a8df-f729-538c-c1a4d92804b8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9BDA:129DF4:1362F73:1C39EAF:6A4E4423
html-safe-nonce3fc9e401298df4fcd327d19f1865ed93be69a413808612931d35ef3fa69a4c71
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkRBOjEyOURGNDoxMzYyRjczOjFDMzlFQUY6NkE0RTQ0MjMiLCJ2aXNpdG9yX2lkIjoiNzgyNjc4NDg3MTY4NzAxMzQxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5ab81a64086de0cac03cba1165be73370719c71d7a20234182db0d274ddd8510
hovercard-subject-tagissue:336759600
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/modules/142/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1b316aac7a2bde6a393e9130d8367fca7fd16051e607db3d2bf62c5a5043f479/nodejs/modules/issues/142
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1b316aac7a2bde6a393e9130d8367fca7fd16051e607db3d2bf62c5a5043f479/nodejs/modules/issues/142
og:image:altsimilar to "transparent" interop, the use of the term "web compatibility" is a bit muddy in usage. I think we need to discern 2 main things: Code compatibility concerns: if users are being encourag...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebmeck
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
turbo-cache-controlno-preview
go-importgithub.com/nodejs/modules git https://github.com/nodejs/modules.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id119901830
octolytics-dimension-repository_nwonodejs/modules
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id119901830
octolytics-dimension-repository_network_root_nwonodejs/modules
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9fabff9b8b127e686a3ec86f91422e818056ca2c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/modules/issues/142#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fmodules%2Fissues%2F142
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fmodules%2Fissues%2F142
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fmodules
Reloadhttps://github.com/nodejs/modules/issues/142
Reloadhttps://github.com/nodejs/modules/issues/142
Reloadhttps://github.com/nodejs/modules/issues/142
Please reload this pagehttps://github.com/nodejs/modules/issues/142
nodejs https://github.com/nodejs
moduleshttps://github.com/nodejs/modules
Notifications https://github.com/login?return_to=%2Fnodejs%2Fmodules
Fork 43 https://github.com/login?return_to=%2Fnodejs%2Fmodules
Star 411 https://github.com/login?return_to=%2Fnodejs%2Fmodules
Code https://github.com/nodejs/modules
Issues 26 https://github.com/nodejs/modules/issues
Pull requests 0 https://github.com/nodejs/modules/pulls
Actions https://github.com/nodejs/modules/actions
Projects https://github.com/nodejs/modules/projects
Security and quality 0 https://github.com/nodejs/modules/security
Insights https://github.com/nodejs/modules/pulse
Code https://github.com/nodejs/modules
Issues https://github.com/nodejs/modules/issues
Pull requests https://github.com/nodejs/modules/pulls
Actions https://github.com/nodejs/modules/actions
Projects https://github.com/nodejs/modules/projects
Security and quality https://github.com/nodejs/modules/security
Insights https://github.com/nodejs/modules/pulse
disambiguate "web compatibility"https://github.com/nodejs/modules/issues/142#top
interoperabilityhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22interoperability%22
web-platformhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22web-platform%22
https://github.com/bmeck
bmeckhttps://github.com/bmeck
on Jun 28, 2018https://github.com/nodejs/modules/issues/142#issue-336759600
@demurgoshttps://github.com/demurgos
interoperabilityhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22interoperability%22
web-platformhttps://github.com/nodejs/modules/issues?q=state%3Aopen%20label%3A%22web-platform%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.