mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 21:29:01 +00:00
## [0.21.0] - 2024-07-18 -d7ab0b8semantic: [**BREAKING**] Simplify node creation (#4226) (lucab) ### Features -af4dc01ast: Align ts ast scope with typescript (#4253) (Dunqing) -83c2c62codegen: Add option for choosing quotes; remove slow `choose_quot` method (#4219) (Boshen) -5d17675mangler: Add debug mode (#4314) (Boshen) -e3e663bmangler: Initialize crate and integrate into minifier (#4197) (Boshen) -c818472minifier: Dce conditional expression `&&` or `||` (#4190) (Boshen) -8a190eboxc: Export `oxc_mangler` (Boshen) -20cdb1fsemantic: Align class scope with typescript (#4195) (Dunqing) -92ee774semantic: Add `ScopeFlags::CatchClause` for use in CatchClause (#4205) (Dunqing) -205c259sourcemap: Support SourceMapBuilder#token_chunks (#4220) (underfin) -7eb960dtransformer: Decode xml character entity `&#xhhhh` and `&#nnnn;` (#4235) (Boshen) ### Bug Fixes -bf3d8d3codegen: Print annotation comment inside parens for new and call expressions (#4290) (Boshen) -084ab76codegen: Use `ryu-js` for f64 to string (Boshen) -e167ef7codegen: Print parenthesis properly (#4245) (Boshen) -c65198fcodegen: Choose the right quote for jsx attribute string (#4236) (Boshen) -be82c28codegen: Print `JSXAttributeValue::StringLiteral` directly (#4231) (Boshen) -3df9e69mangler: No shorthand `BindingProperty`; handle var hoisting and export variables (#4319) (Boshen) -f144082minifier: RemoveDeadCode should visit nested expression (#4268) (underfin) -66b455aoxc_codegen: Avoid print same pure comments multiple time (#4230) (IWANABETHATGUY) -9a87e41parser: Avoid crashing on invalid const modifier (#4267) (lucab) -641a78bparser: Fix tests for number parsing (#4254) (overlookmotel) -9badac0semantic: Avoid var hosting insert the var variable to the `CatchClause` scope (#4337) (Dunqing) -95e15b6semantic: Incorrect resolve references for `ExportSpecifier` (#4320) (Dunqing) -c362bf7semantic: Incorrect resolve references for `TSInterfaceHeritage` (#4311) (Dunqing) -351ecf2semantic: Incorrect resolve references for `TSTypeQuery` (#4310) (Dunqing) -1108f2asemantic: Resolve references to the incorrect symbol (#4280) (Dunqing) -22d56bdsemantic: Do not resolve references after `FormalParameters` in TS type (#4241) (overlookmotel)-1c117ebAvoid print extra semicolon after accessor property (#4199) (IWANABETHATGUY) ### Performance -a8dc4f3parser: Speed up parsing numbers with `_` separators (#4259) (overlookmotel) -b94540dparser: Speed up parsing octal literals (#4258) (overlookmotel) -a7b328cparser: Faster parsing decimal numbers (#4257) (overlookmotel) -f9d3f2esemantic: Inline ast record functions (#4272) (overlookmotel) -8fad7dbsemantic: Reduce `AstNodeId` to `u32` (#4264) (overlookmotel) -23743dbsemantic: Do not record ast nodes for cfg if cfg disabled (#4263) (overlookmotel) -da69076semantic: Reduce overhead of cfg recording ast nodes (#4262) (overlookmotel) -cb15303semantic: Reduce memory copies (#4216) (overlookmotel) -ef4c1f4semantic: Reduce lookups (#4214) (overlookmotel) -f23e54fsemantic: Recycle unresolved references hash maps (#4213) (overlookmotel) -2602ce2semantic: Reuse existing map of unresolved refs (#4206) (lucab) ### Refactor -2c7bb9fast: Pass final `ScopeFlags` into `visit_function` (#4283) (overlookmotel) -3e099feast: Move `enter_scope` after `visit_binding_identifier` (#4246) (Dunqing) -aab7aaaast/visit: Fire node events as the outermost one. (#4203) (rzvxa) -d1c4be0codegen: Clean up annotation_comment (Boshen) -06197b8codegen: Separate tests (Boshen) -aa22073codegen: Improve print API (#4196) (Boshen) -c5731a5semantic: Remove defunct code setting ScopeFlags twice (#4286) (overlookmotel) -16698bcsemantic: Move function/class-specific code into specific visitors (#4278) (overlookmotel) -ee16668semantic: Rename function param (#4277) (overlookmotel) -25f0771semantic: Alter syntax of `control_flow!` macro (#4275) (overlookmotel) -639fd48semantic: Comment why extra CFG enabled check (#4274) (overlookmotel) -c418bf5semantic: Directly record `current_node_id` when adding a scope (#4265) (Dunqing) -ace4f1fsemantic: Update the order of `visit_function` and `Visit` fields in the builder to be consistent (#4248) (Dunqing) -8bfeabfsemantic: Simplify adding `SymbolFlags::Export` (#4249) (Dunqing) -dc2b3c4semantic: Add strict mode in scope flags for class definitions (#4156) (Dunqing) -81ed588semantic: Convert scope fields to IndexVecs (#4208) (lucab) -bbe5dedsemantic: Set `current_scope_id` to `scope_id` in `enter_scope` (#4193) (Dunqing) -7f1adddsemantic: Correct scope in CatchClause (#4192) (Dunqing) -fc0b17dsyntax: Turn the `AstNodeId::dummy` into a constant field. (#4308) (rzvxa) -a197e01transformer/typescript: Remove unnecessary code (#4321) (Dunqing) -1458d81visit: Add `#[inline]` to empty functions (#4330) (overlookmotel) Co-authored-by: Boshen <Boshen@users.noreply.github.com>
40 lines
No EOL
1.2 KiB
JSON
40 lines
No EOL
1.2 KiB
JSON
{
|
|
"name": "@oxc-parser/wasm",
|
|
"version": "0.21.0",
|
|
"description": "Wasm target for the oxc parser.",
|
|
"keywords": [
|
|
"JavaScript",
|
|
"TypeScript",
|
|
"parser"
|
|
],
|
|
"author": "Boshen and oxc contributors",
|
|
"license": "MIT",
|
|
"homepage": "https://oxc.rs",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/oxc-project/oxc",
|
|
"directory": "wasm/parser"
|
|
},
|
|
"funding": {
|
|
"url": "https://github.com/sponsors/Boshen"
|
|
},
|
|
"main": "./node/oxc_parser_wasm.js",
|
|
"browser": "./web/oxc_parser_wasm.js",
|
|
"types": "./node/oxc_parser_wasm.d.ts",
|
|
"files": [
|
|
"node",
|
|
"web"
|
|
],
|
|
"scripts": {
|
|
"build": "pnpm run build-node && pnpm run build-web && pnpm run copy-files && pnpm run clean-files",
|
|
"build-node": "pnpm run build-base --target nodejs --out-dir ../../npm/parser-wasm/node .",
|
|
"build-web": "pnpm run build-base --target web --out-dir ../../npm/parser-wasm/web .",
|
|
"build-base": "wasm-pack build --release --no-pack",
|
|
"copy-files": "cp ./package.json ../../npm/parser-wasm/package.json && cp ./README.md ../../npm/parser-wasm/README.md",
|
|
"clean-files": "rm ../../npm/parser-wasm/*/.gitignore",
|
|
"test": "node ./test-node.mjs"
|
|
},
|
|
"devDependencies": {
|
|
"wasm-pack": "^0.13.0"
|
|
}
|
|
} |