mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 20:28:58 +00:00
## [0.22.0] - 2024-07-23 -85a7ceasemantic: [**BREAKING**] Remove name from `reference` (#4329) (Dunqing) -f68b659ast: [**BREAKING**] Reorder fields of `ArrowFunctionExpression` (#4364) (Dunqing) ### Features -d345b84ast: Add `#[ast]` attribute to non-visited AST types. (#4309) (rzvxa) -3c0c709linter: Add typescript-eslint/no-extraneous-class (#4357) (Jaden Rodriguez) -68efcd4linter/react-perf: Handle new objects and arrays in prop assignment patterns (#4396) (DonIsaac) -0deb027minfier: Dce `if (xxx) else if (false) { REMOVE }` (#4407) (Boshen) -e33ec18minifier: Compress `typeof foo == "undefined"` into `typeof foo > "u"` (#4412) (Boshen)-6068e6bAdd error codes to OxcDiagnostic (#4334) (DonIsaac) ### Bug Fixes -aece1dfast: Visit `Program`s `hashbang` field first (#4368) (overlookmotel) -44a10c4codegen: Object shorthand with parens `({x: (x)})` -> `({ x })` (#4391) (Boshen) -3d88f20codegen: Print shorthand for all `{ x }` variants (#4374) (Boshen) -e624dffcodegen,mangler: Do not print shorthand for `ObjectProperty` (#4350) (Boshen) -ac08de8linter/react_perf: Allow new objects, array, fns, etc in top scope (#4395) (DonIsaac) -267f7c4minifier: Skip `Object.defineProperty(exports, ...)` for `cjs-module-lexer` (#4409) (Boshen) -bc8d4e5semantic: Correct comment (#4410) (overlookmotel) -6ffce86semantic: Align `visit_arrow_function_expression` field visit order with ast (#4366) (Dunqing) -4cd5df0sourcemap: Avoid negative line if token_chunks has same prev_dst_line (#4348) (underfin) -f8565aetransformer/typescript: Unexpectedly removed class binding from ExportNamedDeclaration (#4351) (Dunqing)-ea33f94Impl PartialEq<str> for CompactStr (#4352) (DonIsaac) ### Performance -1b51511semantic: Use `Atom` instead of `CompactStr` for `UnresolvedReferencesStack` (#4401) (Dunqing) -40f9356semantic: Calculate number of nodes, scopes, symbols, references before visiting AST (#4367) (Dunqing) -da13d93semantic: Remove bounds checks on unresolved references stack (#4390) (overlookmotel) -e70c67bsemantic: Remove a branch from `add_scope` (#4384) (overlookmotel) -402006fsemantic: Simplify logic in `enter_scope` + `leave_scope` (#4383) (overlookmotel) -7469e01semantic: Remove branch from `Nodes::add_node` (#4361) (overlookmotel) -7eb2864traverse: Speed up finding UID binding name (#4356) (overlookmotel)-a207923Replace some CompactStr usages with Cows (#4377) (DonIsaac) ### Refactor -504daedallocator: Rename fn params for `Box::new_in` (#4431) (overlookmotel) -d213773ast: Replace serde rename "lowercase" with "camelCase" (#4376) (overlookmotel) -abfccbdast: Reduce `#[cfg_attr]` boilerplate in AST type defs (#4375) (overlookmotel) -5f1c7ecast: Rename the `visited_node` marker to `ast`. (#4289) (rzvxa) -58f6ec2ast: Enter node before scope (#4347) (Dunqing) -59aea73ast: Scope is created only if CatchClause has param (#4346) (Dunqing) -7a3e925ast_codegen: Better visit marker parsing. (#4371) (rzvxa) -0e1ea90isolated-declarations: Remove useless code from scope (#4420) (Dunqing) -7a75e0flinter: Use diagnostic codes in lint rules (#4349) (DonIsaac) -a2eabe1parser: Use error codes for ts diagnostics (#4335) (DonIsaac) -5d77b36semantic: `visit_program` visit `hashbang` field (#4370) (overlookmotel) -f7b9adasemantic: `Program` visitor leave scope before node (#4369) (overlookmotel) -729b288semantic: Shorten code (#4358) (overlookmotel) -21d0eeesemantic: Use error codes for ts diagnostics (#4336) (DonIsaac) Co-authored-by: Boshen <1430279+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.22.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"
|
|
}
|
|
} |