mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
## [0.48.1] - 2025-01-26 ### Features -b7f13e6ast: Implement utf8 to utf16 span converter (#8687) (Boshen) -6589c3bmangler: Reuse variable names (#8562) (翠 / green) -29bd215minifier: Minimize `Infinity.toString(radix)` to `'Infinity'` (#8732) (Boshen) -e0117dbminifier: Replace `const` with `let` for non-exported read-only variables (#8733) (sapphi-red) -9e32f55minifier: Evaluate `Math.sqrt` and `Math.cbrt` (#8731) (sapphi-red) -360d49eminifier: Replace `Math.pow` with `**` (#8730) (sapphi-red) -2e9a560minifier: `NaN.toString(radix)` is always `NaN` (#8727) (Boshen) -cbe0e82minifier: Minimize `foo(...[])` -> `foo()` (#8726) (Boshen) -e9fb5feminifier: Dce pure expressions such as `new Map()` (#8725) (Boshen) ### Bug Fixes -0944758codegen: Remove parens from `new (import(''), function() {})` (#8707) (Boshen) -33de70amangler: Handle cases where a var is declared in a block scope (#8706) (翠 / green) -d982cdbminifier: `Unknown.fromCharCode` should not be treated as `String.fromCharCode` (#8709) (sapphi-red) -e7ab96ctransformer/jsx: Incorrect `isStaticChildren` argument for `Fragment` with multiple children (#8713) (Dunqing) -3e509e1transformer/typescript: Enum merging when same name declared in outer scope (#8691) (branchseer) ### Performance -dc0b0f2manger: Remove useless `tmp_bindings` (#8735) (Dunqing) -e472cedmangler: Optimize handling of collecting lived scope ids (#8724) (Dunqing) -8587965minifier: Normalize `undefined` to `void 0` before everything else (#8699) (Boshen) ### Refactor -58002e2ecmascript: Remove the lifetime annotation on `MayHaveSideEffects` (#8717) (Boshen) -10e5920linter: Move finishing default diagnostic message to `GraphicalReporter` (#8683) (Sysix) -52a37d0mangler: Simplify initialization of `slots` (#8734) (Dunqing) -6bc906cminifier: Allow mutating arguments in methods called from `try_fold_known_string_methods` (#8729) (sapphi-red) -bf8be23minifier: Use `Ctx` (#8716) (Boshen) -0af0267minifier: Side effect detection needs symbols resolution (#8715) (Boshen) -32e0e47minifier: Clean up `Normalize` (#8700) (Boshen) -c792068semantic: Simplify `ScopeTree::iter_bindings` (#8723) (Dunqing) ### Testing -03229c5minifier: Fix broken tests (#8722) (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.1",
|
|
"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"
|
|
}
|
|
}
|