Skip to content
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

feat: ESM support #25

Merged
merged 39 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
18c8db1
fix: mark the module as CJS for modern tooling
stipsan Aug 25, 2022
f0eae77
fix: add pkg.exports in a bc compatible way
stipsan Aug 25, 2022
44d2930
chore: setup CI and semantic-release
stipsan Aug 25, 2022
14bc2f0
chore: add deno test
stipsan Aug 25, 2022
7179bf9
chore: fix ci
stipsan Aug 25, 2022
1a525d8
feat: add ESM output
stipsan Aug 25, 2022
60e5dd2
chore: testing a much easier setup
stipsan Aug 25, 2022
c1b15e8
feat: add ESM browser exports & tests
stipsan Aug 25, 2022
05eb0d2
chore: fix CI
stipsan Aug 25, 2022
7171cbb
chore: ready for code review
stipsan Aug 25, 2022
f756231
fix: add document check for deno
stipsan Aug 25, 2022
1bbb1f1
chore: bump node-fetch
stipsan Aug 25, 2022
f1385d5
chore: happy CI happy life
stipsan Aug 25, 2022
c4352d1
chore: I repeat... happy ci happy life
stipsan Aug 26, 2022
162a58f
fix: node v12 bug
stipsan Aug 26, 2022
52f7af1
chore: enable sourcemaps
stipsan Aug 26, 2022
d0cdd48
chore: remove empty references
stipsan Aug 26, 2022
b9b4e52
feat: add smart imports for middleware
stipsan Aug 26, 2022
aa27d71
fix: remove `process` globals from mjs
stipsan Aug 26, 2022
1c1329f
fix: better cdn support
stipsan Aug 26, 2022
5965edd
fix: get rid of `object-assign`
stipsan Aug 26, 2022
681f71b
chore: better externals perf
stipsan Aug 26, 2022
cbc57e7
chore: fix coverage
stipsan Aug 26, 2022
4947e9a
chore: cleanup
stipsan Aug 26, 2022
fa88d59
fix: ESM all the things
stipsan Aug 26, 2022
4c03ad1
chore: more ESM
stipsan Aug 26, 2022
27d517f
chore: a little less ESM for the sake of the tests
stipsan Aug 26, 2022
5d05384
chore: better fix for the mixed exports
stipsan Aug 26, 2022
5d93fd5
chore: simplify
stipsan Aug 26, 2022
9ddd737
chore: fix paths
stipsan Aug 26, 2022
348f2b9
chore: fix cjs build
stipsan Aug 26, 2022
bfb3476
chore: fix the last ESM tests
stipsan Aug 26, 2022
461fdf0
fix: don't ship keepAlive to browsers
stipsan Aug 26, 2022
56ab3ef
fix: handle deno oddity
stipsan Aug 26, 2022
6e7cdd4
fix: add support for vercel and bun
stipsan Aug 26, 2022
25cb0ff
fix: update magic imports
stipsan Aug 26, 2022
22eb36c
fix: support vercel edge runtime
stipsan Aug 26, 2022
4335768
chore: browserify says no
stipsan Aug 26, 2022
9263d4a
fix: finally, a verified working edge runtime setup
stipsan Aug 27, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: bump node-fetch
  • Loading branch information
stipsan committed Aug 25, 2022
commit 1bbb1f14bff0e8bda9ae53e7fb7285d9b8f2a160
12 changes: 12 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@
}
]
]
},
"test": {
"presets": [
[
"@babel/env",
{
"targets": {
"node": "current"
}
}
]
]
}
}
}
28 changes: 17 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"lint": "eslint .",
"posttest": "npm run lint",
"prepublishOnly": "npm run build && npm test",
"test": "cross-env BABEL_ENV=node mocha",
"test": "cross-env BABEL_ENV=test mocha",
"test:esm": "node --test test-esm/ | faucet",
"test:esm:browser": "node -C browser --test test-esm/test.mjs | faucet",
"test:esm:deno": "deno test --allow-net --unstable --compat --allow-read --allow-env test-esm/test.ts"
Expand Down Expand Up @@ -171,7 +171,7 @@
"get-uri": "^2.0.1",
"lodash.once": "^4.1.1",
"mocha": "^9.2.0",
"node-fetch": "^2.0.0",
"node-fetch": "^2.6.7",
"nyc": "^15.1.0",
"pinkie-promise": "^2.0.1",
"prettier": "^1.15.2",
Expand Down