feat(harper.js): export both binary and inlinedBinary for different runtimes #607
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the
harper.js
package, focusing on updating dependencies, modifying configurations, and refactoring code to use theharper-wasm
package instead ofwasm
. The most important changes include updating thepackage.json
dependencies, modifying theLinter
andLocalLinter
classes to useharper-wasm
, and updating test files to reflect these changes.Dependency Updates:
packages/harper.js/package.json
: Updated several dependencies, including@microsoft/api-documenter
,@microsoft/api-extractor
,@vitest/browser
,typescript
, andvite
. AddedsideEffects
andfiles
fields.Configuration Changes:
.vscode/settings.json
: Added TypeScript SDK configuration.packages/harper.js/api-extractor.json
: UpdatedbundledPackages
to includeharper-wasm
and added new message reporting configurations.Code Refactoring:
packages/harper.js/src/Linter.ts
: Changed imports to useharper-wasm
and addedLinterInit
interface.packages/harper.js/src/LocalLinter.ts
: Refactored to useharper-wasm
and updated the constructor to acceptLinterInit
.packages/harper.js/src/WorkerLinter/index.ts
: Updated to useharper-wasm
and modified the constructor to acceptLinterInit
.Test Updates:
packages/harper.js/src/Linter.test.ts
: Addedbinary
import and updated allLinter
instances to use{ binary }
.packages/harper.js/src/WorkerLinter/communication.test.ts
: UpdatedLocalLinter
instantiation to use{ binary }
.Removal of Unused Code:
packages/harper.js/src/WorkerLinter/worker.js
: Removed the file as it is no longer needed.