-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,39 @@ | ||
# Change Log | ||
|
||
## v48 | ||
## v49 | ||
|
||
- Improve **cjs-lexer** service to handle a edge case is shown below: | ||
- Improve the build process to fix an edge case reported in [#118](https://github.com/postui/esm.sh/issues/118) | ||
```js | ||
const parser = require('htmlparser').Parser; | ||
``` | ||
esm (v48) output: | ||
```js | ||
import htmlparser2 from '/v48/[email protected]/es2021/htmlparser2.js' | ||
const parser = htmlparser2.Parser; // Parser is undefined | ||
``` | ||
the expected output was fixed in v49: | ||
```js | ||
// cjs | ||
import { Parser as htmlparser2_Parser } from '/v48/[email protected]/es2021/htmlparser2.js' | ||
const parser = Parser; // Parser is a class | ||
``` | ||
- Add more polyfills for Deno, huge thanks to @talentlessguy ([#117](https://github.com/postui/esm.sh/issues/117)) | ||
- path | ||
- querystring | ||
- url | ||
- timers | ||
- Better self-hosting options improved by @imisaacs, super! ([#116](https://github.com/postui/esm.sh/issues/116), [#119](https://github.com/postui/esm.sh/issues/116), [#120](https://github.com/postui/esm.sh/issues/120), [#122](https://github.com/postui/esm.sh/issues/122)) | ||
- Add **Unlimted(max 1PB) Storage** to store builds and cache via NFS on esm.sh back server behind Cloudflare | ||
|
||
## v48 | ||
|
||
- Improve **cjs-lexer** service to handle the edge case is shown below: | ||
```js | ||
function debounce() {}; | ||
debounce.debounce = debounce; | ||
module.exports = debounce; | ||
``` | ||
esm output: | ||
```js | ||
// esm | ||
|
||
export { debounce } // this was missed | ||
export default debounce | ||
``` | ||
|