-
-
Notifications
You must be signed in to change notification settings - Fork 758
Release crates v0.21.0 #4325
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
Release crates v0.21.0 #4325
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
@Dunqing Can you test rolldown before making a release when you wake up? |
Yes, I can |
|
Cool, click |
Inhttps://github.com/rolldown-rs/rolldown/blob/main/crates/rolldown/tests/fixtures/rollup/catch-scope-shadowing/main.js#L20
import assert from 'assert';
var e = 'failed1',
x = 'value';
(function () {
try {
// empty
} catch (e) {
var e = 'failed2';
}
assert.strictEqual(e, undefined);
assert.strictEqual(x, undefined);
x = 'failed3';
return;
try {
not_reached();
} catch (x) {
var x = 'failed4';
}
})();
assert.strictEqual(x, 'value');Outimport { default as assert } from "assert";
//#region main.js
var e = "failed1", x = "value";
(function() {
try {} catch (e$1) {
var e$1 = "failed2";
}
assert.strictEqual(e, undefined);
assert.strictEqual(x$1, undefined);
x$1 = "failed3";
return;
var x$1;
})();
assert.strictEqual(x, "value");
//#endregionExpectedimport { default as assert } from "assert";
//#region main.js
var e = 'failed1', x = 'value';
(function() {
try {} catch (e$1) {
var e$1 = 'failed2';
}
assert.strictEqual(e$1, undefined);
assert.strictEqual(x$1, undefined);
x$1 = 'failed3';
return;
try {
not_reached();
} catch (x$1) {
var x$1 = 'failed4';
}
})();
assert.strictEqual(x, 'value');This test failed because the scope changed. I am working to figure it out. |
|
Closing this. See #4338 |
|
Do we have a command to update the branch instead of creating another PR? |
Nope, but you can update manually. |
[0.21.0] - 2024-07-17
Features
choose_quotmethod (feat(codegen): add option for choosing quotes; remove slowchoose_quotmethod #4219) (Boshen)&&or||(feat(minifier): dce conditional expression&&or||#4190) (Boshen)oxc_mangler(Boshen)ScopeFlags::CatchClausefor use in CatchClause (feat(semantic): addScopeFlags::CatchClausefor use in CatchClause #4205) (Dunqing)&#xhhhhand&#nnnn;(feat(transformer): decode xml character entity&#xhhhhand&#nnnn;#4235) (Boshen)Bug Fixes
ryu-jsfor f64 to string (Boshen)JSXAttributeValue::StringLiteraldirectly (fix(codegen): printJSXAttributeValue::StringLiteraldirectly #4231) (Boshen)BindingProperty; handle var hoisting and export variables (fix(mangler): no shorthandBindingProperty; handle var hoisting and export variables #4319) (Boshen)ExportSpecifier(fix(semantic): incorrect resolve references forExportSpecifier#4320) (Dunqing)TSInterfaceHeritage(fix(semantic): incorrect resolve references forTSInterfaceHeritage#4311) (Dunqing)TSTypeQuery(fix(semantic): incorrect resolve references forTSTypeQuery#4310) (Dunqing)FormalParametersin TS type (fix(semantic): do not resolve references afterFormalParametersin TS type #4241) (overlookmotel)- 1c117eb Avoid print extra semicolon after accessor property (fix: avoid print extra semicolon after accessor property #4199) (IWANABETHATGUY)Performance
_separators (perf(parser): speed up parsing numbers with_separators #4259) (overlookmotel)AstNodeIdtou32(perf(semantic): reduceAstNodeIdtou32#4264) (overlookmotel)Refactor
ScopeFlagsintovisit_function(refactor(ast): pass finalScopeFlagsintovisit_function#4283) (overlookmotel)enter_scopeaftervisit_binding_identifier(refactor(ast): moveenter_scopeaftervisit_binding_identifier#4246) (Dunqing)control_flow!macro (refactor(semantic): alter syntax ofcontrol_flow!macro #4275) (overlookmotel)current_node_idwhen adding a scope (refactor(semantic): directly recordcurrent_node_idwhen adding a scope #4265) (Dunqing)visit_functionandVisitfields in the builder to be consistent (refactor(semantic): update the order ofvisit_functionandVisitfields in the builder to be consistent #4248) (Dunqing)SymbolFlags::Export(refactor(semantic): simplify addingSymbolFlags::Export#4249) (Dunqing)current_scope_idtoscope_idinenter_scope(refactor(semantic): setcurrent_scope_idtoscope_idinenter_scope#4193) (Dunqing)AstNodeId::dummyinto a constant field. (refactor(syntax): turn theAstNodeId::dummyinto a constant field. #4308) (rzvxa)