mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 21:58:36 +00:00
## [0.48.0] - 2025-01-24 -54d0facspan: [**BREAKING**] Remove `PartialEq` impl for `&Atom` (#8642) (overlookmotel) ### Features -2a2ad53allocator: Add `Allocator::capacity` and `used_bytes` methods (#8621) (overlookmotel) -6801c81allocator: Add `Allocator::new` and `with_capacity` methods (#8620) (overlookmotel) -99607d3codegen: Print comments in `TSTypeLiteral` (#8679) (Boshen) -4ae568elinter: Add DiagnosticResult to the Reporters for receiving a sub part result (#8666) (Alexander S.) -343690eminifier: Replace `Number.*_SAFE_INTEGER`/`Number.EPSILON` (#8682) (sapphi-red) -0c5bb30minifier: Replace `Number.POSITIVE_INFINITY`/`Number.NEGATIVE_INFINITY`/`Number.NaN` (#8681) (sapphi-red) -835b258minifier: Compress `typeof foo === 'object' && foo !== null` to `typeof foo == 'object' && !!foo` (#8638) (sapphi-red) -2bcbed2minifier: Compress `(a = b) === null || a === undefined` to `(a = b) == null` (#8637) (sapphi-red) ### Bug Fixes -40316aflinter: Fix github `endColumn` output (#8647) (Alexander S.) -883d25bminifier: Keep esm in dce (#8677) (Boshen) -878ce10minifier: `void 0` equals to `undefined` (#8673) (Boshen) -ba201a6minifier: Remove "non esbuild optimizations" which is incorrect (#8668) (Boshen) -8c8b5faminifier: Avoid minifing `String(a)` into `"" + a` for symbols (#8612) (翠 / green) -4ff6e85minifier: Remove expression statement `void 0` (#8602) (Boshen) -93d643eminifier: Keep side effects when folding const conditional exprs (#8591) (camc314) -178c232parser: Parse `intrinsic` TS keyword (#8627) (Kevin Deng 三咲智子) -48717abparser: Parse `true` as `TSLiteralType` (#8626) (Kevin Deng 三咲智子) -d1c5dc4semantic: Fix const assertions in `UnresolvedReferencesStack` (#8653) (overlookmotel) ### Performance -787aaadallocator: Make `String` non-drop (#8617) (overlookmotel) -d966e0acodegen: Do not check for comments if turned off (#8598) (Boshen) -3fa87fflexer: Peak 2 bytes after `!` (#8662) (Boshen) -9953ac7minifier: Add `LatePeepholeOptimizations` (#8651) (Boshen) -00dc63fminifier: Only substitute typed array constructor once (#8649) (Boshen) -3e19e4eminifier: Remove the useless empty statement removal code in statement fusion (#8646) (Boshen) -5b3c412minifier: Only run optimizations on local changes (#8644) (Boshen) ### Documentation -c1d243ballocator: Improve docs for `Allocator` (#8623) (overlookmotel) -01a5e5dallocator: Improve docs for `HashMap` (#8616) (overlookmotel) -87568a1allocator: Reformat docs (#8615) (overlookmotel) -3be0392lexer: Fix doc comment (#8664) (overlookmotel) -5029547semantic: Fix and reformat doc comments (#8652) (overlookmotel) ### Refactor -ae8db53allocator: Move `Allocator` into own module (#8656) (overlookmotel) -0f85bc6allocator: Reduce repeat code to prevent `Drop` types in arena (#8655) (overlookmotel) -de76eb1allocator: Reorder `Box` methods (#8654) (overlookmotel) -997859cast: Align `#[estree(via)]` behavior (#8599) (sapphi-red) -db863a3codegen: Use `Stack` for `binary_expr_stack` (#8663) (Boshen) -8cce69acodegen: Remove `match_member_expression` (#8597) (Boshen) -a3dc4c3crates: Clean up snapshot files (#8680) (Boshen) -e66da9fisolated_declarations, linter, minifier, prettier, semantic, transformer: Remove unnecessary `ref` / `ref mut` syntax (#8643) (overlookmotel) -23b49a6linter: Use `cow_to_ascii_lowercase` instead `cow_to_lowercase` (#8678) (Boshen) -ce2b9daminifier: Remove `wrap_to_avoid_ambiguous_else` (#8676) (Boshen) -75a579bminifier: Clean up `has_no_side_effect_for_evaluation_same_target` (#8675) (Boshen) -1bb2539minifier: Move more code into `minimize_conditions` local loop (#8671) (Boshen) -13e4a45minifier: Move conditional assignment to `minimize_conditions` (#8669) (Boshen) -ae895d8minifier: Use `NonEmptyStack` for function stack (#8661) (Boshen) -3802d28minifier: Clean up `try_minimize_conditional` (#8660) (Boshen) -dcc1f2bminifier: Rename `ast_passes` to `peephole` (#8635) (Boshen) -52458deminifier: Remove unused code and traits (#8632) (Boshen) -6f95cd5minifier: Remove all the unnecessary fake ast passes (#8618) (Boshen) -712cae0minifier: Run the compressor on all test cases (#8604) (Boshen) -864b8efparser: Shorten code (#8640) (overlookmotel) -b8d9a51span: Deal only in owned `Atom`s (#8641) (overlookmotel) -20f52b1span: Remove unnecessary lifetimes on `Atom` impls (#8639) (overlookmotel) -ac4f98espan: Derive `Copy` on `Atom` (#8596) (branchseer) -a730f99transformer: Move `create_prototype_member` to utils module (#8657) (Dunqing) -61d96fdtransformer/class-properties: Correct comments (#8636) (overlookmotel) ### Testing -39dbd2dcodegen: Fix snapshot file (#8685) (Boshen) -d9f5e7fminifier: Enable passed esbuild tests (Boshen) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
41 lines
1.3 KiB
JSON
41 lines
1.3 KiB
JSON
{
|
|
"name": "@oxc-parser/wasm",
|
|
"version": "0.48.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"
|
|
],
|
|
"dependencies": {
|
|
"@oxc-project/types": "workspace:^"
|
|
},
|
|
"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",
|
|
"check": "tsc --lib es2020,dom ./node/oxc_parser_wasm.d.ts"
|
|
}
|
|
}
|