mirror of
https://github.com/danbulant/oxc
synced 2026-05-21 05:08:45 +00:00
## [0.41.0] - 2024-12-13 -fb325dcast: [**BREAKING**] `span` field must be the first element (#7821) (Boshen) -96a26d3ast: [**BREAKING**] Rename `is_strict` methods to `has_use_strict_directive` (#7783) (overlookmotel) ### Features -8991f33ast: Add `visit_span` to `Visit` and `VisitMut` (#7816) (overlookmotel) -f7900abast: Add `ArrowFunctionExpression::has_use_strict_directive` method (#7784) (overlookmotel) -e727ae9transformer/class-properties: Transform super member expressions that are inside static prop initializer (#7815) (Dunqing) ### Bug Fixes -7610dc1parser: Parse `import source from 'mod'` (#7833) (Boshen) -9479e2bsemantic: Missing references when `export {}` references a type-only binding and a normal (#7812) (Yunfei He) -7a83230semantic: Missing reference when `export default` references a type alias binding (#7813) (Dunqing) -4a3bca8semantic: Fix identifying strict mode arrow functions (#7785) (overlookmotel) -5b7e1adtransformer: Remove span of define value (#7811) (Hiroshi Ogawa) -14896cbtransformer/class-properties: Create temp vars in correct scope (#7824) (overlookmotel) -25bb6datransformer/class-properties: Fix `ScopeId`s in instance prop initializers (#7823) (overlookmotel) -65b109atransformer/class-properties: No `raw` for generated `StringLiteral` (#7825) (overlookmotel) -2964a61transformer/class-properties: Unwrap failed when private field expression doesn't contain optional expression in `ChainExpression` (#7798) (Dunqing) -6fa6785transformer/class-properties: Panic when the callee or member is `ParenthesisExpression` or TS-syntax expressions. (#7795) (Dunqing) -bb22c67transformer/class-properties: Fix `ScopeId`s in static prop initializers (#7791) (overlookmotel) -caa57f1transformer/class-properties: Fix scope flags in static prop initializers (#7786) (overlookmotel) ### Performance -4448b63codegen: Faster writing indentation (#7820) (overlookmotel) -afaaffacodegen: Fast path for `options.print_comments()` (#7806) (Boshen) ### Refactor -0f367e5semantic: Improve the logic of resolving references to be cleaner (#7829) (Dunqing) -5710950semantic: Move export-related reference flags logic to visit functions (#7828) (Dunqing) -b290ebdtransformer: Handle `<CWD>` in test runner (#7799) (Dunqing) -e70deb9transformer/class-properties: Locate instance props insertion location in separate step (#7819) (overlookmotel) -afc5f1etransformer/class-properties: De-deduplicate code (#7805) (overlookmotel) -47a91d2transformer/class-properties: Shorten code (#7804) (overlookmotel) -54ef2b9transformer/class-properties: Rename `debug_assert_expr_is_not_parenthesis_or_typescript_syntax` (#7803) (overlookmotel) -3cdc47ctransformer/class-properties: `#[inline(always)]` on `assert_expr_neither_parenthesis_nor_typescript_syntax` (#7802) (overlookmotel) ### Testing -d72c888transformer/replace-global-defines: Remove panicking test (#7838) (overlookmotel) 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.41.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"
|
|
}
|
|
}
|