Skip to content

Switch to a hand-maintained Node.js facade - #2918

Merged
mpilquist merged 40 commits into
typelevel:mainfrom
armanbilge:topic/node-facade
Jun 8, 2022
Merged

Switch to a hand-maintained Node.js facade#2918
mpilquist merged 40 commits into
typelevel:mainfrom
armanbilge:topic/node-facade

Conversation

@armanbilge

@armanbilge armanbilge commented Jun 5, 2022

Copy link
Copy Markdown
Member

Closes #2777. This replaces the 700+ files auto-generated by Scalably Typed with 10 files focused on the Node.js APIs we actually use. This lets us remove the ScalablyTyped and Bundler plugins and lockfiles.

One of the hazards of a hand-maintained facade is that we now rely entirely on runtime tests to know if any of this works, since a facade could be completely wrong and is not statically verified against anything. So there could be some regressions due to this change for any APIs lacking coverage. We can slowly improve this.

@armanbilge

armanbilge commented Jun 5, 2022

Copy link
Copy Markdown
Member Author

I published cc479f4 as 3.2.7-100-cc479f4-SNAPSHOT and ran CI for http4s and skunk. I think we're good.

(Aside: even better, I think the size of the generated JS artifact (which we monitor in http4s) decreased by 10%, but I can't understand why 🤔 ). Nope, was comparing numbers across scala versions by mistake.

@armanbilge
armanbilge marked this pull request as ready for review June 5, 2022 16:17
@mpilquist
mpilquist merged commit aeba0e4 into typelevel:main Jun 8, 2022
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.

Replace the auto-generated Node.js facade with a hand-maintained facade

2 participants