Skip to content

refactor: remove readable-stream polyfill#429

Merged
kanadgupta merged 1 commit intoesm-and-cjsfrom
deps-cleanup
Sep 27, 2023
Merged

refactor: remove readable-stream polyfill#429
kanadgupta merged 1 commit intoesm-and-cjsfrom
deps-cleanup

Conversation

@kanadgupta
Copy link
Copy Markdown
Contributor

🧰 Changes

ReadableStream has been a thing in modern browsers for a while, and since this library now requires Node 18 or higher, I think it's safe to assume we can remove the polyfill?

🧬 QA & Testing

Tests still appear to pass, though we apparently haven't been running browser tests for a while 😬

@kanadgupta kanadgupta added dependencies Pull requests that update a dependency file refactor Issues about tackling technical debt labels Sep 27, 2023
Copy link
Copy Markdown
Member

@domharrington domharrington left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kanadgupta kanadgupta merged commit 46801c2 into esm-and-cjs Sep 27, 2023
@kanadgupta kanadgupta deleted the deps-cleanup branch September 27, 2023 13:53
kanadgupta added a commit that referenced this pull request Sep 27, 2023
* feat: enable TS strict mode

* feat: exports for ESM and CJS

* fix: don't lint before tests

* fix: try splitting out types from default export

* chore: more tsconfig refreshes

* fix: this was the goddamn issue!!!!

* feat: migrate package to ESM, everything works 🥹

* chore: lint fixes

* chore(deps): remove unused dep

* chore(deps): bump a bunch

* ci: add pretest script

* revert: don't lint in tests

* chore: run prettier on everything

* ci: small refactor

* fix: bump target down

Co-Authored-By: Ilias Tsangaris <[email protected]>

* refactor: move type-checks into function itself

* revert: build this repo in CJS instead

that way we can use the conditional require syntax!

* chore: clean up eslint config

* chore: bump a few more deps

* chore: bring back this rule

* chore: test type cleanup

* chore: silence TS error

* fix: whoops remove the write flag

* test: add `msw` tests (#428)

* chore(deps): bump @vitest/browser to latest

* test: add MSW tests

* chore: rename test

(server) implies the existence of (client), which isn't a thing 😔

* refactor: remove readable-stream polyfill (#429)

* chore: add `files` array

* chore: ope clean up an unused type

* Update README.md

Co-authored-by: Dom Harrington <[email protected]>

* chore: add webpack thingy

* fix: edit tsconfig.json

see here: https://www.totaltypescript.com/tsconfig-cheat-sheet#not-transpiling-with-typescript

* chore: bring back prebuild script

... because i don't trust tsup lol

---------

Co-authored-by: Ilias Tsangaris <[email protected]>
Co-authored-by: Dom Harrington <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file refactor Issues about tackling technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants