You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,34 @@
6
6
7
7
The character tables that determine which characters form valid JavaScript identifiers have been updated from Unicode version 14.0.0 to the newly-released Unicode version 15.0.0. I'm not putting an example in the release notes because all of the new characters will likely just show up as little squares since fonts haven't been updated yet. But you can read https://www.unicode.org/versions/Unicode15.0.0/#Summary for more information about the changes.
8
8
9
+
* Disallow duplicate lexically-declared names in nested blocks
10
+
11
+
It's supposed to be a syntax error for a nested block to declare two symbols with the same name unless all duplicate entries are either `function` declarations or all `var` declarations. However, esbuild was overly permissive and allowed this when duplicate entries were either `function` declarations or `var` declarations (even if they were mixed). This check has now been made more restrictive to match the JavaScript specification:
12
+
13
+
```js
14
+
// JavaScript allows this
15
+
var a
16
+
functiona() {}
17
+
{
18
+
var b
19
+
var b
20
+
functionc() {}
21
+
functionc() {}
22
+
}
23
+
24
+
// JavaScript doesn't allow this
25
+
{
26
+
var d
27
+
functiond() {}
28
+
}
29
+
```
30
+
31
+
* Add a type declaration for the new`empty`loader ([#2755](https://github.com/evanw/esbuild/pull/2755))
32
+
33
+
I forgot to add thisin the previous release. It has now been added.
34
+
35
+
This fix was contributed by [@fz6m](https://github.com/fz6m).
36
+
9
37
## 0.16.8
10
38
11
39
* Allow plugins to resolve injected files ([#2754](https://github.com/evanw/esbuild/issues/2754))
0 commit comments