-
Notifications
You must be signed in to change notification settings - Fork 7
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
Modernize #52
Modernize #52
Conversation
* Push * Push * Run prettier * Prettier stuff
* Push * jest
* Monorepo * Readme * Move tsconfig * Fix test
* Quickstart * test app too * Run pnpm * Remove eslint files * Format
* Push * Undo min change
* Use undici, remove other unneeded dependencies * pnpm install * Bundle everything * Move everything to devDependency * headers object * Bump version to 0.11.0 * Push * Hmm not working still * Add undici to peerDependencies * Measure size * Push * Fix formatting * Working on node!! --------- Co-authored-by: Zeke Foppa <github.com/bfops> Co-authored-by: Zeke Foppa <[email protected]>
* Push * Run pnpm install
* Add pkg.pr.new * Fix directory
|
commit:
|
* Push * Push * pnpm install * Any update
* Push * Forgot to rename * We only care about Lint at commit level
* Push * Webpackignore
* Push * Remove webpackIgnore
Converting to draft as #80 needs to be done in this |
* Push * Fix test
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.
Great work!
Changes
packages/sdk
index.js
file, and ship it to user. Which means we control the entire code, and the user won't end up with a different patch ofbrotli
, orbuffer
than ours which could cause issues. Also means the user's own download size is now severely reduced, no need to download all the deps and their README's licenses, package.json and a lot of unnecessary stuff.tsup
. All the code is bundled up into one index.js file that is shipped, gone are the days of us shipping our entire filesystem structure with 2 pairs of files(.js + d.ts). tsup also generates a single d.ts file containing all the typings. UPDATE: We do conditional builds now, separate forbrowser
. See modernize: Conditional browser build #79isomorphic-ws
toundici
, which is the internal implementation of native NodeJS Websockets. This is to make our library work the same everywhere, whether it is browsers, Node, Bun, Deno, Cloudflare workers or any other environment that could potentially be a usable runtime.undici
, which is for NodeJS 18(and 20, altho that might change) is required, and I'll add that in a separate documentation PR.pnpm run changeset
command to add a Changelog-message for the PR, and then merging the PR will open a new PR "Version packages", by Changeset Bot. Only on approving and merging that PR will it publish to NPMPRs