Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Add block scoping to switch statement cases to prevent variable declaration issues
- Enforce const usage for variables that are never reassigned
- Add node: protocol prefix to Node.js builtin module imports for clarity
- Use modern exponentiation operator (**) instead of Math.pow()

## v0.10.9
- Add support for IPv6 urls
Expand Down
3 changes: 1 addition & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"useLiteralKeys": "off"
},
"style": {
"useTemplate": "off",
"useExponentiationOperator": "off"
"useTemplate": "off"
},
"suspicious": {
"noRedundantUseStrict": "off",
Expand Down
2 changes: 1 addition & 1 deletion test/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function floatChooser(maxExp) {
while (isNaN(n)) {
const mantissa = Math.random() * 2 - 1;
const exponent = chooseInt(0, maxExp);
n = Math.pow(mantissa, exponent);
n = mantissa ** exponent;
}
return n;
};
Expand Down